diff options
Diffstat (limited to 'include/swaybar/tray/tray.h')
-rw-r--r-- | include/swaybar/tray/tray.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h new file mode 100644 index 00000000..8958b69a --- /dev/null +++ b/include/swaybar/tray/tray.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef _SWAYBAR_TRAY_TRAY_H | ||
2 | #define _SWAYBAR_TRAY_TRAY_H | ||
3 | |||
4 | #include "config.h" | ||
5 | #ifdef HAVE_SYSTEMD | ||
6 | #include <systemd/sd-bus.h> | ||
7 | #elif HAVE_ELOGIND | ||
8 | #include <elogind/sd-bus.h> | ||
9 | #endif | ||
10 | #include <cairo.h> | ||
11 | #include <stdint.h> | ||
12 | #include "swaybar/tray/host.h" | ||
13 | #include "list.h" | ||
14 | |||
15 | struct swaybar; | ||
16 | struct swaybar_output; | ||
17 | struct swaybar_watcher; | ||
18 | |||
19 | struct swaybar_tray { | ||
20 | struct swaybar *bar; | ||
21 | |||
22 | int fd; | ||
23 | sd_bus *bus; | ||
24 | |||
25 | struct swaybar_host host_xdg; | ||
26 | struct swaybar_host host_kde; | ||
27 | list_t *items; // struct swaybar_sni * | ||
28 | struct swaybar_watcher *watcher_xdg; | ||
29 | struct swaybar_watcher *watcher_kde; | ||
30 | |||
31 | list_t *basedirs; // char * | ||
32 | list_t *themes; // struct swaybar_theme * | ||
33 | }; | ||
34 | |||
35 | struct swaybar_tray *create_tray(struct swaybar *bar); | ||
36 | void destroy_tray(struct swaybar_tray *tray); | ||
37 | void tray_in(int fd, short mask, void *data); | ||
38 | uint32_t render_tray(cairo_t *cairo, struct swaybar_output *output, double *x); | ||
39 | |||
40 | #endif | ||