swaybar: add StatusNotifierWatcher to tray

This commit is contained in:
Ian Fan 2018-12-05 17:28:14 +00:00
parent ef555012fa
commit 02df3f67aa
5 changed files with 242 additions and 0 deletions

View file

@ -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