diff options
-rw-r--r-- | include/netlink-private/cache-api.h | 12 | ||||
-rw-r--r-- | include/netlink/hashtable.h | 13 |
2 files changed, 14 insertions, 11 deletions
diff --git a/include/netlink-private/cache-api.h b/include/netlink-private/cache-api.h index 0b39bfa..7ab4bc7 100644 --- a/include/netlink-private/cache-api.h +++ b/include/netlink-private/cache-api.h @@ -276,6 +276,18 @@ struct nl_cache_ops 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 diff --git a/include/netlink/hashtable.h b/include/netlink/hashtable.h index c52f6e1..c0c0f2c 100644 --- a/include/netlink/hashtable.h +++ b/include/netlink/hashtable.h @@ -16,17 +16,8 @@ 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 |