#include "e_bluez_private.h"

Functions | |
Eina_Bool | e_bluez_adapter_address_get (const E_Bluez_Element *element, const char **address) |
Eina_Bool | e_bluez_adapter_agent_register (E_Bluez_Element *element, const char *object_path, const char *capability, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_agent_unregister (E_Bluez_Element *element, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_create_paired_device (E_Bluez_Element *element, const char *object_path, const char *capability, const char *device, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_discoverable_get (const E_Bluez_Element *element, Eina_Bool *discoverable) |
Eina_Bool | e_bluez_adapter_discoverable_set (E_Bluez_Element *element, Eina_Bool discoverable, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_discoverable_timeout_get (const E_Bluez_Element *element, unsigned int *timeout) |
Eina_Bool | e_bluez_adapter_discoverable_timeout_set (E_Bluez_Element *element, unsigned int timeout, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_discovering_get (const E_Bluez_Element *element, Eina_Bool *discovering) |
E_Bluez_Element * | e_bluez_adapter_get (const char *path) |
Eina_Bool | e_bluez_adapter_name_get (const E_Bluez_Element *element, const char **name) |
Eina_Bool | e_bluez_adapter_name_set (E_Bluez_Element *element, const char *name, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_powered_get (const E_Bluez_Element *element, Eina_Bool *powered) |
Eina_Bool | e_bluez_adapter_powered_set (E_Bluez_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_start_discovery (E_Bluez_Element *element, E_DBus_Method_Return_Cb cb, const void *data) |
Eina_Bool | e_bluez_adapter_stop_discovery (E_Bluez_Element *element, E_DBus_Method_Return_Cb cb, const void *data) |
Function Documentation
Eina_Bool e_bluez_adapter_address_get | ( | const E_Bluez_Element * | element, |
const char ** | address | ||
) |
Get property "Address" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
address where to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_bluez_element_property_get_stringshared(), and e_bluez_prop_address.
Eina_Bool e_bluez_adapter_agent_register | ( | E_Bluez_Element * | element, |
const char * | object_path, | ||
const char * | capability, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Register new agent for handling user requests.
Call method RegisterAgent(object) on server in order to register new agent for handling user requests.
- Parameters
-
element adapter's element object_path object to be registered. capability input/output agent capabilities cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Bluez_Element::_pending, _E_Bluez_Element::agent_register, and e_bluez_element_call_with_path_and_string().
Eina_Bool e_bluez_adapter_agent_unregister | ( | E_Bluez_Element * | element, |
const char * | object_path, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Unregister an existing agent.
Call method UnregisterAgent(object) on server in order to unregister an existing agent.
- Parameters
-
element adapter's element object_path agent to be unregistered. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Bluez_Element::_pending, _E_Bluez_Element::agent_unregister, and e_bluez_element_call_with_path().
Eina_Bool e_bluez_adapter_create_paired_device | ( | E_Bluez_Element * | element, |
const char * | object_path, | ||
const char * | capability, | ||
const char * | device, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Create a new Paired Device.
Call method CreatePairedDevice()
- Parameters
-
element adapter's element object_path object to be registered. capability input/output agent capabilities device device to pair with cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Bluez_Element::_pending, _E_Bluez_Element::create_paired_device, e_bluez_element_message_send(), e_bluez_system_bus_name_get(), _E_Bluez_Element::interface, and _E_Bluez_Element::path.
Eina_Bool e_bluez_adapter_discoverable_timeout_get | ( | const E_Bluez_Element * | element, |
unsigned int * | timeout | ||
) |
Get property "DiscoverableTimeout" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
adapter path to get property. discoverable timeout where to store the property value, must be a pointer to uint32 (unsigned int *).
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_bluez_element_property_get_stringshared(), and e_bluez_prop_discoverabletimeout.
Eina_Bool e_bluez_adapter_discovering_get | ( | const E_Bluez_Element * | element, |
Eina_Bool * | discovering | ||
) |
Get property "Discovering" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
discovering where to store the property value, must be a pointer to booleans (Eina_Bool *).
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
- See also
- e_bluez_adapter_discovering_set()
References e_bluez_element_property_get_stringshared(), and e_bluez_prop_discovering.
Eina_Bool e_bluez_adapter_name_get | ( | const E_Bluez_Element * | element, |
const char ** | name | ||
) |
Get property "Name" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
name where to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_bluez_element_property_get_stringshared(), and e_bluez_prop_name.
Eina_Bool e_bluez_adapter_name_set | ( | E_Bluez_Element * | element, |
const char * | name, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Call method SetProperty("Name", name) at the given element on server.
This is a server call, not local, so it may fail and in that case no property is updated locally. If the value was set the event E_BLUEZ_EVENT_ELEMENT_UPDATED will be added to main loop.
- Parameters
-
name value to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
- See also
- e_bluez_adapter_name_get()
References e_bluez_element_property_set_full(), and e_bluez_prop_name.
Eina_Bool e_bluez_adapter_powered_get | ( | const E_Bluez_Element * | element, |
Eina_Bool * | powered | ||
) |
Get property "Powered" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
powered where to store the property value, must be a pointer to booleans (Eina_Bool *).
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
- See also
- e_bluez_adapter_powered_set()
References e_bluez_element_property_get_stringshared(), and e_bluez_prop_powered.