aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar/tray/watcher.h
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-12-05 17:28:14 +0000
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-12-31 20:40:18 +0000
commit02df3f67aad203e87602c0124489a41382994cbc (patch)
tree25cf05a42469bbf936cdcc90e28c5974a888bf07 /include/swaybar/tray/watcher.h
parentswaybar: add skeleton dbus code to tray (diff)
downloadsway-02df3f67aad203e87602c0124489a41382994cbc.tar.gz
sway-02df3f67aad203e87602c0124489a41382994cbc.tar.zst
sway-02df3f67aad203e87602c0124489a41382994cbc.zip
swaybar: add StatusNotifierWatcher to tray
Diffstat (limited to 'include/swaybar/tray/watcher.h')
-rw-r--r--include/swaybar/tray/watcher.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/swaybar/tray/watcher.h b/include/swaybar/tray/watcher.h
new file mode 100644
index 00000000..8f276da8
--- /dev/null
+++ b/include/swaybar/tray/watcher.h
@@ -0,0 +1,18 @@
1#ifndef _SWAYBAR_TRAY_WATCHER_H
2#define _SWAYBAR_TRAY_WATCHER_H
3
4#include "swaybar/tray/tray.h"
5#include "list.h"
6
7struct swaybar_watcher {
8 char *interface;
9 sd_bus *bus;
10 list_t *hosts;
11 list_t *items;
12 int version;
13};
14
15struct swaybar_watcher *create_watcher(char *protocol, sd_bus *bus);
16void destroy_watcher(struct swaybar_watcher *watcher);
17
18#endif