From 67dce280d78f07d5a66c0ea5336cea09d5f34cc2 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 9 Sep 2020 17:13:11 -0600 Subject: [PATCH] interface: add lif_interface.rdepends_count --- libifupdown/interface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libifupdown/interface.h b/libifupdown/interface.h index a18c4b7..d627610 100644 --- a/libifupdown/interface.h +++ b/libifupdown/interface.h @@ -53,7 +53,8 @@ struct lif_interface { struct lif_dict vars; - size_t refcount; /* >= 0 if up, else 0 */ + size_t refcount; /* > 0 if up, else 0 */ + size_t rdepends_count; /* > 0 if any reverse dependency */ }; #define LIF_INTERFACE_COLLECTION_FOREACH(iter, collection) \