aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/tray/watcher.h
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-12-05 17:28:14 +0000
committerIan Fan <ianfan0@gmail.com>2018-12-31 20:40:18 +0000
commit02df3f67aad203e87602c0124489a41382994cbc (patch)
tree25cf05a42469bbf936cdcc90e28c5974a888bf07 /include/swaybar/tray/watcher.h
parentef555012fa49e66c30264fcb7ab2d62391b4aa2e (diff)
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 @@
+#ifndef _SWAYBAR_TRAY_WATCHER_H
+#define _SWAYBAR_TRAY_WATCHER_H
+
+#include "swaybar/tray/tray.h"
+#include "list.h"
+
+struct swaybar_watcher {
+ char *interface;
+ sd_bus *bus;
+ list_t *hosts;
+ list_t *items;
+ int version;
+};
+
+struct swaybar_watcher *create_watcher(char *protocol, sd_bus *bus);
+void destroy_watcher(struct swaybar_watcher *watcher);
+
+#endif