diff options
author | roopa <roopa@cumulusnetworks.com> | 2013-01-08 12:33:29 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-01-11 12:52:50 (GMT) |
commit | b1ebda92410c57c09c7aff3e4d5ce3572d9fc1c1 (patch) | |
tree | 278021a70471809c8f2fdf7a3a80fd6f20174754 /include | |
parent | 3540e44b158f0f45fc2364d99e70433fba176b21 (diff) | |
download | libnl-b1ebda92410c57c09c7aff3e4d5ce3572d9fc1c1.zip libnl-b1ebda92410c57c09c7aff3e4d5ce3572d9fc1c1.tar.gz libnl-b1ebda92410c57c09c7aff3e4d5ce3572d9fc1c1.tar.bz2 |
cache: Add new nl_cache_find api
This patch adds new cache find api
nl_cache_find api was suggested by Thomas.
Unlike nl_cache_search, this patch uses
nl_object_match_filter() to look for an
object match.
Am not sure this matches what was decided
on the list few weeks back. I will be happy
to make any changes.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink/object.h b/include/netlink/object.h index f25713e..a95feda 100644 --- a/include/netlink/object.h +++ b/include/netlink/object.h @@ -64,6 +64,7 @@ extern struct nl_cache * nl_object_get_cache(struct nl_object *); extern const char * nl_object_get_type(const struct nl_object *); extern int nl_object_get_msgtype(const struct nl_object *); struct nl_object_ops * nl_object_get_ops(const struct nl_object *); +uint32_t nl_object_get_id_attrs(struct nl_object *obj); static inline void * nl_object_priv(struct nl_object *obj) |