diff options
author | Thomas Haller <thaller@redhat.com> | 2022-04-22 16:09:10 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-04-22 16:09:10 (GMT) |
commit | b0641dd721995ee3c0b0b0acb5917559c566f4b1 (patch) | |
tree | c2c813f233c22639ed5a0e3678bdbd9281b2ff81 /include | |
parent | d544105979b1dfdf06ac525b4e5982f58c25ce77 (diff) | |
download | libnl-b0641dd721995ee3c0b0b0acb5917559c566f4b1.zip libnl-b0641dd721995ee3c0b0b0acb5917559c566f4b1.tar.gz libnl-b0641dd721995ee3c0b0b0acb5917559c566f4b1.tar.bz2 |
route/mdb: add _nl_auto_rtnl_mdb cleanup macro
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-private/nl-auto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/netlink-private/nl-auto.h b/include/netlink-private/nl-auto.h index 4516539..4434a5b 100644 --- a/include/netlink-private/nl-auto.h +++ b/include/netlink-private/nl-auto.h @@ -51,6 +51,11 @@ void rtnl_route_put(struct rtnl_route *); #define _nl_auto_rtnl_route _nl_auto(_nl_auto_rtnl_route_fcn) _NL_AUTO_DEFINE_FCN_TYPED0(struct rtnl_route *, _nl_auto_rtnl_route_fcn, rtnl_route_put); +struct rtnl_mdb; +void rtnl_mdb_put(struct rtnl_mdb *); +#define _nl_auto_rtnl_mdb _nl_auto(_nl_auto_rtnl_mdb_fcn) +_NL_AUTO_DEFINE_FCN_TYPED0(struct rtnl_mdb *, _nl_auto_rtnl_mdb_fcn, rtnl_mdb_put); + struct rtnl_nexthop; void rtnl_route_nh_free(struct rtnl_nexthop *); #define _nl_auto_rtnl_nexthop _nl_auto(_nl_auto_rtnl_nexthop_fcn) |