diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-12-05 17:28:14 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-12-31 20:40:18 +0000 |
commit | 02df3f67aad203e87602c0124489a41382994cbc (patch) | |
tree | 25cf05a42469bbf936cdcc90e28c5974a888bf07 /include/swaybar/tray | |
parent | ef555012fa49e66c30264fcb7ab2d62391b4aa2e (diff) |
swaybar: add StatusNotifierWatcher to tray
Diffstat (limited to 'include/swaybar/tray')
-rw-r--r-- | include/swaybar/tray/tray.h | 4 | ||||
-rw-r--r-- | include/swaybar/tray/watcher.h | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h index 217e2d45..cc3e8133 100644 --- a/include/swaybar/tray/tray.h +++ b/include/swaybar/tray/tray.h @@ -12,12 +12,16 @@ struct swaybar; struct swaybar_output; +struct swaybar_watcher; struct swaybar_tray { struct swaybar *bar; int fd; sd_bus *bus; + + struct swaybar_watcher *watcher_xdg; + struct swaybar_watcher *watcher_kde; }; struct swaybar_tray *create_tray(struct swaybar *bar); 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 |