Go to the documentation of this file.
39 #define SPA_TYPE_INTERFACE_DBus SPA_TYPE_INFO_INTERFACE_BASE "DBus"
41 #define SPA_VERSION_DBUS 0
50 #define SPA_DBUS_CONNECTION_EVENT_DESTROY 0
51 #define SPA_DBUS_CONNECTION_EVENT_DISCONNECTED 1
52 #define SPA_DBUS_CONNECTION_EVENT_NUM 2
55 #define SPA_VERSION_DBUS_CONNECTION_EVENTS 0
66 #define SPA_VERSION_DBUS_CONNECTION 1
98 #define spa_dbus_connection_call(c,method,vers,...) \
100 if (SPA_LIKELY(SPA_CALLBACK_CHECK(c,method,vers))) \
101 c->method((c), ## __VA_ARGS__); \
104 #define spa_dbus_connection_call_vp(c,method,vers,...) \
107 if (SPA_LIKELY(SPA_CALLBACK_CHECK(c,method,vers))) \
108 _res = c->method((c), ## __VA_ARGS__); \
112 #define spa_dbus_connection_get(c) spa_dbus_connection_call_vp(c,get,0)
113 #define spa_dbus_connection_destroy(c) spa_dbus_connection_call(c,destroy,0)
114 #define spa_dbus_connection_add_listener(c,...) spa_dbus_connection_call(c,add_listener,1,__VA_ARGS__)
117 #define SPA_VERSION_DBUS_METHODS 0
142 get_connection, 0, type);
#define spa_interface_call_res(iface, method_type, res, method, vers,...)
Invoke method named method in the callbacks on the given interface object.
Definition: hook.h:208
void(* add_listener)(struct spa_dbus_connection *conn, struct spa_hook *listener, const struct spa_dbus_connection_events *events, void *data)
Add a listener for events.
Definition: dbus.h:92
@ SPA_DBUS_TYPE_STARTER
The bus that started us, if any.
Definition: dbus.h:47
uint32_t version
Definition: dbus.h:118
user data to add to an object
Definition: filter.c:75
spa_dbus_type
Definition: dbus.h:44
void(* destroy)(struct spa_dbus_connection *conn)
Destroy a dbus connection wrapper.
Definition: dbus.h:85
@ SPA_DBUS_TYPE_SYSTEM
The systemwide bus.
Definition: dbus.h:46
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
uint32_t version
Definition: dbus.h:56
void(* disconnected)(void *data)
Definition: dbus.h:62
struct spa_interface iface
Definition: dbus.h:42
struct spa_dbus_connection * spa_dbus_get_connection(struct spa_dbus *dbus, enum spa_dbus_type type)
Definition: dbus.h:137
void(* destroy)(void *data)
Definition: dbus.h:59
@ SPA_DBUS_TYPE_SESSION
The login session bus.
Definition: dbus.h:45
uint32_t version
Definition: dbus.h:67