diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2019-07-30 15:15:40 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-26 07:06:18 +0000 |
commit | 6de3d8f7ce0f97810515b81f4da1a7cc1eb4a241 (patch) | |
tree | 028fd6478578a852e6f6352534b064da47b8e236 /lib | |
parent | b99fff86ebb64e31fd3577164f55246705511c3b (diff) | |
download | samba-6de3d8f7ce0f97810515b81f4da1a7cc1eb4a241.tar.gz |
ldb: Change pack format defines to enum
The main reason is so that any future pack formats will continue
incrementing this number in a sequential fashion.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14059
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit 38e3e7cd328edac302e95ac8839e858c4a225485)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/include/ldb_module.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h index ab3d25c5c6e..8c1e5ee7936 100644 --- a/lib/ldb/include/ldb_module.h +++ b/lib/ldb/include/ldb_module.h @@ -559,12 +559,15 @@ int ldb_unpack_get_format(const struct ldb_val *data, #define LDB_UNPACK_DATA_FLAG_NO_ATTRS 0x0008 #define LDB_UNPACK_DATA_FLAG_READ_LOCKED 0x0010 -/* In-use packing formats */ -#define LDB_PACKING_FORMAT 0x26011967 -#define LDB_PACKING_FORMAT_V2 0x26011968 +enum ldb_pack_format { -/* Old packing formats */ -#define LDB_PACKING_FORMAT_NODN 0x26011966 + /* Old packing format (based on a somewhat arbitrary date) */ + LDB_PACKING_FORMAT_NODN = 0x26011966, + + /* In-use packing formats */ + LDB_PACKING_FORMAT, + LDB_PACKING_FORMAT_V2 +}; /** Forces a specific ldb handle to use the global event context. |