72#if defined (BINARY_LEASES)
76#define LC_GROWTH_DELTA 256
88#if defined (DEBUG_BINARY_LEASES)
93 return (lc->
nelem > 0 ? 1 : 0);
106#if defined (DEBUG_BINARY_LEASES)
129#if defined (DEBUG_BINARY_LEASES)
156 size_t min,
size_t max)
205 size_t min,
size_t max)
300#if defined (DEBUG_BINARY_LEASES)
315 log_fatal(
"LC grow, unable to allocated memory %s:%d",
MDL);
344#if defined (DEBUG_BINARY_LEASES)
354#if defined (DEBUG_BINARY_LEASES)
355 log_debug(
"LC Link lcp position %zu, elem %zu, %s:%d",
361#if defined (DEBUG_BINARY_LEASES)
362 log_debug(
"LC link lcp moving position %zu, moving %zu. %s:%d",
396#if defined (DEBUG_BINARY_LEASES)
500#if defined (DEBUG_BINARY_LEASES)
508 lp->sort_tiebreaker = 0;
518 lp->sort_tiebreaker = 0;
523 lp->sort_tiebreaker =
537#if defined (DEBUG_BINARY_LEASES)
538 log_debug(
"LC add sorted complete position %zu, elements %zu, %s:%d",
557#if defined (DEBUG_BINARY_LEASES)
589#if defined (DEBUG_BINARY_LEASES)
627#if defined (DEBUG_BINARY_LEASES)
640 log_fatal(
"Lease with binding state %s not on its queue.",
641 (
lp->binding_state < 1 ||
void print_lease(struct lease *lease)
struct lease * lc_get_first_lease(struct leasechain *lc)
void lc_add_sorted_lease(struct leasechain *lc, struct lease *lp)
void lc_delete_all(struct leasechain *lc)
struct lease * lc_get_next(struct leasechain *lc, struct lease *lp)
void lc_init_growth(struct leasechain *lc, size_t growth)
void lc_unlink_lease(struct leasechain *lc, struct lease *lp)
const char * binding_state_names[]
int lc_not_empty(struct leasechain *lc)
void * dmalloc(size_t, const char *, int)
void dfree(void *, const char *, int)
int int int log_debug(const char *,...) __attribute__((__format__(__printf__
void log_fatal(const char *,...) __attribute__((__format__(__printf__
binding_state_t binding_state