diff options
author | Thomas Haller <thaller@redhat.com> | 2016-06-29 10:14:05 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-07-08 10:02:07 (GMT) |
commit | 13dec9ba95cd61bf251345f31ed181983107d9b1 (patch) | |
tree | c367a3bab5a490389a76d803a5a72956052f9e5b /include/netlink-private | |
parent | fa2b73183bbb5bb13117ff3cfe9f87d22416692a (diff) | |
download | libnl-13dec9ba95cd61bf251345f31ed181983107d9b1.zip libnl-13dec9ba95cd61bf251345f31ed181983107d9b1.tar.gz libnl-13dec9ba95cd61bf251345f31ed181983107d9b1.tar.bz2 |
hashtable: let caller decide whether to append/prepend object to hashtable
nl_hash_table_add() should not ask the object whether to append/prepend.
Instead, the caller should decide on that.
Add an internal function _nl_hash_table_add() which accepts an
@append argument.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/netlink-private')
-rw-r--r-- | include/netlink-private/cache-api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink-private/cache-api.h b/include/netlink-private/cache-api.h index 7ab4bc7..2beebed 100644 --- a/include/netlink-private/cache-api.h +++ b/include/netlink-private/cache-api.h @@ -288,6 +288,8 @@ struct nl_hash_table { struct nl_hash_node **nodes; }; +int _nl_hash_table_add(struct nl_hash_table *ht, struct nl_object *obj, int append); + /** @} */ #ifdef __cplusplus |