diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:11:32 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:11:32 +0200 |
commit | 05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd (patch) | |
tree | e54c1194e9613e54bd7d7183eaff21cbb42effaa /utils.h | |
parent | 2ac630138173e111e16b9c544d9da53f3af97f2e (diff) |
proto-shell: fix updating settings, only issue ifup event after configuration has been applied
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |