mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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>
This commit is contained in:
parent
d427bd6c77
commit
38e3e7cd32
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user