summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-12-01 16:18:02 (GMT)
committerThomas Haller <thaller@redhat.com>2023-12-01 16:34:14 (GMT)
commit78246da7bebb5dcc21a7ea67a813039a9cdab3be (patch)
tree4e3afb1dbe5344c020dcaa73186c453a9f1ac524 /include
parent72762b2006cd4a6c630989600e11c98b63d0fa31 (diff)
downloadlibnl-78246da7bebb5dcc21a7ea67a813039a9cdab3be.zip
libnl-78246da7bebb5dcc21a7ea67a813039a9cdab3be.tar.gz
libnl-78246da7bebb5dcc21a7ea67a813039a9cdab3be.tar.bz2
nl-aux-route: add cleanup macro for rtnl_act_put_all()
Diffstat (limited to 'include')
-rw-r--r--include/nl-aux-route/nl-route.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nl-aux-route/nl-route.h b/include/nl-aux-route/nl-route.h
index 5964787..a0193d2 100644
--- a/include/nl-aux-route/nl-route.h
+++ b/include/nl-aux-route/nl-route.h
@@ -46,6 +46,11 @@ void rtnl_act_put(struct rtnl_act *);
_NL_AUTO_DEFINE_FCN_TYPED0(struct rtnl_act *, _nl_auto_rtnl_act_fcn,
rtnl_act_put);
+void rtnl_act_put_all(struct rtnl_act **head);
+#define _nl_auto_rtnl_act_all _nl_auto(_nl_auto_rtnl_act_fcn_all)
+_NL_AUTO_DEFINE_FCN_INDIRECT0(struct rtnl_act *, _nl_auto_rtnl_act_fcn_all,
+ rtnl_act_put_all);
+
struct rtnl_ematch_tree;
void rtnl_ematch_tree_free(struct rtnl_ematch_tree *);
#define _nl_auto_rtnl_ematch_tree _nl_auto(_nl_auto_rtnl_ematch_tree_fcn)