diff options
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/swaybar/main.c b/swaybar/main.c new file mode 100644 index 00000000..49ba7a78 --- /dev/null +++ b/swaybar/main.c | |||
@@ -0,0 +1,20 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <stdlib.h> | ||
3 | #include "client/registry.h" | ||
4 | #include "client/window.h" | ||
5 | #include "log.h" | ||
6 | |||
7 | struct registry *registry; | ||
8 | struct window *window; | ||
9 | |||
10 | void sway_terminate(void) { | ||
11 | window_teardown(window); | ||
12 | registry_teardown(registry); | ||
13 | exit(EXIT_FAILURE); | ||
14 | } | ||
15 | |||
16 | int main(int argc, char **argv) { | ||
17 | init_log(L_INFO); | ||
18 | sway_log(L_INFO, "Hello world!"); | ||
19 | return 0; | ||
20 | } | ||