Functions | |
DBusConnection * | dbus_bus_get (DBusBusType type, DBusError *error) |
Connects to a bus daemon and registers the client with it. | |
dbus_bool_t | dbus_bus_register (DBusConnection *connection, DBusError *error) |
Registers a connection with the bus. | |
dbus_bool_t | dbus_bus_set_base_service (DBusConnection *connection, const char *base_service) |
Sets the base service name of the connection. | |
const char * | dbus_bus_get_base_service (DBusConnection *connection) |
Gets the base service name of the connection. | |
int | dbus_bus_acquire_service (DBusConnection *connection, const char *service_name, unsigned int flags, DBusError *error) |
Asks the bus to try to acquire a certain service. | |
dbus_bool_t | dbus_bus_service_exists (DBusConnection *connection, const char *service_name, DBusError *error) |
Checks whether a certain service exists. | |
dbus_bool_t | dbus_bus_activate_service (DBusConnection *connection, const char *service_name, dbus_uint32_t flags, dbus_uint32_t *result, DBusError *error) |
Activates a given service. |
|
Asks the bus to try to acquire a certain service.
Definition at line 512 of file dbus-bus.c. References dbus_connection_send_with_reply_and_block(), dbus_message_append_args(), dbus_message_get_args(), dbus_message_new(), dbus_message_unref(), dbus_set_error_from_message(), dbus_uint32_t, and NULL. |
|
Activates a given service.
Definition at line 651 of file dbus-bus.c. References dbus_connection_send_with_reply_and_block(), dbus_message_append_args(), dbus_message_get_args(), dbus_message_new(), dbus_message_unref(), dbus_set_error_from_message(), FALSE, NULL, and TRUE. |
|
Connects to a bus daemon and registers the client with it. If a connection to the bus already exists, then that connection is returned.
Definition at line 282 of file dbus-bus.c. References _dbus_assert, _DBUS_LOCK, _DBUS_UNLOCK, dbus_bus_register(), dbus_connection_disconnect(), dbus_connection_open(), dbus_connection_ref(), dbus_connection_unref(), dbus_set_error(), BusData::is_well_known, NULL, and TRUE. |
|
Gets the base service name of the connection. Only possible after the connection has been registered with the message bus.
Definition at line 483 of file dbus-bus.c. References BusData::base_service, and NULL. |
|
Registers a connection with the bus. This must be the first thing an application does when connecting to the message bus. If registration succeeds, the base service name will be set, and can be obtained using dbus_bus_get_base_service().
Definition at line 377 of file dbus-bus.c. References _dbus_warn(), BusData::base_service, dbus_bool_t, dbus_connection_send_with_reply_and_block(), dbus_message_get_args(), dbus_message_new(), dbus_message_unref(), dbus_set_error_from_message(), FALSE, NULL, and TRUE. Referenced by dbus_bus_get(). |
|
Checks whether a certain service exists.
Definition at line 587 of file dbus-bus.c. References dbus_connection_send_with_reply_and_block(), dbus_message_append_args(), dbus_message_get_args(), dbus_message_new(), dbus_message_unref(), FALSE, and NULL. |
|
Sets the base service name of the connection. Can only be used if you registered with the bus manually (i.e. if you did not call dbus_bus_register()). Can only be called once per connection.
Definition at line 456 of file dbus-bus.c. References _dbus_assert, _dbus_strdup(), BusData::base_service, FALSE, and NULL. |