diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2017-06-05 11:52:36 +0200 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2017-06-05 12:20:13 +0200 |
commit | cb66c6652b1cf02e4c4f6ffa63819e168469a5ac (patch) | |
tree | e0773fa7e357db06debcc0e995b0cd2d0e594dfb /src | |
parent | a2a6f0ca14553edd1ffeb66f4a036a31900369da (diff) | |
download | ejdb-cb66c6652b1cf02e4c4f6ffa63819e168469a5ac.tar.gz ejdb-cb66c6652b1cf02e4c4f6ffa63819e168469a5ac.tar.bz2 ejdb-cb66c6652b1cf02e4c4f6ffa63819e168469a5ac.zip |
bson: Align UUID subtypes with the current specification
Add the new value for UUID binary sub-type. Document some values as deprecated.
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bson/bson.h | 9 |
1 files 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, |