summaryrefslogtreecommitdiff
path: root/include/netlink/cache-api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/cache-api.h')
-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