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/genl | |
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/genl')
-rw-r--r-- | lib/genl/mngt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/genl/mngt.c b/lib/genl/mngt.c index 846cd7e..d737697 100644 --- a/lib/genl/mngt.c +++ b/lib/genl/mngt.c @@ -91,7 +91,7 @@ static NL_LIST_HEAD(genl_ops_list); static int genl_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, - struct nlmsghdr *nlh, void *arg) + struct nlmsghdr *nlh, struct nl_parser_param *pp) { int i, err; struct genlmsghdr *ghdr; @@ -129,7 +129,7 @@ found: if (err < 0) goto errout; - err = cmd->c_msg_parser(ops, cmd, &info, arg); + err = cmd->c_msg_parser(ops, cmd, &info, pp); } errout: return err; |