summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/hash.h b/lib/hash.h
index bafb35a2a3..15afc249ab 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -64,6 +64,9 @@ struct hash
/* Backet alloc. */
unsigned long count;
+
+ /* hash name */
+ const char *name;
};
extern struct hash *hash_create (unsigned int (*) (void *),
@@ -87,4 +90,9 @@ extern void hash_free (struct hash *);
extern unsigned int string_hash_make (const char *);
+extern void hash_stats (struct hash *, double *, double *, int *, int *, int *, double *);
+extern void hash_cmd_init (void);
+extern void hash_register (struct hash *, const char *);
+extern void hash_unregister (struct hash *);
+
#endif /* _ZEBRA_HASH_H */