aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/root.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-18 10:29:46 -0400
committerGitHub <noreply@github.com>2018-08-18 10:29:46 -0400
commit744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef (patch)
tree7a5ebeae1d5e15f047f09698978fa84f61756faa /include/sway/tree/root.h
parentd4a32800d5eb938a769d7802b23f4a0f43cadaef (diff)
parentd6cd79c342495738fc23fbfbf19a01e73cdc42dc (diff)
Merge pull request #2473 from RyanDwyer/iterators-per-type
Implement iterators per container type
Diffstat (limited to 'include/sway/tree/root.h')
-rw-r--r--include/sway/tree/root.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h
index edb7c817..d1f04a96 100644
--- a/include/sway/tree/root.h
+++ b/include/sway/tree/root.h
@@ -58,4 +58,19 @@ struct sway_container *root_workspace_for_pid(pid_t pid);
void root_record_workspace_pid(pid_t pid);
+void root_for_each_workspace(void (*f)(struct sway_container *con, void *data),
+ void *data);
+
+void root_for_each_container(void (*f)(struct sway_container *con, void *data),
+ void *data);
+
+struct sway_container *root_find_output(
+ bool (*test)(struct sway_container *con, void *data), void *data);
+
+struct sway_container *root_find_workspace(
+ bool (*test)(struct sway_container *con, void *data), void *data);
+
+struct sway_container *root_find_container(
+ bool (*test)(struct sway_container *con, void *data), void *data);
+
#endif