diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-09-24 18:42:25 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-09-28 13:48:59 +0100 |
commit | 312d009f656e86401cda1c6198b929e4cbd85d2f (patch) | |
tree | 4ac796d0f654d29416a1906e70b05d79e1a0641a /include/swaybar | |
parent | 02df1e2b1b4306481f8e1023d99fb568095a89b3 (diff) |
swaybar: fail if bar id is invalid
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 4 | ||||
-rw-r--r-- | include/swaybar/ipc.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 29e96159..20a51809 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -95,9 +95,7 @@ struct swaybar_workspace { bool urgent; }; -void bar_setup(struct swaybar *bar, - const char *socket_path, - const char *bar_id); +bool bar_setup(struct swaybar *bar, const char *socket_path, const char *bar_id); void bar_run(struct swaybar *bar); void bar_teardown(struct swaybar *bar); diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h index a1696bcf..81e48a6b 100644 --- a/include/swaybar/ipc.h +++ b/include/swaybar/ipc.h @@ -3,7 +3,7 @@ #include <stdbool.h> #include "swaybar/bar.h" -void ipc_initialize(struct swaybar *bar, const char *bar_id); +bool ipc_initialize(struct swaybar *bar, const char *bar_id); bool handle_ipc_readable(struct swaybar *bar); void ipc_get_workspaces(struct swaybar *bar); void ipc_send_workspace_command(struct swaybar *bar, const char *ws); |