summaryrefslogtreecommitdiff
path: root/include/netlink/genl
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-05-31 13:37:57 +0200
committerThomas Graf <tgraf@redhat.com>2012-05-31 13:37:57 +0200
commit3656b6f908f966f329fb727a805ee46934c360d0 (patch)
tree352e814aa1f62daf2db995efff3b7dcd4e5701dd /include/netlink/genl
parent71b442b955075d61abe157724541a967811f6bbe (diff)
downloadlibnl-3656b6f908f966f329fb727a805ee46934c360d0.tar.gz
genl: Add genlmsg_user_hdr(), genlmsg_user_data(), and genlmsg_user_datalen()
These functions deprecate the function genlmsg_data() which did not allow to specify the length of the user header. Use of the new API will make code much clearer. The old function is still kept around for backwards compatibility but marked deprecated in the API reference.
Diffstat (limited to 'include/netlink/genl')
-rw-r--r--include/netlink/genl/genl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink/genl/genl.h b/include/netlink/genl/genl.h
index a2da9435..e455581b 100644
--- a/include/netlink/genl/genl.h
+++ b/include/netlink/genl/genl.h
@@ -35,6 +35,10 @@ extern int genlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
extern struct genlmsghdr *
genlmsg_hdr(struct nlmsghdr *);
extern void * genlmsg_data(const struct genlmsghdr *);
+extern void * genlmsg_user_hdr(const struct genlmsghdr *);
+extern void * genlmsg_user_data(const struct genlmsghdr *, const int);
+extern int genlmsg_user_datalen(const struct genlmsghdr *,
+ const int);
extern int genlmsg_len(const struct genlmsghdr *);
extern struct nlattr * genlmsg_attrdata(const struct genlmsghdr *, int);
extern int genlmsg_attrlen(const struct genlmsghdr *, int);