diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-03-29 23:53:38 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-03-29 23:53:38 -0400 |
commit | 8f490d7d2dbadfe85dcf3dcd972471e86671442a (patch) | |
tree | 6f7a3121f15503a923c1ce53bf2bee368c6149a6 /include/sway/tree | |
parent | dc8c9fbeb664518c76066cc28ee29452c6c30128 (diff) |
Fix oversights from previous pull request
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/container.h | 10 |
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); struct sway_container *container_set_layout(struct sway_container *container, enum sway_container_layout layout); -void container_descendents(struct sway_container *root, +void container_descendants(struct sway_container *root, enum sway_container_type type, void (*func)(struct sway_container *item, void *data), void *data); @@ -131,7 +131,13 @@ struct sway_container *container_at(struct sway_container *parent, /** * Apply the function for each child of the container breadth first. */ -void container_for_each_descendent(struct sway_container *container, +void container_for_each_descendant_bfs(struct sway_container *container, + void (*f)(struct sway_container *container, void *data), void *data); + +/** + * Apply the function for each child of the container depth first. + */ +void container_for_each_descendant_dfs(struct sway_container *container, void (*f)(struct sway_container *container, void *data), void *data); #endif |