summaryrefslogtreecommitdiff
path: root/lib/fib_lookup
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-09-17 13:36:16 +0200
committerThomas Graf <tgraf@suug.ch>2007-09-17 13:36:16 +0200
commit3040a1d6254465bed9e44e4d1bf279c2c50cd16a (patch)
tree29f557cdd57a8b3d6a1dd6accbc15845a44f3195 /lib/fib_lookup
parent3d8efba91778b65a40d50ca0b6ba91d4071564c5 (diff)
downloadlibnl-3040a1d6254465bed9e44e4d1bf279c2c50cd16a.tar.gz
Export interface to define caches
This interface was internal so far which required all code defining caches to be compiled with the sources available. In order to simplify the interface, the co_msg_parser prototype was changed to take the struct nl_parser_param directly instead of a void *. It used to be void * because the co_msg_parser was directly passed as the NL_CB_VALID callback function.
Diffstat (limited to 'lib/fib_lookup')
-rw-r--r--lib/fib_lookup/lookup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fib_lookup/lookup.c b/lib/fib_lookup/lookup.c
index 2b0070d..d076ef9 100644
--- a/lib/fib_lookup/lookup.c
+++ b/lib/fib_lookup/lookup.c
@@ -69,11 +69,10 @@ static int result_clone(struct nl_object *_dst, struct nl_object *_src)
}
static int result_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
- struct nlmsghdr *n, void *arg)
+ struct nlmsghdr *n, struct nl_parser_param *pp)
{
struct flnl_result *res;
struct fib_result_nl *fr;
- struct nl_parser_param *pp = arg;
struct nl_addr *addr;
int err = -EINVAL;