Hide the internal data structures for hashtable from public header
"hashtable.h".
Note that we just recently broke ABI/API by modifying these structs.
Maybe the entire hashtable API should be private. Anyway, that seems
to late now.
Fixes: c6f89ed02f04ac4984be34418774a7b06ff54f79
Signed-off-by: Thomas Haller <thaller@redhat.com>
struct nl_msgtype co_msgtypes[];
};
+struct nl_hash_node {
+ uint32_t key;
+ uint32_t key_size;
+ struct nl_object *obj;
+ struct nl_list_head list;
+};
+
+struct nl_hash_table {
+ int size;
+ struct nl_hash_node **nodes;
+};
+
/** @} */
#ifdef __cplusplus
extern "C" {
#endif
-typedef struct nl_hash_node {
- uint32_t key;
- uint32_t key_size;
- struct nl_object * obj;
- struct nl_list_head list;
-} nl_hash_node_t;
-
-typedef struct nl_hash_table {
- int size;
- nl_hash_node_t ** nodes;
-} nl_hash_table_t;
+typedef struct nl_hash_node nl_hash_node_t;
+typedef struct nl_hash_table nl_hash_table_t;
/* Default hash table size */
#define NL_MAX_HASH_ENTRIES 1024