summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-03-13 15:53:07 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-03-14 11:46:01 (GMT)
commit9e6cdbf6fc60f95e232c4ca34004606da9536d01 (patch)
tree16ee3ee5574e986e1875df669cba6c541c0aaffb /include
parent4d7680c19c131175e2ec431de9a026230c968a7e (diff)
downloadlibnl-9e6cdbf6fc60f95e232c4ca34004606da9536d01.zip
libnl-9e6cdbf6fc60f95e232c4ca34004606da9536d01.tar.gz
libnl-9e6cdbf6fc60f95e232c4ca34004606da9536d01.tar.bz2
attr: Add nla_nest_cancel() to remove partially added nested attributes
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/attr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink/attr.h b/include/netlink/attr.h
index 69ecb08..0ed3da3 100644
--- a/include/netlink/attr.h
+++ b/include/netlink/attr.h
@@ -124,6 +124,7 @@ extern int nla_put_msecs(struct nl_msg *, int, unsigned long);
extern int nla_put_nested(struct nl_msg *, int, struct nl_msg *);
extern struct nlattr * nla_nest_start(struct nl_msg *, int);
extern int nla_nest_end(struct nl_msg *, struct nlattr *);
+extern void nla_nest_cancel(struct nl_msg *, struct nlattr *);
extern int nla_parse_nested(struct nlattr **, int, struct nlattr *,
struct nla_policy *);
extern int nla_is_nested(struct nlattr *);