aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/tray/watcher.h
blob: 8f276da8e29989238b9611a7e015ee4462f78463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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