mirror of
https://github.com/swaywm/sway.git
synced 2026-05-05 06:46:49 -04:00
Added minimum viable swaybar tray SNI protocol support using sd-bus
This commit is contained in:
parent
456b91600d
commit
854c0d3b6d
13 changed files with 392 additions and 17 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue