summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-11-15 23:19:38 (GMT)
committerThomas Graf <tgraf@suug.ch>2012-11-15 23:19:38 (GMT)
commit2b3912a320ef74b31d84380d91ec036dbf1b9f52 (patch)
tree1177e19ba0d6b6f8c8b92cab0c2c49ce654f028a /include
parent1a2c3e36a8aa6b3a0a568f587669c7c8d5ddac28 (diff)
downloadlibnl-2b3912a320ef74b31d84380d91ec036dbf1b9f52.zip
libnl-2b3912a320ef74b31d84380d91ec036dbf1b9f52.tar.gz
libnl-2b3912a320ef74b31d84380d91ec036dbf1b9f52.tar.bz2
cache: Provide safe versions of nl_cache_ops_associate() and nl_cache_ops_lookup()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink/cache.h b/include/netlink/cache.h
index 0bd4037..f193c76 100644
--- a/include/netlink/cache.h
+++ b/include/netlink/cache.h
@@ -106,7 +106,9 @@ extern void nl_cache_foreach_filter(struct nl_cache *,
/* Cache type management */
extern struct nl_cache_ops * nl_cache_ops_lookup(const char *);
+extern struct nl_cache_ops * nl_cache_ops_lookup_safe(const char *);
extern struct nl_cache_ops * nl_cache_ops_associate(int, int);
+extern struct nl_cache_ops * nl_cache_ops_associate_safe(int, int);
extern struct nl_msgtype * nl_msgtype_lookup(struct nl_cache_ops *, int);
extern void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops *, void *), void *);
extern int nl_cache_mngt_register(struct nl_cache_ops *);