Added minimum viable swaybar tray SNI protocol support using sd-bus

This commit is contained in:
David McKinney 2018-09-16 15:44:53 -04:00
parent 456b91600d
commit 854c0d3b6d
13 changed files with 392 additions and 17 deletions

View file

@ -2,17 +2,14 @@
#define _SWAYBAR_DBUS_H
#include <stdbool.h>
#include <dbus/dbus.h>
extern DBusConnection *conn;
#include <systemd/sd-bus.h>
/**
* Should be called in main loop to dispatch events
*/
void dispatch_dbus();
void process_request(int fd, short mask, void *data);
/**
* Initializes async dbus communication
*/
int dbus_init();
bool dbus_init();
void finish_dbus(sd_bus_slot *slot, sd_bus *bus);
int dbus_name_has_owner(sd_bus *bus, const char *name, sd_bus_error *error);
#endif /* _SWAYBAR_DBUS_H */