EAPI bool e_connman_manager_profiles_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_WARN_UNUSED_RESULT;
EAPI bool e_connman_manager_services_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_WARN_UNUSED_RESULT;
+ EAPI bool e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_WARN_UNUSED_RESULT;
EAPI bool e_connman_manager_request_scan(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
const char *e_connman_prop_profiles = NULL;
const char *e_connman_prop_profile_active = NULL;
const char *e_connman_prop_services = NULL;
+const char *e_connman_prop_technologies = NULL;
const char *e_connman_prop_remember = NULL;
const char *e_connman_prop_scan_interval = NULL;
const char *e_connman_prop_scanning = NULL;
e_connman_prop_profile_active = eina_stringshare_add("ActiveProfile");
if (e_connman_prop_services == NULL)
e_connman_prop_services = eina_stringshare_add("Services");
+ if (e_connman_prop_technologies == NULL)
+ e_connman_prop_technologies = eina_stringshare_add("Technologies");
if (e_connman_prop_remember == NULL)
e_connman_prop_remember = eina_stringshare_add("Remember");
if (e_connman_prop_scan_interval == NULL)
_stringshare_del(&e_connman_prop_profiles);
_stringshare_del(&e_connman_prop_profile_active);
_stringshare_del(&e_connman_prop_services);
+ _stringshare_del(&e_connman_prop_technologies);
_stringshare_del(&e_connman_prop_remember);
_stringshare_del(&e_connman_prop_scan_interval);
_stringshare_del(&e_connman_prop_scanning);
}
/**
+ * Get array of technology elements.
+ *
+ * @param count return the number of elements in array.
+ * @param p_elements array with all elements, these are not referenced
+ * and in no particular order, just set if return is 1. The
+ * array itself is allocated using malloc() and should be freed
+ * after usage is done.
+ *
+ * @return 1 on success, 0 otherwise.
+ */
+bool
+e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_elements)
+{
+ E_Connman_Element *element;
+
+ EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(p_elements, 0);
+
+ element = e_connman_manager_get();
+ if (!element)
+ return 0;
+ return e_connman_element_objects_array_get_stringshared
+ (element, e_connman_prop_technologies, count, p_elements);
+}
+
+/**
* Request to trigger a scan for given technology.
*
* Call method RequestScan(type) on server in order to
extern const char *e_connman_prop_profiles;
extern const char *e_connman_prop_profile_active;
extern const char *e_connman_prop_services;
+extern const char *e_connman_prop_technologies;
extern const char *e_connman_prop_remember;
extern const char *e_connman_prop_scan_interval;
extern const char *e_connman_prop_scanning;