From 2b3912a320ef74b31d84380d91ec036dbf1b9f52 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Fri, 16 Nov 2012 00:19:38 +0100 Subject: cache: Provide safe versions of nl_cache_ops_associate() and nl_cache_ops_lookup() Signed-off-by: Thomas Graf --- include/netlink/cache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/netlink/cache.h') 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 *); -- cgit v1.2.3