diff options
Diffstat (limited to 'include/swaybar/tray/tray.h')
-rw-r--r-- | include/swaybar/tray/tray.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h new file mode 100644 index 00000000..7d371008 --- /dev/null +++ b/include/swaybar/tray/tray.h | |||
@@ -0,0 +1,26 @@ | |||
1 | #ifndef _SWAYBAR_TRAY_H | ||
2 | #define _SWAYBAR_TRAY_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | #include <stdbool.h> | ||
6 | #include "swaybar/tray/dbus.h" | ||
7 | #include "swaybar/tray/sni.h" | ||
8 | #include "list.h" | ||
9 | |||
10 | extern struct tray *tray; | ||
11 | |||
12 | struct tray { | ||
13 | list_t *items; | ||
14 | }; | ||
15 | |||
16 | /** | ||
17 | * Initializes the tray host with D-Bus | ||
18 | */ | ||
19 | int init_tray(); | ||
20 | |||
21 | /** | ||
22 | * Returns an item if `x` and `y` collide with it and NULL otherwise | ||
23 | */ | ||
24 | struct StatusNotifierItem *collides_with_sni(int x, int y); | ||
25 | |||
26 | #endif /* _SWAYBAR_TRAY_H */ | ||