summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-12-01 17:18:02 +0100
committerThomas Haller <thaller@redhat.com>2023-12-01 17:34:14 +0100
commit78246da7bebb5dcc21a7ea67a813039a9cdab3be (patch)
tree4e3afb1dbe5344c020dcaa73186c453a9f1ac524
parent72762b2006cd4a6c630989600e11c98b63d0fa31 (diff)
downloadlibnl-78246da7bebb5dcc21a7ea67a813039a9cdab3be.tar.gz
nl-aux-route: add cleanup macro for rtnl_act_put_all()
-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 59647874..a0193d2b 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)