From e6cb55e2f8176b0ea8a6dbf15c728c56d8b74056 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Fri, 7 Dec 2018 12:33:45 +0000 Subject: swaybar: add StatusNotifierHost to tray --- include/swaybar/tray/host.h | 17 +++++++++++++++++ include/swaybar/tray/tray.h | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 include/swaybar/tray/host.h (limited to 'include/swaybar') diff --git a/include/swaybar/tray/host.h b/include/swaybar/tray/host.h new file mode 100644 index 00000000..2d4cf82b --- /dev/null +++ b/include/swaybar/tray/host.h @@ -0,0 +1,17 @@ +#ifndef _SWAYBAR_TRAY_HOST_H +#define _SWAYBAR_TRAY_HOST_H + +#include + +struct swaybar_tray; + +struct swaybar_host { + struct swaybar_tray *tray; + char *service; + char *watcher_interface; +}; + +bool init_host(struct swaybar_host *host, char *protocol, struct swaybar_tray *tray); +void finish_host(struct swaybar_host *host); + +#endif diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h index 8e15fb86..1d976b4a 100644 --- a/include/swaybar/tray/tray.h +++ b/include/swaybar/tray/tray.h @@ -9,6 +9,7 @@ #endif #include #include +#include "swaybar/tray/host.h" #include "list.h" struct swaybar; @@ -21,6 +22,9 @@ struct swaybar_tray { int fd; sd_bus *bus; + struct swaybar_host host_xdg; + struct swaybar_host host_kde; + list_t *items; // char * struct swaybar_watcher *watcher_xdg; struct swaybar_watcher *watcher_kde; -- cgit v1.2.3