From cb66c6652b1cf02e4c4f6ffa63819e168469a5ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Mon, 5 Jun 2017 11:52:36 +0200 Subject: [PATCH] bson: Align UUID subtypes with the current specification MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add the new value for UUID binary sub-type. Document some values as deprecated. Signed-off-by: Łukasz Stelmach --- src/bson/bson.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bson/bson.h b/src/bson/bson.h index 9acd0f6..41f7757 100644 --- a/src/bson/bson.h +++ b/src/bson/bson.h @@ -60,8 +60,9 @@ enum bson_validity_t { enum bson_binary_subtype_t { BSON_BIN_BINARY = 0, BSON_BIN_FUNC = 1, - BSON_BIN_BINARY_OLD = 2, - BSON_BIN_UUID = 3, + BSON_BIN_BINARY_OLD = 2, /**< Deprecated */ + BSON_BIN_UUID_OLD = 3, /**< Deprecated */ + BSON_BIN_UUID = 4, BSON_BIN_MD5 = 5, BSON_BIN_USER = 128 }; @@ -78,7 +79,7 @@ typedef enum { BSON_OBJECT = 3, BSON_ARRAY = 4, BSON_BINDATA = 5, - BSON_UNDEFINED = 6, + BSON_UNDEFINED = 6, /**< Deprecated */ BSON_OID = 7, BSON_BOOL = 8, BSON_DATE = 9, @@ -86,7 +87,7 @@ typedef enum { BSON_REGEX = 11, BSON_DBREF = 12, /**< Deprecated. */ BSON_CODE = 13, - BSON_SYMBOL = 14, + BSON_SYMBOL = 14, /**< Deprecated. */ BSON_CODEWSCOPE = 15, BSON_INT = 16, BSON_TIMESTAMP = 17, -- 2.7.4