mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
24 lines
537 B
C
24 lines
537 B
C
#ifndef _SWAYBAR_DBUS_H
|
|
#define _SWAYBAR_DBUS_H
|
|
|
|
#include <stdbool.h>
|
|
#include <dbus/dbus.h>
|
|
extern DBusConnection *conn;
|
|
|
|
/**
|
|
* Checks the signature of the given iter against `sig`. Prefer to
|
|
* `dbus_message_iter_get_signature` as this one frees the intermediate string.
|
|
*/
|
|
bool dbus_message_iter_check_signature(DBusMessageIter *iter, const char *sig);
|
|
|
|
/**
|
|
* Should be called in main loop to dispatch events
|
|
*/
|
|
void dispatch_dbus();
|
|
|
|
/**
|
|
* Initializes async dbus communication
|
|
*/
|
|
int dbus_init();
|
|
|
|
#endif /* _SWAYBAR_DBUS_H */
|