diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-09-17 13:36:16 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2007-09-17 13:36:16 +0200 |
commit | 3040a1d6254465bed9e44e4d1bf279c2c50cd16a (patch) | |
tree | 29f557cdd57a8b3d6a1dd6accbc15845a44f3195 /lib/route/qdisc.c | |
parent | 3d8efba91778b65a40d50ca0b6ba91d4071564c5 (diff) | |
download | libnl-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/route/qdisc.c')
-rw-r--r-- | lib/route/qdisc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/route/qdisc.c b/lib/route/qdisc.c index 818ca7b..19bf12a 100644 --- a/lib/route/qdisc.c +++ b/lib/route/qdisc.c @@ -96,10 +96,9 @@ static struct nl_cache_ops rtnl_qdisc_ops; static int qdisc_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, - struct nlmsghdr *n, void *arg) + struct nlmsghdr *n, struct nl_parser_param *pp) { int err = -ENOMEM; - struct nl_parser_param *pp = arg; struct rtnl_qdisc *qdisc; struct rtnl_qdisc_ops *qops; |