summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-11-15 23:48:03 +0100
committerThomas Graf <tgraf@suug.ch>2012-11-16 00:17:50 +0100
commit1a2c3e36a8aa6b3a0a568f587669c7c8d5ddac28 (patch)
tree5cf589f50c5ec64924fd9a5d1399190c651a6d1d /include
parent74926f92dd3a65e378def1a3e7309a027b8efbd3 (diff)
downloadlibnl-1a2c3e36a8aa6b3a0a568f587669c7c8d5ddac28.tar.gz
cache: Add reference counter to cache operations
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/cache-api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h
index dd42671..f2111b9 100644
--- a/include/netlink/cache-api.h
+++ b/include/netlink/cache-api.h
@@ -192,6 +192,9 @@ struct nl_cache_ops
/** cache flags */
unsigned int co_flags;
+ /** Reference counter */
+ unsigned int co_refcnt;
+
/** Group definition */
struct nl_af_group * co_groups;
@@ -262,6 +265,9 @@ struct nl_cache_ops
struct nl_msgtype co_msgtypes[];
};
+extern void nl_cache_ops_get(struct nl_cache_ops *);
+extern void nl_cache_ops_put(struct nl_cache_ops *);
+
/** @} */
#ifdef __cplusplus