summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-13 15:11:32 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-13 15:11:32 +0200
commit05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd (patch)
treee54c1194e9613e54bd7d7183eaff21cbb42effaa /utils.h
parent2ac630138173e111e16b9c544d9da53f3af97f2e (diff)
downloadnetifd-05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd.tar.gz
proto-shell: fix updating settings, only issue ifup event after configuration has been applied
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 85d7dc6..6500fdf 100644
--- a/utils.h
+++ b/utils.h
@@ -34,6 +34,11 @@ void __vlist_init(struct vlist_tree *tree, avl_tree_comp cmp, vlist_update_cb up
#define vlist_init(tree, cmp, update, type, node, key) \
__vlist_init(tree, cmp, update, offsetof(type, key) - offsetof(type, node))
+static inline void vlist_update(struct vlist_tree *tree)
+{
+ tree->version++;
+}
+
void vlist_add(struct vlist_tree *tree, struct vlist_node *node);
void vlist_delete(struct vlist_tree *tree, struct vlist_node *node);
void vlist_flush(struct vlist_tree *tree);