lib: Macro for number of entries in hash table

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
vivek 2017-05-14 22:17:45 -07:00
parent 7c6d877325
commit 8234a9875b

View File

@ -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 *),