From 1691d562a3bcb8e84a7a88145f99156615021522 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 21 Apr 2012 11:13:15 +0200 Subject: src/htable.h: Add missing prototypes We only generated prototypes for a small subset of all supported functions in the HTABLE_PROTOTYPE macro. Add missing prototypes to allow for accessing corresponding functions if HTABLE_GENERATE is used in a separate compilation unit. This also fixes a couple of compiler warnings seen with "-Wmissing-prototypes". Signed-off-by: Lukas Fleischer --- src/htable.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/htable.h b/src/htable.h index f5772ee..654bf57 100644 --- a/src/htable.h +++ b/src/htable.h @@ -104,7 +104,11 @@ struct type *next /* To build the bucket chain list. */ #define HTABLE_PROTOTYPE(name, type) \ struct type *name##_HTABLE_INSERT(struct name *, struct type *); \ struct type *name##_HTABLE_REMOVE(struct name *, struct type *); \ -struct type *name##_HTABLE_LOOKUP(struct name *, struct type *); +struct type *name##_HTABLE_LOOKUP(struct name *, struct type *); \ +uint32_t name##_HTABLE_FIND_BKT(struct name *, struct type *); \ +int name##_HTABLE_CHAIN_LEN(struct name *, uint32_t); \ +struct type *name##_HTABLE_FIRST_FROM(struct name *, int); \ +struct type *name##_HTABLE_NEXT(struct name *, struct type *); /* * Generate function bodies. -- cgit v1.2.3-70-g09d2