Parsing of GLOBSET structures. More...
Functions | |
_PUBLIC_ uint64_t | exchange_globcnt (uint64_t globcnt) |
_PUBLIC_ struct globset_range * | GLOBSET_parse (TALLOC_CTX *mem_ctx, DATA_BLOB buffer, uint32_t *countP, uint32_t *byte_countP) |
_PUBLIC_ enum MAPISTATUS | IDSET_check_ranges (const struct idset *idset) |
_PUBLIC_ void | IDSET_dump (const struct idset *idset, const char *label) |
_PUBLIC_ bool | IDSET_includes_eid (const struct idset *idset, uint64_t eid) |
_PUBLIC_ bool | IDSET_includes_guid_glob (const struct idset *idset, struct GUID *replica_guid, uint64_t id) |
_PUBLIC_ struct idset * | IDSET_merge_idsets (TALLOC_CTX *mem_ctx, const struct idset *left, const struct idset *right) |
_PUBLIC_ struct idset * | IDSET_parse (TALLOC_CTX *mem_ctx, DATA_BLOB buffer, bool idbased) |
_PUBLIC_ void | IDSET_remove_rawidset (struct idset *idset, const struct rawidset *rawidset) |
_PUBLIC_ struct Binary_r * | IDSET_serialize (TALLOC_CTX *mem_ctx, const struct idset *idset) |
_PUBLIC_ void | ndr_push_idset (struct ndr_push *ndr, struct idset *idset) |
_PUBLIC_ struct idset * | RAWIDSET_convert_to_idset (TALLOC_CTX *mem_ctx, const struct rawidset *rawidset) |
_PUBLIC_ struct rawidset * | RAWIDSET_make (TALLOC_CTX *mem_ctx, bool idbased, bool single) |
_PUBLIC_ void | RAWIDSET_push_eid (struct rawidset *rawidset, uint64_t eid) |
_PUBLIC_ void | RAWIDSET_push_guid_glob (struct rawidset *rawidset, const struct GUID *guid, uint64_t globcnt) |
Parsing of GLOBSET structures.
_PUBLIC_ uint64_t exchange_globcnt | ( | uint64_t | globcnt | ) |
Inverts the bytes of a globcnt, such as for the ids returned by Exchange
Referenced by IDSET_check_ranges(), IDSET_dump(), IDSET_includes_eid(), and IDSET_includes_guid_glob().
_PUBLIC_ struct globset_range * GLOBSET_parse | ( | TALLOC_CTX * | mem_ctx, |
DATA_BLOB | buffer, | ||
uint32_t * | countP, | ||
uint32_t * | byte_countP | ||
) |
deserialize a GLOBSET following the format described in [OXCFXICS - 2.2.2.5]
References OC_DEBUG.
Referenced by IDSET_parse().
_PUBLIC_ enum MAPISTATUS IDSET_check_ranges | ( | const struct idset * | idset | ) |
check GLOBCNT ranges from an idset structure. [MS-OXCFXICS] Section 3.1.5.4.3.2.4
idset | pointer to the idset structure to check |
References exchange_globcnt(), globset_range::high, globset_range::low, idset::next, globset_range::next, OPENCHANGE_RETVAL_IF, idset::range_count, and idset::ranges.
_PUBLIC_ void IDSET_dump | ( | const struct idset * | idset, |
const char * | label | ||
) |
dump an idset structure
idset | pointer to the idset structure to dump |
label | string to define the dump in log |
References exchange_globcnt(), idset::guid, globset_range::high, idset::id, idset::idbased, globset_range::low, idset::next, globset_range::next, OC_DEBUG, oc_log(), OC_LOG_ERROR, idset::range_count, idset::ranges, and idset::repl.
_PUBLIC_ bool IDSET_includes_eid | ( | const struct idset * | idset, |
uint64_t | eid | ||
) |
tests the presence of a specific id in the ranges of a ReplID-based idset structure
References exchange_globcnt(), globset_range::high, idset::id, idset::idbased, globset_range::low, idset::next, globset_range::next, idset::ranges, and idset::repl.
_PUBLIC_ bool IDSET_includes_guid_glob | ( | const struct idset * | idset, |
struct GUID * | replica_guid, | ||
uint64_t | id | ||
) |
tests the presence of a specific id in the ranges of a ReplGUID-based idset structure
References exchange_globcnt(), idset::guid, globset_range::high, idset::idbased, globset_range::low, idset::next, globset_range::next, idset::ranges, and idset::repl.
_PUBLIC_ struct idset * IDSET_merge_idsets | ( | TALLOC_CTX * | mem_ctx, |
const struct idset * | left, | ||
const struct idset * | right | ||
) |
merge two idsets structures into a third one
References idset::next, and idset::range_count.
_PUBLIC_ struct idset * IDSET_parse | ( | TALLOC_CTX * | mem_ctx, |
DATA_BLOB | buffer, | ||
bool | idbased | ||
) |
deserialize an IDSET following the format described in [OXCFXICS - 2.2.2.4]
References GLOBSET_parse(), idset::guid, idset::id, idset::idbased, idset::next, idset::range_count, idset::ranges, and idset::repl.
_PUBLIC_ struct Binary_r * IDSET_serialize | ( | TALLOC_CTX * | mem_ctx, |
const struct idset * | idset | ||
) |
serialize an idset structure in a struct SBinary_r
Referenced by ndr_push_idset().
_PUBLIC_ void ndr_push_idset | ( | struct ndr_push * | ndr, |
struct idset * | idset | ||
) |
push an idset on an ndr stream
References IDSET_serialize().
_PUBLIC_ struct idset * RAWIDSET_convert_to_idset | ( | TALLOC_CTX * | mem_ctx, |
const struct rawidset * | rawidset | ||
) |
References rawidset::count, rawidset::guid, rawidset::id, rawidset::idbased, and rawidset::repl.
_PUBLIC_ struct rawidset * RAWIDSET_make | ( | TALLOC_CTX * | mem_ctx, |
bool | idbased, | ||
bool | single | ||
) |
_PUBLIC_ void RAWIDSET_push_eid | ( | struct rawidset * | rawidset, |
uint64_t | eid | ||
) |
_PUBLIC_ void RAWIDSET_push_guid_glob | ( | struct rawidset * | rawidset, |
const struct GUID * | guid, | ||
uint64_t | globcnt | ||
) |
References oc_log(), and OC_LOG_FATAL.
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |