diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/tray/host.h | 17 | ||||
-rw-r--r-- | include/swaybar/tray/tray.h | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/include/swaybar/tray/host.h b/include/swaybar/tray/host.h new file mode 100644 index 00000000..2d4cf82b --- /dev/null +++ b/include/swaybar/tray/host.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef _SWAYBAR_TRAY_HOST_H | ||
2 | #define _SWAYBAR_TRAY_HOST_H | ||
3 | |||
4 | #include <stdbool.h> | ||
5 | |||
6 | struct swaybar_tray; | ||
7 | |||
8 | struct swaybar_host { | ||
9 | struct swaybar_tray *tray; | ||
10 | char *service; | ||
11 | char *watcher_interface; | ||
12 | }; | ||
13 | |||
14 | bool init_host(struct swaybar_host *host, char *protocol, struct swaybar_tray *tray); | ||
15 | void finish_host(struct swaybar_host *host); | ||
16 | |||
17 | #endif | ||
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h index 8e15fb86..1d976b4a 100644 --- a/include/swaybar/tray/tray.h +++ b/include/swaybar/tray/tray.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #endif | 9 | #endif |
10 | #include <cairo.h> | 10 | #include <cairo.h> |
11 | #include <stdint.h> | 11 | #include <stdint.h> |
12 | #include "swaybar/tray/host.h" | ||
12 | #include "list.h" | 13 | #include "list.h" |
13 | 14 | ||
14 | struct swaybar; | 15 | struct swaybar; |
@@ -21,6 +22,9 @@ struct swaybar_tray { | |||
21 | int fd; | 22 | int fd; |
22 | sd_bus *bus; | 23 | sd_bus *bus; |
23 | 24 | ||
25 | struct swaybar_host host_xdg; | ||
26 | struct swaybar_host host_kde; | ||
27 | list_t *items; // char * | ||
24 | struct swaybar_watcher *watcher_xdg; | 28 | struct swaybar_watcher *watcher_xdg; |
25 | struct swaybar_watcher *watcher_kde; | 29 | struct swaybar_watcher *watcher_kde; |
26 | 30 | ||