1 #include "e_bluez_private.h"
4 * Free a E_Bluez_Device_Found struct
6 * @param device the struct to be freed
9 e_bluez_devicefound_free(E_Bluez_Device_Found *device)
11 EINA_SAFETY_ON_NULL_RETURN(device);
13 eina_stringshare_del(device->name);
14 e_bluez_element_array_free(device->array, NULL);
18 * Return the pointer to the stringshared alias for the given found device.
20 * @return stringshared pointer, or @c NULL if unknown.
23 e_bluez_devicefound_alias_get(const E_Bluez_Device_Found *device)
25 E_Bluez_Element_Dict_Entry *entry;
27 EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL);
29 entry = e_bluez_element_array_dict_find_stringshared
30 (device->array, e_bluez_prop_alias);
32 if ((entry) && (entry->type == DBUS_TYPE_STRING))
33 return entry->value.str;