|
PipeWire 1.6.4
|
DBus communication. More...
Files | |
| file | spa/support/dbus.h |
| spa/support/dbus.h | |
Data Structures | |
| struct | spa_dbus |
| struct | spa_dbus_connection_events |
| struct | spa_dbus_connection |
| struct | spa_dbus_methods |
Enumerations | |
| enum | spa_dbus_type { SPA_DBUS_TYPE_SESSION , SPA_DBUS_TYPE_SYSTEM , SPA_DBUS_TYPE_STARTER } |
Macros | |
| #define | SPA_TYPE_INTERFACE_DBus SPA_TYPE_INFO_INTERFACE_BASE "DBus" |
| #define | SPA_VERSION_DBUS 0 |
| #define | SPA_DBUS_CONNECTION_EVENT_DESTROY 0 |
| #define | SPA_DBUS_CONNECTION_EVENT_DISCONNECTED 1 |
| #define | SPA_DBUS_CONNECTION_EVENT_NUM 2 |
| #define | SPA_VERSION_DBUS_CONNECTION_EVENTS 0 |
| #define | SPA_VERSION_DBUS_CONNECTION 1 |
| #define | SPA_VERSION_DBUS_METHODS 0 |
Functions | |
| SPA_API_DBUS void * | spa_dbus_connection_get (struct spa_dbus_connection *conn) |
| Get the DBusConnection from a wrapper. | |
| SPA_API_DBUS void | spa_dbus_connection_destroy (struct spa_dbus_connection *conn) |
| Destroy a dbus connection wrapper. | |
| SPA_API_DBUS void | spa_dbus_connection_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. | |
| SPA_API_DBUS struct spa_dbus_connection * | spa_dbus_get_connection (struct spa_dbus *dbus, enum spa_dbus_type type) |
| Get a new connection wrapper for the given bus type. | |
DBus communication.
| enum spa_dbus_type |
| #define SPA_TYPE_INTERFACE_DBus SPA_TYPE_INFO_INTERFACE_BASE "DBus" |
| #define SPA_VERSION_DBUS 0 |
| #define SPA_DBUS_CONNECTION_EVENT_DESTROY 0 |
| #define SPA_DBUS_CONNECTION_EVENT_DISCONNECTED 1 |
| #define SPA_DBUS_CONNECTION_EVENT_NUM 2 |
| #define SPA_VERSION_DBUS_CONNECTION_EVENTS 0 |
| #define SPA_VERSION_DBUS_CONNECTION 1 |
| #define SPA_VERSION_DBUS_METHODS 0 |
| SPA_API_DBUS void * spa_dbus_connection_get | ( | struct spa_dbus_connection * | conn | ) |
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.
| conn | the spa_dbus_connection wrapper |
| SPA_API_DBUS void spa_dbus_connection_destroy | ( | struct spa_dbus_connection * | conn | ) |
Destroy a dbus connection wrapper.
| conn | the wrapper to destroy |
| SPA_API_DBUS void spa_dbus_connection_add_listener | ( | struct spa_dbus_connection * | conn, |
| struct spa_hook * | listener, | ||
| const struct spa_dbus_connection_events * | events, | ||
| void * | data ) |
| SPA_API_DBUS struct spa_dbus_connection * spa_dbus_get_connection | ( | struct spa_dbus * | dbus, |
| enum spa_dbus_type | type ) |
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.
| dbus | the dbus manager |
| type | the bus type to wrap |
| error | location for the DBusError |