diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:47:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:47:04 +0200 |
commit | 8e9a6ecf73b4c67c21b707228b7a621dae6804c6 (patch) | |
tree | 840a99c80f948fa3a265f411b651ea5987e11fef /include/libmnl | |
parent | ad3f11f8aaff3d24a932f2f55b368510cdd23c65 (diff) | |
download | libmnl-8e9a6ecf73b4c67c21b707228b7a621dae6804c6.tar.gz libmnl-8e9a6ecf73b4c67c21b707228b7a621dae6804c6.zip |
more consistency name issues: rename get_data*() to get_payload*()
This includes renaming get_tail() to get_payload_tail()
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index b7e72c8..11eda8a 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -53,9 +53,9 @@ int mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid); /* Netlink header getters */ extern uint16_t mnl_nlmsg_get_len(const struct nlmsghdr *nlh); -extern void *mnl_nlmsg_get_data(const struct nlmsghdr *nlh); -extern void *mnl_nlmsg_get_data_offset(const struct nlmsghdr *nlh, int offset); -extern void *mnl_nlmsg_get_tail(const struct nlmsghdr *nlh); +extern void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh); +extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, int offset); +extern void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh); /* Netlink dump message */ extern void mnl_nlmsg_print(const struct nlmsghdr *nlh); @@ -69,7 +69,7 @@ extern void mnl_nlmsg_print(const struct nlmsghdr *nlh); extern uint16_t mnl_attr_get_type(const struct nlattr *attr); extern uint16_t mnl_attr_get_len(const struct nlattr *attr); extern uint16_t mnl_attr_get_payload_len(const struct nlattr *attr); -extern void *mnl_attr_get_data(const struct nlattr *attr); +extern void *mnl_attr_get_payload(const struct nlattr *attr); extern uint8_t mnl_attr_get_u8(const struct nlattr *attr); extern uint16_t mnl_attr_get_u16(const struct nlattr *attr); extern uint32_t mnl_attr_get_u32(const struct nlattr *attr); @@ -113,13 +113,13 @@ extern struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len); #define mnl_attr_for_each(attr, nlh, offset) \ int __len__ = mnl_nlmsg_get_payload_len(nlh); \ - for (attr = mnl_nlmsg_get_data_offset(nlh, offset); \ + for (attr = mnl_nlmsg_get_payload_offset(nlh, offset); \ mnl_attr_ok(attr, __len__); \ attr = mnl_attr_next(attr, &(__len__))) #define mnl_attr_for_each_nested(attr, nest) \ int __len__ = mnl_attr_get_len(nest); \ - for (pos = mnl_attr_get_data(nest); \ + for (pos = mnl_attr_get_payload(nest); \ mnl_attr_ok(attr, __len__); \ pos = mnl_attr_next(attr, &(__len__))) |