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 | |
parent | Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree" (diff) | |
download | sway-8f490d7d2dbadfe85dcf3dcd972471e86671442a.tar.gz sway-8f490d7d2dbadfe85dcf3dcd972471e86671442a.tar.zst sway-8f490d7d2dbadfe85dcf3dcd972471e86671442a.zip |
Fix oversights from previous pull request
Diffstat (limited to 'include')
-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); | |||
104 | struct sway_container *container_set_layout(struct sway_container *container, | 104 | struct sway_container *container_set_layout(struct sway_container *container, |
105 | enum sway_container_layout layout); | 105 | enum sway_container_layout layout); |
106 | 106 | ||
107 | void container_descendents(struct sway_container *root, | 107 | void 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 | */ |
134 | void container_for_each_descendent(struct sway_container *container, | 134 | void 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 | */ | ||
140 | void 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 |