Data Structures | |
struct | _E_DBus_Version |
Macros | |
#define | E_DBUS_FDO_BUS "org.freedesktop.DBus" |
#define | E_DBUS_FDO_INTERFACE E_DBUS_FDO_BUS |
#define | E_DBUS_FDO_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties" |
#define | E_DBUS_FDO_PATH "/org/freedesktop/DBus" |
#define | E_DBUS_VERSION_MAJOR 1 |
#define | E_DBUS_VERSION_MINOR 7 |
Typedefs | |
typedef struct E_DBus_Callback | E_DBus_Callback |
typedef void(* | E_DBus_Callback_Func) (void *user_data, void *method_return, DBusError *error) |
typedef struct E_DBus_Connection | E_DBus_Connection |
typedef void(* | E_DBus_Free_Func) (void *data) |
typedef struct E_DBus_Interface | E_DBus_Interface |
typedef DBusMessage *(* | E_DBus_Method_Cb) (E_DBus_Object *obj, DBusMessage *message) |
typedef void(* | E_DBus_Method_Return_Cb) (void *data, DBusMessage *msg, DBusError *error) |
typedef struct E_DBus_Object | E_DBus_Object |
typedef void(* | E_DBus_Object_Property_Get_Cb) (E_DBus_Object *obj, const char *property, int *type, void **value) |
typedef int(* | E_DBus_Object_Property_Set_Cb) (E_DBus_Object *obj, const char *property, int type, void *value) |
typedef void(* | E_DBus_Signal_Cb) (void *data, DBusMessage *msg) |
typedef struct E_DBus_Signal_Handler | E_DBus_Signal_Handler |
typedef void *(* | E_DBus_Unmarshal_Func) (DBusMessage *msg, DBusError *err) |
typedef struct _E_DBus_Version | E_DBus_Version |
Functions | |
EAPI E_DBus_Connection * | e_dbus_bus_get (DBusBusType type) |
EAPI void | e_dbus_callback_call (E_DBus_Callback *cb, void *data, DBusError *error) |
EAPI void | e_dbus_callback_free (E_DBus_Callback *callback) |
Free a callback structure. More... | |
EAPI E_DBus_Callback * | e_dbus_callback_new (E_DBus_Callback_Func cb_func, E_DBus_Unmarshal_Func unmarshal_func, E_DBus_Free_Func free_func, void *user_data) |
Create a callback structure. More... | |
EAPI void | e_dbus_callback_return_free (E_DBus_Callback *callback, void *data) |
EAPI void * | e_dbus_callback_unmarshal (E_DBus_Callback *cb, DBusMessage *msg, DBusError *err) |
EAPI void | e_dbus_connection_close (E_DBus_Connection *conn) |
EAPI void | e_dbus_connection_ref (E_DBus_Connection *conn) |
EAPI E_DBus_Connection * | e_dbus_connection_setup (DBusConnection *conn) |
EAPI DBusPendingCall * | e_dbus_get_name_owner (E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI int | e_dbus_init (void) |
Initialize e_dbus. More... | |
EAPI int | e_dbus_interface_method_add (E_DBus_Interface *iface, const char *member, const char *signature, const char *reply_signature, E_DBus_Method_Cb func) |
EAPI E_DBus_Interface * | e_dbus_interface_new (const char *interface) |
EAPI void | e_dbus_interface_ref (E_DBus_Interface *iface) |
EAPI int | e_dbus_interface_signal_add (E_DBus_Interface *iface, const char *name, const char *signature) |
EAPI void | e_dbus_interface_unref (E_DBus_Interface *iface) |
EAPI DBusPendingCall * | e_dbus_introspect (E_DBus_Connection *conn, const char *bus, const char *object_path, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_list_activatable_names (E_DBus_Connection *conn, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_list_names (E_DBus_Connection *conn, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_message_send (E_DBus_Connection *conn, DBusMessage *msg, E_DBus_Method_Return_Cb cb_return, int timeout, void *data) |
Send a DBus message with callbacks. More... | |
EAPI DBusPendingCall * | e_dbus_method_call_send (E_DBus_Connection *conn, DBusMessage *msg, E_DBus_Unmarshal_Func unmarshal_func, E_DBus_Callback_Func cb_func, E_DBus_Free_Func free_func, int timeout, void *data) |
EAPI DBusPendingCall * | e_dbus_name_has_owner (E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI E_DBus_Object * | e_dbus_object_add (E_DBus_Connection *conn, const char *object_path, void *data) |
EAPI E_DBus_Connection * | e_dbus_object_conn_get (E_DBus_Object *obj) |
Get the dbus connection of a dbus object. More... | |
EAPI void * | e_dbus_object_data_get (E_DBus_Object *obj) |
Fetch the data pointer for a dbus object. More... | |
EAPI void | e_dbus_object_free (E_DBus_Object *obj) |
EAPI void | e_dbus_object_interface_attach (E_DBus_Object *obj, E_DBus_Interface *iface) |
EAPI void | e_dbus_object_interface_detach (E_DBus_Object *obj, E_DBus_Interface *iface) |
EAPI const Eina_List * | e_dbus_object_interfaces_get (E_DBus_Object *obj) |
Get the interfaces of a dbus object. More... | |
EAPI const char * | e_dbus_object_path_get (E_DBus_Object *obj) |
Get the path of a dbus object. More... | |
EAPI void | e_dbus_object_property_get_cb_set (E_DBus_Object *obj, E_DBus_Object_Property_Get_Cb func) |
Sets the callback to fetch properties from an object. More... | |
EAPI void | e_dbus_object_property_set_cb_set (E_DBus_Object *obj, E_DBus_Object_Property_Set_Cb func) |
Sets the callback to set properties on an object. More... | |
EAPI DBusPendingCall * | e_dbus_peer_get_machine_id (E_DBus_Connection *conn, const char *destination, const char *path, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_peer_ping (E_DBus_Connection *conn, const char *destination, const char *path, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_properties_get (E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, const char *property, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_properties_get_all (E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_properties_set (E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, const char *property, int value_type, const void *value, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_release_name (E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI DBusPendingCall * | e_dbus_request_name (E_DBus_Connection *conn, const char *name, unsigned int flags, E_DBus_Method_Return_Cb cb_return, const void *data) |
EAPI int | e_dbus_shutdown (void) |
EAPI E_DBus_Signal_Handler * | e_dbus_signal_handler_add (E_DBus_Connection *conn, const char *sender, const char *path, const char *interface, const char *member, E_DBus_Signal_Cb cb_signal, void *data) |
EAPI void | e_dbus_signal_handler_del (E_DBus_Connection *conn, E_DBus_Signal_Handler *sh) |
EAPI DBusPendingCall * | e_dbus_start_service_by_name (E_DBus_Connection *conn, const char *name, unsigned int flags, E_DBus_Method_Return_Cb cb_return, const void *data) |
Variables | |
EAPI int | E_DBUS_DOMAIN_GLOBAL |
EAPI int | E_DBUS_EVENT_SIGNAL |
EAPI E_DBus_Version * | e_dbus_version |
Detailed Description
Macro Definition Documentation
◆ E_DBUS_FDO_BUS
#define E_DBUS_FDO_BUS "org.freedesktop.DBus" |
◆ E_DBUS_FDO_INTERFACE
#define E_DBUS_FDO_INTERFACE E_DBUS_FDO_BUS |
◆ E_DBUS_FDO_INTERFACE_PROPERTIES
#define E_DBUS_FDO_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties" |
◆ E_DBUS_FDO_PATH
#define E_DBUS_FDO_PATH "/org/freedesktop/DBus" |
◆ E_DBUS_VERSION_MAJOR
#define E_DBUS_VERSION_MAJOR 1 |
◆ E_DBUS_VERSION_MINOR
#define E_DBUS_VERSION_MINOR 7 |
Typedef Documentation
◆ E_DBus_Callback
typedef struct E_DBus_Callback E_DBus_Callback |
◆ E_DBus_Callback_Func
typedef void(* E_DBus_Callback_Func) (void *user_data, void *method_return, DBusError *error) |
A callback function for a DBus call
- Parameters
-
user_data the data passed in to the method call event_data a struct containing the return data.
◆ E_DBus_Connection
typedef struct E_DBus_Connection E_DBus_Connection |
◆ E_DBus_Free_Func
typedef void(* E_DBus_Free_Func) (void *data) |
◆ E_DBus_Interface
typedef struct E_DBus_Interface E_DBus_Interface |
◆ E_DBus_Method_Cb
typedef DBusMessage *(* E_DBus_Method_Cb) (E_DBus_Object *obj, DBusMessage *message) |
◆ E_DBus_Method_Return_Cb
typedef void(* E_DBus_Method_Return_Cb) (void *data, DBusMessage *msg, DBusError *error) |
◆ E_DBus_Object
typedef struct E_DBus_Object E_DBus_Object |
◆ E_DBus_Object_Property_Get_Cb
typedef void(* E_DBus_Object_Property_Get_Cb) (E_DBus_Object *obj, const char *property, int *type, void **value) |
◆ E_DBus_Object_Property_Set_Cb
typedef int(* E_DBus_Object_Property_Set_Cb) (E_DBus_Object *obj, const char *property, int type, void *value) |
◆ E_DBus_Signal_Cb
typedef void(* E_DBus_Signal_Cb) (void *data, DBusMessage *msg) |
◆ E_DBus_Signal_Handler
typedef struct E_DBus_Signal_Handler E_DBus_Signal_Handler |
◆ E_DBus_Unmarshal_Func
typedef void *(* E_DBus_Unmarshal_Func) (DBusMessage *msg, DBusError *err) |
◆ E_DBus_Version
typedef struct _E_DBus_Version E_DBus_Version |
Function Documentation
◆ e_dbus_bus_get()
EAPI E_DBus_Connection * e_dbus_bus_get | ( | DBusBusType | type | ) |
Retrieve a connection to the bus and integrate it with the ecore main loop.
- Parameters
-
type the type of bus to connect to, e.g. DBUS_BUS_SYSTEM or DBUS_BUS_SESSION
◆ e_dbus_callback_call()
EAPI void e_dbus_callback_call | ( | E_DBus_Callback * | cb, |
void * | data, | ||
DBusError * | error | ||
) |
References E_DBus_Callback::cb_func, and E_DBus_Callback::user_data.
◆ e_dbus_callback_free()
EAPI void e_dbus_callback_free | ( | E_DBus_Callback * | callback | ) |
Free a callback structure.
- Parameters
-
callback the callback to free
◆ e_dbus_callback_new()
EAPI E_DBus_Callback * e_dbus_callback_new | ( | E_DBus_Callback_Func | cb_func, |
E_DBus_Unmarshal_Func | unmarshal_func, | ||
E_DBus_Free_Func | free_func, | ||
void * | user_data | ||
) |
Create a callback structure.
- Parameters
-
cb_func the callback function user_data data to pass to the callback
References E_DBus_Callback::cb_func, E_DBus_Callback::free_func, E_DBus_Callback::unmarshal_func, and E_DBus_Callback::user_data.
Referenced by e_dbus_method_call_send().
◆ e_dbus_callback_return_free()
EAPI void e_dbus_callback_return_free | ( | E_DBus_Callback * | callback, |
void * | data | ||
) |
References E_DBus_Callback::free_func.
◆ e_dbus_callback_unmarshal()
EAPI void * e_dbus_callback_unmarshal | ( | E_DBus_Callback * | cb, |
DBusMessage * | msg, | ||
DBusError * | err | ||
) |
References E_DBus_Callback::unmarshal_func.
◆ e_dbus_connection_close()
EAPI void e_dbus_connection_close | ( | E_DBus_Connection * | conn | ) |
Close out a connection retrieved with e_dbus_bus_get()
- Parameters
-
conn the connection to close
References DBG, and e_dbus_idler_active.
Referenced by e_dbus_object_free(), and e_notification_daemon_free().
◆ e_dbus_connection_ref()
EAPI void e_dbus_connection_ref | ( | E_DBus_Connection * | conn | ) |
References E_DBus_Connection::refcount.
◆ e_dbus_connection_setup()
EAPI E_DBus_Connection * e_dbus_connection_setup | ( | DBusConnection * | conn | ) |
Integrate a DBus connection with the ecore main loop
- Parameters
-
conn - a dbus connection
◆ e_dbus_get_name_owner()
EAPI DBusPendingCall * e_dbus_get_name_owner | ( | E_DBus_Connection * | conn, |
const char * | name, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
◆ e_dbus_init()
EAPI int e_dbus_init | ( | void | ) |
Initialize e_dbus.
Referenced by e_hal_init(), and e_ukit_init().
◆ e_dbus_interface_method_add()
EAPI int e_dbus_interface_method_add | ( | E_DBus_Interface * | iface, |
const char * | member, | ||
const char * | signature, | ||
const char * | reply_signature, | ||
E_DBus_Method_Cb | func | ||
) |
Add a method to an object
- Parameters
-
iface the E_DBus_Interface to which this method belongs member the name of the method signature an optional message signature. if provided, then messages with invalid signatures will be automatically rejected (an Error response will be sent) and introspection data will be available.
- Returns
- 1 if successful, 0 if failed (e.g. no memory)
◆ e_dbus_interface_new()
EAPI E_DBus_Interface * e_dbus_interface_new | ( | const char * | interface | ) |
◆ e_dbus_interface_ref()
EAPI void e_dbus_interface_ref | ( | E_DBus_Interface * | iface | ) |
References DBG, E_DBus_Interface::name, and E_DBus_Interface::refcount.
Referenced by e_dbus_object_interface_attach().
◆ e_dbus_interface_signal_add()
EAPI int e_dbus_interface_signal_add | ( | E_DBus_Interface * | iface, |
const char * | name, | ||
const char * | signature | ||
) |
Add a signal to an object
- Parameters
-
iface the E_DBus_Interface to which this signal belongs name the name of the signal signature an optional message signature.
- Returns
- 1 if successful, 0 if failed (e.g. no memory)
◆ e_dbus_interface_unref()
EAPI void e_dbus_interface_unref | ( | E_DBus_Interface * | iface | ) |
References DBG, E_DBus_Interface::name, and E_DBus_Interface::refcount.
Referenced by e_dbus_object_free(), e_dbus_object_interface_detach(), e_dbus_object_shutdown(), and e_notification_daemon_free().
◆ e_dbus_introspect()
EAPI DBusPendingCall * e_dbus_introspect | ( | E_DBus_Connection * | conn, |
const char * | bus, | ||
const char * | object_path, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Calls the Introspect method on a given bus and object path.
- Parameters
-
conn The dbus connection to use bus The bus to call the method on object_path The path of the bus to call on cb_return The callback to call on reply from dbus data The data to associate with the callback
- Returns
- A pending dbus call
References e_dbus_message_send(), and ERR.
◆ e_dbus_list_activatable_names()
EAPI DBusPendingCall * e_dbus_list_activatable_names | ( | E_DBus_Connection * | conn, |
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
◆ e_dbus_list_names()
EAPI DBusPendingCall * e_dbus_list_names | ( | E_DBus_Connection * | conn, |
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
◆ e_dbus_message_send()
EAPI DBusPendingCall * e_dbus_message_send | ( | E_DBus_Connection * | conn, |
DBusMessage * | msg, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
int | timeout, | ||
void * | data | ||
) |
Send a DBus message with callbacks.
- Parameters
-
conn The DBus connection msg The message to send cb_return A callback function for returns (only used if msg is a method-call) timeout A timeout in milliseconds, after which a synthetic error will be generated data custom data to pass in to the callback
- Returns
- a DBusPendingCall that can be used to cancel the current call
References E_DBus_Pending_Call_Data::cb_return, E_DBus_Connection::conn, and E_DBus_Pending_Call_Data::data.
Referenced by e_bluez_element_message_send(), e_connman_element_message_send(), e_dbus_introspect(), e_dbus_method_call_send(), e_notification_daemon_signal_action_invoked(), e_notification_daemon_signal_notification_closed(), and e_ofono_element_message_send().
◆ e_dbus_method_call_send()
EAPI DBusPendingCall * e_dbus_method_call_send | ( | E_DBus_Connection * | conn, |
DBusMessage * | msg, | ||
E_DBus_Unmarshal_Func | unmarshal_func, | ||
E_DBus_Callback_Func | cb_func, | ||
E_DBus_Free_Func | free_func, | ||
int | timeout, | ||
void * | data | ||
) |
References e_dbus_callback_new(), and e_dbus_message_send().
Referenced by e_hal_device_get_all_properties(), e_hal_device_get_property(), e_hal_device_query_capability(), e_hal_device_volume_eject(), e_hal_device_volume_mount(), e_hal_device_volume_unmount(), e_hal_manager_device_exists(), e_hal_manager_find_device_by_capability(), e_hal_manager_find_device_string_match(), e_hal_manager_get_all_devices(), e_notification_get_capabilities(), e_notification_get_server_information(), e_notification_send(), e_udisks_get_all_devices(), e_udisks_get_all_properties(), e_udisks_get_property(), e_udisks_volume_eject(), e_udisks_volume_mount(), e_udisks_volume_unmount(), e_upower_get_all_devices(), e_upower_get_all_properties(), e_upower_get_property(), e_upower_hibernate(), e_upower_hibernate_allowed(), e_upower_suspend(), and e_upower_suspend_allowed().
◆ e_dbus_name_has_owner()
EAPI DBusPendingCall * e_dbus_name_has_owner | ( | E_DBus_Connection * | conn, |
const char * | name, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
◆ e_dbus_object_add()
EAPI E_DBus_Object * e_dbus_object_add | ( | E_DBus_Connection * | conn, |
const char * | object_path, | ||
void * | data | ||
) |
Add a dbus object.
- Parameters
-
conn the connection on with the object should listen object_path a unique string identifying an object (e.g. org/enlightenment/WindowManager data custom data to set on the object (retrievable via e_dbus_object_data_get())
References E_DBus_Connection::conn.
◆ e_dbus_object_conn_get()
EAPI E_DBus_Connection * e_dbus_object_conn_get | ( | E_DBus_Object * | obj | ) |
Get the dbus connection of a dbus object.
- Parameters
-
obj the dbus object
References E_DBus_Object::conn.
◆ e_dbus_object_data_get()
EAPI void * e_dbus_object_data_get | ( | E_DBus_Object * | obj | ) |
Fetch the data pointer for a dbus object.
- Parameters
-
obj the dbus object
References E_DBus_Object::data.
Referenced by method_close_notification(), method_get_server_information(), and method_notify().
◆ e_dbus_object_free()
EAPI void e_dbus_object_free | ( | E_DBus_Object * | obj | ) |
Free a dbus object
- Parameters
-
obj the object to free
References E_DBus_Object::conn, E_DBus_Connection::conn, DBG, e_dbus_connection_close(), e_dbus_interface_unref(), E_DBus_Object::interfaces, E_DBus_Object::introspection_data, and E_DBus_Object::path.
Referenced by e_notification_daemon_free().
◆ e_dbus_object_interface_attach()
EAPI void e_dbus_object_interface_attach | ( | E_DBus_Object * | obj, |
E_DBus_Interface * | iface | ||
) |
References DBG, e_dbus_interface_ref(), ERR, E_DBus_Object::interfaces, E_DBus_Object::introspection_dirty, E_DBus_Interface::name, and E_DBus_Object::path.
Referenced by e_dbus_object_property_get_cb_set(), and e_dbus_object_property_set_cb_set().
◆ e_dbus_object_interface_detach()
EAPI void e_dbus_object_interface_detach | ( | E_DBus_Object * | obj, |
E_DBus_Interface * | iface | ||
) |
References DBG, e_dbus_interface_unref(), E_DBus_Object::interfaces, E_DBus_Object::introspection_dirty, E_DBus_Interface::name, and E_DBus_Object::path.
Referenced by e_notification_daemon_free().
◆ e_dbus_object_interfaces_get()
EAPI const Eina_List * e_dbus_object_interfaces_get | ( | E_DBus_Object * | obj | ) |
Get the interfaces of a dbus object.
- Parameters
-
obj the dbus object
References E_DBus_Object::interfaces.
◆ e_dbus_object_path_get()
EAPI const char * e_dbus_object_path_get | ( | E_DBus_Object * | obj | ) |
◆ e_dbus_object_property_get_cb_set()
EAPI void e_dbus_object_property_get_cb_set | ( | E_DBus_Object * | obj, |
E_DBus_Object_Property_Get_Cb | func | ||
) |
Sets the callback to fetch properties from an object.
- Parameters
-
obj the object func the callback
References E_DBus_Object::cb_property_get, E_DBus_Object::cb_property_set, and e_dbus_object_interface_attach().
◆ e_dbus_object_property_set_cb_set()
EAPI void e_dbus_object_property_set_cb_set | ( | E_DBus_Object * | obj, |
E_DBus_Object_Property_Set_Cb | func | ||
) |
Sets the callback to set properties on an object.
- Parameters
-
obj the object func the callback
References E_DBus_Object::cb_property_get, E_DBus_Object::cb_property_set, and e_dbus_object_interface_attach().
◆ e_dbus_peer_get_machine_id()
EAPI DBusPendingCall * e_dbus_peer_get_machine_id | ( | E_DBus_Connection * | conn, |
const char * | destination, | ||
const char * | path, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Get the UUID of the peer
- Parameters
-
conn the dbus connection destination the bus name that the object is on path the object path cb_return a callback for a successful return data data to pass to the callbacks
◆ e_dbus_peer_ping()
EAPI DBusPendingCall * e_dbus_peer_ping | ( | E_DBus_Connection * | conn, |
const char * | destination, | ||
const char * | path, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Ping the dbus peer
- Parameters
-
conn the dbus connection destination the bus name that the object is on path the object path cb_return a callback for a successful return data data to pass to the callbacks
◆ e_dbus_properties_get()
EAPI DBusPendingCall * e_dbus_properties_get | ( | E_DBus_Connection * | conn, |
const char * | destination, | ||
const char * | path, | ||
const char * | interface, | ||
const char * | property, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Get the value of a property on an object
- Parameters
-
conn the dbus connection destination the bus name that the object is on path the object path interface the interface name of the property property the name of the property cb_return a callback for a successful return data data to pass to the callbacks
◆ e_dbus_properties_get_all()
EAPI DBusPendingCall * e_dbus_properties_get_all | ( | E_DBus_Connection * | conn, |
const char * | destination, | ||
const char * | path, | ||
const char * | interface, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
◆ e_dbus_properties_set()
EAPI DBusPendingCall * e_dbus_properties_set | ( | E_DBus_Connection * | conn, |
const char * | destination, | ||
const char * | path, | ||
const char * | interface, | ||
const char * | property, | ||
int | value_type, | ||
const void * | value, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Set the value of a property on an object
- Parameters
-
conn the dbus connection destination the bus name that the object is on path the object path interface the interface name of the property property the name of the property value_type the type of the property's value value a pointer to the value cb_return a callback for a successful return data data to pass to the callbacks
◆ e_dbus_release_name()
EAPI DBusPendingCall * e_dbus_release_name | ( | E_DBus_Connection * | conn, |
const char * | name, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
Referenced by e_notification_daemon_free().
◆ e_dbus_request_name()
EAPI DBusPendingCall * e_dbus_request_name | ( | E_DBus_Connection * | conn, |
const char * | name, | ||
unsigned int | flags, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
References ERR.
◆ e_dbus_shutdown()
EAPI int e_dbus_shutdown | ( | void | ) |
Shutdown e_dbus.
Referenced by e_hal_shutdown(), and e_ukit_shutdown().
◆ e_dbus_signal_handler_add()
EAPI E_DBus_Signal_Handler * e_dbus_signal_handler_add | ( | E_DBus_Connection * | conn, |
const char * | sender, | ||
const char * | path, | ||
const char * | interface, | ||
const char * | member, | ||
E_DBus_Signal_Cb | cb_signal, | ||
void * | data | ||
) |
Add a signal handler
- Parameters
-
conn the dbus connection sender name of the signal's sender path the object path of the signal's sender interface the signal's interface member the signal's name cb_signal a callback to call when the signal is received data custom data to pass in to the callback
References cb_name_owner_data::conn, ERR, and cb_name_owner_data::sh.
Referenced by e_bluez_adapter_start_discovery().
◆ e_dbus_signal_handler_del()
EAPI void e_dbus_signal_handler_del | ( | E_DBus_Connection * | conn, |
E_DBus_Signal_Handler * | sh | ||
) |
Delete a signal handler
- Parameters
-
conn the dbus connection sh the handler to delete
References cb_name_owner_data::conn, E_DBus_Signal_Handler::delete_me, e_dbus_idler_active, E_DBus_Signal_Handler::get_name_owner_pending, and cb_name_owner_data::sh.
◆ e_dbus_start_service_by_name()
EAPI DBusPendingCall * e_dbus_start_service_by_name | ( | E_DBus_Connection * | conn, |
const char * | name, | ||
unsigned int | flags, | ||
E_DBus_Method_Return_Cb | cb_return, | ||
const void * | data | ||
) |
References ERR.
Variable Documentation
◆ E_DBUS_DOMAIN_GLOBAL
|
extern |
◆ E_DBUS_EVENT_SIGNAL
|
extern |
◆ e_dbus_version
|
extern |