1 #include "e_bluez_private.h"
4 * Get the element manager.
6 * @return element pointer if found, NULL otherwise.
9 e_bluez_manager_get(void)
11 return e_bluez_element_get(manager_path);
16 * Call method DefaultAdapter() on Manager.
17 * TODO: Soon this method will be replaced by ANY adapter inside BlueZ, so we
18 * won't need t to call it anymore.
20 * @param cb function to call when server replies or some error happens.
22 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
25 e_bluez_manager_default_adapter(E_DBus_Method_Return_Cb cb, void *data)
27 E_Bluez_Element *element = e_bluez_element_get(manager_path);
28 const char name[] = "DefaultAdapter";
30 EINA_SAFETY_ON_NULL_RETURN_VAL(element, EINA_FALSE);
31 return e_bluez_element_call_full
32 (element, name, NULL, &element->_pending.properties_get, cb, data);