DBus communication
More...
DBus communication
◆ spa_dbus_type
Enumerator |
---|
SPA_DBUS_TYPE_SESSION | The login session bus.
|
SPA_DBUS_TYPE_SYSTEM | The systemwide bus.
|
SPA_DBUS_TYPE_STARTER | The bus that started us, if any.
|
◆ SPA_TYPE_INTERFACE_DBus
◆ SPA_VERSION_DBUS
#define SPA_VERSION_DBUS 0 |
◆ SPA_DBUS_CONNECTION_EVENT_DESTROY
#define SPA_DBUS_CONNECTION_EVENT_DESTROY 0 |
◆ SPA_DBUS_CONNECTION_EVENT_DISCONNECTED
#define SPA_DBUS_CONNECTION_EVENT_DISCONNECTED 1 |
◆ SPA_DBUS_CONNECTION_EVENT_NUM
#define SPA_DBUS_CONNECTION_EVENT_NUM 2 |
◆ SPA_VERSION_DBUS_CONNECTION_EVENTS
#define SPA_VERSION_DBUS_CONNECTION_EVENTS 0 |
◆ SPA_VERSION_DBUS_CONNECTION
#define SPA_VERSION_DBUS_CONNECTION 1 |
◆ spa_dbus_connection_call
#define spa_dbus_connection_call |
( |
| c, |
|
|
| method, |
|
|
| vers, |
|
|
| ... ) |
◆ spa_dbus_connection_call_vp
#define spa_dbus_connection_call_vp |
( |
| c, |
|
|
| method, |
|
|
| vers, |
|
|
| ... ) |
◆ spa_dbus_connection_get
#define spa_dbus_connection_get |
( |
| c | ) |
|
Value:
#define spa_dbus_connection_call_vp(c, method, vers,...)
Definition dbus.h:100
Get the DBusConnection from a wrapper.
Note that the returned handle is closed and unref'd by spa_dbus immediately before emitting the asynchronous "disconnected" event. The caller must either deal with the invalidation, or keep an extra ref on the handle returned.
- Parameters
-
- Returns
- a pointer of type DBusConnection
- See also
- spa_dbus_connection.get
◆ spa_dbus_connection_destroy
#define spa_dbus_connection_destroy |
( |
| c | ) |
|
Value:
#define spa_dbus_connection_call(c, method, vers,...)
Definition dbus.h:94
Destroy a dbus connection wrapper.
- Parameters
-
conn | the wrapper to destroy |
- See also
- spa_dbus_connection.destroy
◆ spa_dbus_connection_add_listener
#define spa_dbus_connection_add_listener |
( |
| c, |
|
|
| ... ) |
◆ SPA_VERSION_DBUS_METHODS
#define SPA_VERSION_DBUS_METHODS 0 |
◆ spa_dbus_get_connection()
Get a new connection wrapper for the given bus type.
The connection wrapper is completely configured to operate in the main context of the handle that manages the spa_dbus interface.
- Parameters
-
dbus | the dbus manager |
type | the bus type to wrap |
error | location for the DBusError |
- Returns
- a new dbus connection wrapper or NULL on error
- See also
- spa_dbus_methods.get_connection