diff options
author | Thomas Graf <tgraf@suug.ch> | 2012-11-16 00:19:38 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2012-11-16 00:19:38 +0100 |
commit | 2b3912a320ef74b31d84380d91ec036dbf1b9f52 (patch) | |
tree | 1177e19ba0d6b6f8c8b92cab0c2c49ce654f028a /include | |
parent | 1a2c3e36a8aa6b3a0a568f587669c7c8d5ddac28 (diff) | |
download | libnl-2b3912a320ef74b31d84380d91ec036dbf1b9f52.tar.gz |
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.h | 2 |
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 *); |