diff options
author | Thomas Graf <tgraf@suug.ch> | 2012-11-15 19:45:44 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2012-11-15 19:45:44 (GMT) |
commit | c658a6eef8bfaa9347305e532f063cb848087d31 (patch) | |
tree | 491291eba0f494c91bf3393258b2cb68f1f6892f /include | |
parent | cb25338ac35b5174f03c19e00733d9366f6b9482 (diff) | |
download | libnl-c658a6eef8bfaa9347305e532f063cb848087d31.zip libnl-c658a6eef8bfaa9347305e532f063cb848087d31.tar.gz libnl-c658a6eef8bfaa9347305e532f063cb848087d31.tar.bz2 |
cache: Add reference counter to caches
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-types.h | 1 | ||||
-rw-r--r-- | include/netlink/cache.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink-types.h b/include/netlink-types.h index 02ecf04..2bb4f0a 100644 --- a/include/netlink-types.h +++ b/include/netlink-types.h @@ -79,6 +79,7 @@ struct nl_cache int c_nitems; int c_iarg1; int c_iarg2; + int c_refcnt; unsigned int c_flags; struct nl_hash_table * hashtable; struct nl_cache_ops * c_ops; diff --git a/include/netlink/cache.h b/include/netlink/cache.h index 1eb1427..0bd4037 100644 --- a/include/netlink/cache.h +++ b/include/netlink/cache.h @@ -50,6 +50,7 @@ extern struct nl_cache * nl_cache_subset(struct nl_cache *, struct nl_object *); extern struct nl_cache * nl_cache_clone(struct nl_cache *); extern void nl_cache_clear(struct nl_cache *); +extern void nl_cache_get(struct nl_cache *); extern void nl_cache_free(struct nl_cache *); /* Cache modification */ |