summaryrefslogtreecommitdiffstats
path: root/include/netlink/msg.h
diff options
context:
space:
mode:
authorThomas Graf <tgr@plip.localdomain>2008-10-14 17:26:44 (GMT)
committerThomas Graf <tgr@plip.localdomain>2008-10-14 17:26:44 (GMT)
commit23ee46ef7115c2e311c36e43a833e6c3deada18a (patch)
tree60793068d05c482737787baf4619449741a2a23b /include/netlink/msg.h
parent5702d4c1b97616f5212da31db01a2f3c79c15b7c (diff)
downloadlibnl-23ee46ef7115c2e311c36e43a833e6c3deada18a.zip
libnl-23ee46ef7115c2e311c36e43a833e6c3deada18a.tar.gz
libnl-23ee46ef7115c2e311c36e43a833e6c3deada18a.tar.bz2
Replace NL_KEEP code with proper message reference counting
Adds reference counting to netlink messages so callbacks can hold on to a message without using the broken keep message flag.
Diffstat (limited to 'include/netlink/msg.h')
-rw-r--r--include/netlink/msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink/msg.h b/include/netlink/msg.h
index 1cb1305..e331f42 100644
--- a/include/netlink/msg.h
+++ b/include/netlink/msg.h
@@ -81,6 +81,7 @@ extern int nlmsg_expand(struct nl_msg *, size_t);
extern struct nlmsghdr * nlmsg_put(struct nl_msg *, uint32_t, uint32_t,
int, int, int);
extern struct nlmsghdr * nlmsg_hdr(struct nl_msg *);
+extern void nlmsg_get(struct nl_msg *);
extern void nlmsg_free(struct nl_msg *);
/* attribute modification */