mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
lib: Macro for number of entries in hash table
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
7c6d877325
commit
8234a9875b
@ -66,6 +66,8 @@ struct hash
|
||||
unsigned long count;
|
||||
};
|
||||
|
||||
#define hashcount(X) ((X)->count)
|
||||
|
||||
extern struct hash *hash_create (unsigned int (*) (void *),
|
||||
int (*) (const void *, const void *));
|
||||
extern struct hash *hash_create_size (unsigned int, unsigned int (*) (void *),
|
||||
|
Loading…
Reference in New Issue
Block a user