summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 16df3ee7..3bb497db 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -104,7 +104,7 @@ struct sway_container *container_view_destroy(struct sway_container *view);
104struct sway_container *container_set_layout(struct sway_container *container, 104struct sway_container *container_set_layout(struct sway_container *container,
105 enum sway_container_layout layout); 105 enum sway_container_layout layout);
106 106
107void container_descendents(struct sway_container *root, 107void container_descendants(struct sway_container *root,
108 enum sway_container_type type, 108 enum sway_container_type type,
109 void (*func)(struct sway_container *item, void *data), void *data); 109 void (*func)(struct sway_container *item, void *data), void *data);
110 110
@@ -131,7 +131,13 @@ struct sway_container *container_at(struct sway_container *parent,
131/** 131/**
132 * Apply the function for each child of the container breadth first. 132 * Apply the function for each child of the container breadth first.
133 */ 133 */
134void container_for_each_descendent(struct sway_container *container, 134void container_for_each_descendant_bfs(struct sway_container *container,
135 void (*f)(struct sway_container *container, void *data), void *data);
136
137/**
138 * Apply the function for each child of the container depth first.
139 */
140void container_for_each_descendant_dfs(struct sway_container *container,
135 void (*f)(struct sway_container *container, void *data), void *data); 141 void (*f)(struct sway_container *container, void *data), void *data);
136 142
137#endif 143#endif