blob: 3b1662b761f814d1926745821b7a10d0b1be4856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef YASL_FREEDESKTOP_DBUS_H
#define YASL_FREEDESKTOP_DBUS_H
#include <stdbool.h>
#include <stdint.h>
/* Session-bus helpers. The first call opens a private connection that later
* calls reuse. Each returns false when YASL is built without libdbus-1 or no
* session bus is reachable. Call from one thread at a time. */
/* Send org.freedesktop.Notifications.Notify without waiting for a reply. */
bool bus_notify(const char *app, const char *title, const char *body);
/* Read an integer setting through the XDG Settings portal, waiting briefly. */
bool portal_read_int(const char *ns, const char *key, int64_t *out);
#endif
|