diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-09-01 08:18:37 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-09-01 08:18:37 -0400 |
commit | 416417a54c5875abcdc257b6ad10ff086c35eefc (patch) | |
tree | 00f20884a05d05e620a4a24bba8595557cd41405 /include/bar/bar.h | |
parent | 729fdf7d9186ceba0f84b87edfd473642964227f (diff) |
Reorganize includes
Diffstat (limited to 'include/bar/bar.h')
-rw-r--r-- | include/bar/bar.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/include/bar/bar.h b/include/bar/bar.h deleted file mode 100644 index a3c511d9..00000000 --- a/include/bar/bar.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef _SWAYBAR_BAR_H -#define _SWAYBAR_BAR_H - -#include "client/registry.h" -#include "client/window.h" -#include "list.h" - -struct bar { - struct config *config; - struct status_line *status; - list_t *outputs; - - int ipc_event_socketfd; - int ipc_socketfd; - int status_read_fd; - pid_t status_command_pid; -}; - -struct output { - struct window *window; - struct registry *registry; - list_t *workspaces; - char *name; - int idx; -}; - -struct workspace { - int num; - char *name; - bool focused; - bool visible; - bool urgent; -}; - -/** Global bar state */ -extern struct bar swaybar; - -/** - * Setup bar. - */ -void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id); - -/** - * Create new output struct from name. - */ -struct output *new_output(const char *name); - -/** - * Bar mainloop. - */ -void bar_run(struct bar *bar); - -/** - * free workspace list. - */ -void free_workspaces(list_t *workspaces); - -/** - * Teardown bar. - */ -void bar_teardown(struct bar *bar); - -#endif /* _SWAYBAR_BAR_H */ |