proto-shell: fix updating settings, only issue ifup event after configuration has...
[project/netifd.git] / utils.h
diff --git a/utils.h b/utils.h
index 85d7dc6bdb0d23c6fd97641ac254eaa230558795..6500fdf80297b50841c06fc9e28c3e63c2c7e3dc 100644 (file)
--- 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);