mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
add appropriate sorting function for struct leases_t
The HASH_SORT in analyze needs this. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
965875d20b
commit
e09f655a7b
6 changed files with 38 additions and 1 deletions
|
|
@ -269,6 +269,13 @@ extern int ipcomp_v4(const union ipaddr_t *restrict a,
|
|||
extern int ipcomp_v6(const union ipaddr_t *restrict a,
|
||||
const union ipaddr_t *restrict b) _DP_ATTRIBUTE_PURE;
|
||||
|
||||
extern int (*leasecomp) (const struct leases_t *restrict a, const struct leases_t *restrict b);
|
||||
extern int leasecomp_init(const struct leases_t *restrict a
|
||||
__attribute__ ((unused)),
|
||||
const struct leases_t *restrict b __attribute__ ((unused)));
|
||||
extern int leasecomp_v4(const struct leases_t *restrict a, const struct leases_t *restrict b);
|
||||
extern int leasecomp_v6(const struct leases_t *restrict a, const struct leases_t *restrict b);
|
||||
|
||||
extern int comp_cur(struct range_t *r1, struct range_t *r2) _DP_ATTRIBUTE_PURE;
|
||||
extern int comp_double(double f1, double f2) _DP_ATTRIBUTE_CONST;
|
||||
extern int comp_ip(struct range_t *r1, struct range_t *r2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue