diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-09-17 11:36:16 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2007-09-17 11:36:16 (GMT) |
commit | 3040a1d6254465bed9e44e4d1bf279c2c50cd16a (patch) | |
tree | 29f557cdd57a8b3d6a1dd6accbc15845a44f3195 /lib/fib_lookup | |
parent | 3d8efba91778b65a40d50ca0b6ba91d4071564c5 (diff) | |
download | libnl-3040a1d6254465bed9e44e4d1bf279c2c50cd16a.zip libnl-3040a1d6254465bed9e44e4d1bf279c2c50cd16a.tar.gz libnl-3040a1d6254465bed9e44e4d1bf279c2c50cd16a.tar.bz2 |
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.c | 3 |
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; |