e_dbus: remove connman methods for Device interface
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Dec 2010 17:43:19 +0000 (17:43 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Dec 2010 17:43:19 +0000 (17:43 +0000)
Remove methods dealing with org.moblin.connman.Device interface.
These methods were marked as internal, low-level, and should not be
used. They are not supported anymore in stable branch of connman.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@55460 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/connman/E_Connman.h
src/lib/connman/Makefile.am
src/lib/connman/e_connman.c
src/lib/connman/e_connman_device.c [deleted file]
src/lib/connman/e_connman_element.c
src/lib/connman/e_connman_manager.c
src/lib/connman/e_connman_private.h
src/lib/connman/e_connman_profile.c
src/lib/connman/e_connman_technology.c

index 8a3bdbc..7924c06 100644 (file)
@@ -45,7 +45,6 @@ struct _E_Connman_Element
       Eina_Inlist *technology_enable;
       Eina_Inlist *technology_disable;
       Eina_Inlist *profile_remove;
-      Eina_Inlist *device_propose_scan;
       Eina_Inlist *service_connect;
       Eina_Inlist *service_disconnect;
       Eina_Inlist *service_remove;
@@ -177,7 +176,6 @@ EAPI E_Connman_Element *    e_connman_technology_get(const char *path) EINA_ARG_
 EAPI Eina_Bool              e_connman_technology_state_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 EAPI Eina_Bool              e_connman_technology_name_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 EAPI Eina_Bool              e_connman_technology_type_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned int *count, E_Connman_Element ***t_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
 
 // TODO: ethernet_speed_get (not in connman yet)
 // TODO: ethernet_duplex_get (not in connman yet)
@@ -216,34 +214,10 @@ EAPI Eina_Bool              e_connman_element_property_get_stringshared(const E_
 EAPI Eina_Bool              e_connman_element_property_get(const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
 
 EAPI Eina_Bool              e_connman_element_is_manager(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_element_is_device(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 EAPI Eina_Bool              e_connman_element_is_profile(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 EAPI Eina_Bool              e_connman_element_is_service(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 EAPI Eina_Bool              e_connman_element_is_technology(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-/* Device Methods: Low-Level API
- *
- * Fine tune device, such as turn off and change scan interval.
- */
-EAPI E_Connman_Element *    e_connman_device_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_propose_scan(E_Connman_Element *device, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_address_get(const E_Connman_Element *device, const char **address);
-EAPI Eina_Bool              e_connman_device_name_get(const E_Connman_Element *device, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_device_type_get(const E_Connman_Element *device, const char **type) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_device_interface_get(const E_Connman_Element *device, const char **interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_powered_get(const E_Connman_Element *device, Eina_Bool *powered) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_device_powered_set(E_Connman_Element *device, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_scan_interval_get(const E_Connman_Element *device, unsigned short *scan_interval) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-EAPI Eina_Bool              e_connman_device_scan_interval_set(E_Connman_Element *device, unsigned short scan_interval, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_scanning_get(const E_Connman_Element *device, Eina_Bool *scanning) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-
-EAPI Eina_Bool              e_connman_device_networks_get(const E_Connman_Element *device, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-
 #ifdef __cplusplus
 }
 #endif
index afb61bb..7f371dc 100644 (file)
@@ -10,7 +10,6 @@ includesdir = $(includedir)/e_dbus-@VMAJ@
 
 libeconnman_la_SOURCES = \
 e_connman.c \
-e_connman_device.c \
 e_connman_element.c \
 e_connman_manager.c \
 e_connman_profile.c \
index d684f30..5ab2720 100644 (file)
@@ -20,7 +20,6 @@ EAPI int E_CONNMAN_EVENT_ELEMENT_UPDATED = 0;
 const char *e_connman_iface_manager = NULL;
 const char *e_connman_iface_profile = NULL;
 const char *e_connman_iface_service = NULL;
-const char *e_connman_iface_device = NULL;
 const char *e_connman_iface_connection = NULL;
 const char *e_connman_iface_technology = NULL;
 
@@ -28,8 +27,6 @@ const char *e_connman_prop_available = NULL;
 const char *e_connman_prop_connected = NULL;
 const char *e_connman_prop_connections = NULL;
 const char *e_connman_prop_default = NULL;
-const char *e_connman_prop_device = NULL;
-const char *e_connman_prop_devices = NULL;
 const char *e_connman_prop_interface = NULL;
 const char *e_connman_prop_ipv4 = NULL;
 const char *e_connman_prop_ipv4_configuration = NULL;
@@ -285,9 +282,6 @@ e_connman_system_init(E_DBus_Connection *edbus_conn)
    if (!e_connman_iface_service)
       e_connman_iface_service = eina_stringshare_add("org.moblin.connman.Service");
 
-   if (!e_connman_iface_device)
-      e_connman_iface_device = eina_stringshare_add("org.moblin.connman.Device");
-
    if (!e_connman_iface_connection)
       e_connman_iface_connection = eina_stringshare_add("org.moblin.connman.Connection");
 
@@ -306,12 +300,6 @@ e_connman_system_init(E_DBus_Connection *edbus_conn)
    if (!e_connman_prop_default)
       e_connman_prop_default = eina_stringshare_add("Default");
 
-   if (!e_connman_prop_device)
-      e_connman_prop_device = eina_stringshare_add("Device");
-
-   if (!e_connman_prop_devices)
-      e_connman_prop_devices = eina_stringshare_add("Devices");
-
    if (!e_connman_prop_interface)
       e_connman_prop_interface = eina_stringshare_add("Interface");
 
@@ -504,7 +492,6 @@ e_connman_system_shutdown(void)
    _stringshare_del(&e_connman_iface_manager);
    _stringshare_del(&e_connman_iface_profile);
    _stringshare_del(&e_connman_iface_service);
-   _stringshare_del(&e_connman_iface_device);
    _stringshare_del(&e_connman_iface_connection);
    _stringshare_del(&e_connman_iface_technology);
 
@@ -512,8 +499,6 @@ e_connman_system_shutdown(void)
    _stringshare_del(&e_connman_prop_connected);
    _stringshare_del(&e_connman_prop_connections);
    _stringshare_del(&e_connman_prop_default);
-   _stringshare_del(&e_connman_prop_device);
-   _stringshare_del(&e_connman_prop_devices);
    _stringshare_del(&e_connman_prop_interface);
    _stringshare_del(&e_connman_prop_ipv4);
    _stringshare_del(&e_connman_prop_ipv4_configuration);
diff --git a/src/lib/connman/e_connman_device.c b/src/lib/connman/e_connman_device.c
deleted file mode 100644 (file)
index 28dd038..0000000
+++ /dev/null
@@ -1,344 +0,0 @@
-#include "e_connman_private.h"
-
-E_Connman_Element *
-e_connman_device_get(const char *path)
-{
-   E_Connman_Element *device;
-
-   EINA_SAFETY_ON_NULL_RETURN_VAL(path, NULL);
-
-   device = e_connman_element_get(path);
-   if (!device)
-      return NULL;
-
-   if (!e_connman_element_is_device(device))
-     {
-        WRN("path '%s' is not a device!", path);
-        return NULL;
-     }
-
-   return device;
-}
-
-/**
- * Propose device to scan.
- *
- * Call method ProposeScan() at the given device on server in order to propose it
- * to scan.
- *
- * @param device path to call method on server.
- * @param cb function to call when server replies or some error happens.
- * @param data data to give to cb when it is called.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_propose_scan(E_Connman_Element *device, E_DBus_Method_Return_Cb cb, const void *data)
-{
-   const char name[] = "ProposeScan";
-
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   return e_connman_element_call_full
-             (device, name, NULL, &device->_pending.device_propose_scan, cb, data);
-}
-
-/**
- * Get property "Address" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * The device address (mac-address for ethernet, wifi...).
- *
- * This address can be used for directly displaying it in
- * the application. It has pure informational purpose.
- *
- * @param device path to get property.
- * @param 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.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_address_get(const E_Connman_Element *device, const char **address)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(address, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_address, NULL, address);
-}
-
-/**
- * Get property "Name" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * The device name (for example "Wireless" etc.)
- *
- * This name can be used for directly displaying it in
- * the application. It has pure informational purpose.
- *
- * @param device path to get property.
- * @param 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.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_name_get(const E_Connman_Element *device, const char **name)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(name, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_name, NULL, name);
-}
-
-/**
- * Get property "Type" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * The device type (for example "ethernet", "wifi" etc.)
- *
- * @param device path to get property.
- * @param type 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.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_type_get(const E_Connman_Element *device, const char **type)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(type, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_type, NULL, type);
-}
-
-/**
- * Get property "Interface" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * The device interface (for example "eth0" etc.)
- *
- * This value is for pure informational purposes. It
- * is not guaranteed that it is always present.
- *
- * @param device path to get property.
- * @param interface 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.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_interface_get(const E_Connman_Element *device, const char **interface)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(interface, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_interface, NULL, interface);
-}
-
-/**
- * Get property "Powered" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * Switch a device on or off. This will also modify
- * the list of networks in range. All known networks
- * will be still available via the Networks property.
- *
- * Changing this value doesn't change the value of the
- * Policy property.
- *
- * The value of this property can be changed by other
- * parts of the system (including the kernel). An
- * example would be modifications via the "ifconfig"
- * command line utility.
- *
- * @param device path to get property.
- * @param powered where to store the property value, must be a pointer
- *        to Eina_Bool (Eina_Bool *).
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- * @see e_connman_device_powered_set()
- */
-Eina_Bool
-e_connman_device_powered_get(const E_Connman_Element *device, Eina_Bool *powered)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(powered, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_powered, NULL, powered);
-}
-
-/**
- * Call method SetProperty("Powered", powered) 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_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
- *
- * Switch a device on or off. This will also modify
- * the list of networks in range. All known networks
- * will be still available via the Networks property.
- *
- * Changing this value doesn't change the value of the
- * Policy property.
- *
- * The value of this property can be changed by other
- * parts of the system (including the kernel). An
- * example would be modifications via the "ifconfig"
- * command line utility.
- *
- * @param device path to set property.
- * @param powered value to set.
- * @param cb function to call when server replies or some error happens.
- * @param data data to give to cb when it is called.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- * @see e_connman_device_powered_get()
- */
-Eina_Bool
-e_connman_device_powered_set(E_Connman_Element *device, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   return e_connman_element_property_set_full
-             (device, e_connman_prop_powered, DBUS_TYPE_BOOLEAN, &powered, cb, data);
-}
-
-/**
- * Get property "ScanInterval" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * The scan interval describes the time in seconds
- * between automated scan attempts. Setting this
- * value to 0 will disable the background scanning.
- *
- * The default value is 300 and so every 5 minutes
- * a scan procedure will be triggered.
- *
- * This property is not available with all types
- * of devices. Some might not support background
- * scanning at all.
- *
- * @param device path to get property.
- * @param scan_interval where to store the property value, must be a pointer
- *        to uint16 (unsigned short *).
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- * @see e_connman_device_scan_interval_set()
- */
-Eina_Bool
-e_connman_device_scan_interval_get(const E_Connman_Element *device, unsigned short *scan_interval)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(scan_interval, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_scan_interval, NULL, scan_interval);
-}
-
-/**
- * Call method SetProperty("ScanInterval", scan_interval) 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_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
- *
- * The scan interval describes the time in seconds
- * between automated scan attempts. Setting this
- * value to 0 will disable the background scanning.
- *
- * The default value is 300 and so every 5 minutes
- * a scan procedure will be triggered.
- *
- * This property is not available with all types
- * of devices. Some might not support background
- * scanning at all.
- *
- * @param device path to set property.
- * @param scan_interval value to set.
- * @param cb function to call when server replies or some error happens.
- * @param data data to give to cb when it is called.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- * @see e_connman_device_scan_interval_get()
- */
-Eina_Bool
-e_connman_device_scan_interval_set(E_Connman_Element *device, unsigned short scan_interval, E_DBus_Method_Return_Cb cb, const void *data)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   return e_connman_element_property_set_full
-             (device, e_connman_prop_scan_interval, DBUS_TYPE_UINT16,
-             &scan_interval, cb, data);
-}
-
-/**
- * Get property "Scanning" value.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * Indicates if a device is scanning. Not all device
- * types might support this. Also some hardware might
- * execute background scanning without notifying the
- * driver about it. Use this property only for visual
- * indication.
- *
- * @param device path to get property.
- * @param scanning where to store the property value, must be a pointer
- *        to Eina_Bool (Eina_Bool *).
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_scanning_get(const E_Connman_Element *device, Eina_Bool *scanning)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(scanning, EINA_FALSE);
-   return e_connman_element_property_get_stringshared
-             (device, e_connman_prop_scanning, NULL, scanning);
-}
-
-/**
- * Get array of network elements.
- *
- * @param device path to get property.
- * @param count return the number of elements in array.
- * @param elements where to store elements array, just changed if return is @c EINA_TRUE.
- *        Elements are not referenced and in no particular order.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_device_networks_get(const E_Connman_Element *device, unsigned int *count, E_Connman_Element ***elements)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(count, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(elements, EINA_FALSE);
-   return e_connman_element_objects_array_get_stringshared
-             (device, e_connman_prop_networks, count, elements);
-}
-
index f61cf99..2962ae1 100644 (file)
@@ -452,12 +452,6 @@ _e_connman_element_get_interface(const char *key)
 
          break;
 
-      case 'D':
-         if (strcmp(tail, "evices") == 0)
-            interface = e_connman_iface_device;
-
-         break;
-
       case 'S':
          if (strcmp(tail, "ervices") == 0)
             interface = e_connman_iface_service;
@@ -1114,7 +1108,6 @@ e_connman_element_free(E_Connman_Element *element)
    e_connman_element_pending_cancel_and_free(&element->_pending.technology_enable);
    e_connman_element_pending_cancel_and_free(&element->_pending.technology_disable);
    e_connman_element_pending_cancel_and_free(&element->_pending.profile_remove);
-   e_connman_element_pending_cancel_and_free(&element->_pending.device_propose_scan);
    e_connman_element_pending_cancel_and_free(&element->_pending.service_connect);
    e_connman_element_pending_cancel_and_free(&element->_pending.service_disconnect);
    e_connman_element_pending_cancel_and_free(&element->_pending.service_remove);
@@ -2362,13 +2355,6 @@ e_connman_element_is_manager(const E_Connman_Element *element)
 }
 
 Eina_Bool
-e_connman_element_is_device(const E_Connman_Element *element)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(element, EINA_FALSE);
-   return _e_connman_element_is(element, e_connman_iface_device);
-}
-
-Eina_Bool
 e_connman_element_is_profile(const E_Connman_Element *element)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, EINA_FALSE);
index e5a1779..f6cc5ed 100644 (file)
@@ -78,7 +78,7 @@ e_connman_manager_agent_unregister(const char *object_path, E_DBus_Method_Return
  *
  * The global connection state of a system. Possible
  * values are "online" if at least one connection exists
- * and "offline" if no device is connected.
+ * and "offline" if no service is connected.
  *
  * In certain situations the state might change to
  * the value "connected". This can only be seen if
@@ -113,16 +113,14 @@ e_connman_manager_state_get(const char **state)
  * If @c EINA_FALSE is returned, then this call failed and parameter-returned
  * values shall be considered invalid.
  *
- * The offline mode indicates the global setting for
- * switching all radios on or off. Changing offline mode
- * to true results in powering down all devices. When
- * leaving offline mode the individual policy of each
- * device decides to switch the radio back on or not.
+ * The offline mode indicates the global setting for switching all radios on or
+ * off. Changing offline mode to true results in powering down all devices that
+ * use radio technology. When leaving offline mode the individual policy of each
+ * technology decides to switch the radio back on or not.
  *
- * During offline mode, it is still possible to switch
- * certain technologies manually back on. For example
- * the limited usage of WiFi or Bluetooth devices might
- * be allowed in some situations.
+ * During offline mode, it is still possible to switch certain technologies
+ * manually back on. For example the limited usage of WiFi or Bluetooth
+ * technologies might be allowed in some situations.
  *
  * @param offline where to store the property value, must be a pointer
  *        to Eina_Bool (Eina_Bool *).
@@ -152,16 +150,14 @@ e_connman_manager_offline_mode_get(Eina_Bool *offline)
  * no property is updated locally. If the value was set the event
  * E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
  *
- * The offline mode indicates the global setting for
- * switching all radios on or off. Changing offline mode
- * to true results in powering down all devices. When
- * leaving offline mode the individual policy of each
- * device decides to switch the radio back on or not.
+ * The offline mode indicates the global setting for switching all radios on or
+ * off. Changing offline mode to true results in powering down all devices that
+ * use radio technology. When leaving offline mode the individual policy of each
+ * technology decides to switch the radio back on or not.
  *
- * During offline mode, it is still possible to switch
- * certain technologies manually back on. For example
- * the limited usage of WiFi or Bluetooth devices might
- * be allowed in some situations.
+ * During offline mode, it is still possible to switch certain technologies
+ * manually back on. For example the limited usage of WiFi or Bluetooth
+ * technologies might be allowed in some situations.
  *
  * @param offline value to set.
  * @param cb function to call when server replies or some error happens.
index 9974735..c38f546 100644 (file)
@@ -31,7 +31,6 @@ static const char manager_path[] = "/";
 extern const char *e_connman_iface_manager;
 extern const char *e_connman_iface_profile;
 extern const char *e_connman_iface_service;
-extern const char *e_connman_iface_device;
 extern const char *e_connman_iface_connection;
 extern const char *e_connman_iface_technology;
 
@@ -39,8 +38,6 @@ extern const char *e_connman_prop_available;
 extern const char *e_connman_prop_connected;
 extern const char *e_connman_prop_connections;
 extern const char *e_connman_prop_default;
-extern const char *e_connman_prop_device;
-extern const char *e_connman_prop_devices;
 extern const char *e_connman_prop_interface;
 extern const char *e_connman_prop_ipv4;
 extern const char *e_connman_prop_ipv4_configuration;
index bb717a6..70c0dcf 100644 (file)
@@ -76,9 +76,9 @@ e_connman_profile_name_set(E_Connman_Element *profile, const char *name, E_DBus_
  * If @c EINA_FALSE is returned, then this call failed and parameter-returned
  * values shall be considered invalid.
  *
- * The offline mode indicates the global setting for
- * switching all radios on or off. Changing offline mode
- * to true results in powering down all devices.
+ * The offline mode indicates the global setting for switching all radios on or
+ * off. Changing offline mode to true results in powering down all devices that
+ * use radio technology.
  *
  * @param offline where to store the property value, must be a pointer
  *        to Eina_Bool (Eina_Bool *).
@@ -102,9 +102,9 @@ e_connman_profile_offline_mode_get(const E_Connman_Element *profile, Eina_Bool *
  * no property is updated locally. If the value was set the event
  * E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
  *
- * The offline mode indicates the global setting for
- * switching all radios on or off. Changing offline mode
- * to true results in powering down all devices.
+ * The offline mode indicates the global setting for switching all radios on or
+ * off. Changing offline mode to true results in powering down all devices that
+ * use radio technology.
  *
  * @param offline value to set.
  * @param cb function to call when server replies or some error happens.
index 48d4294..62d4e78 100644 (file)
@@ -104,30 +104,3 @@ e_connman_technology_state_get(const E_Connman_Element *technology, const char *
    return e_connman_element_property_get_stringshared
              (technology, e_connman_prop_state, NULL, state);
 }
-
-/**
- * Get array of device elements.
- *
- * If this property isn't found then @c EINA_FALSE is returned.
- * If @c EINA_FALSE is returned, then this call failed and parameter-returned
- * values shall be considered invalid.
- *
- * @param technology path to get property.
- * @param count return the number of elements in array.
- * @param t_elements array with all elements, these are not referenced
- *        and in no particular order, just set if return is @c EINA_TRUE.  The
- *        array itself is allocated using malloc() and should be freed
- *        after usage is done.
- *
- * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.
- */
-Eina_Bool
-e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned int *count, E_Connman_Element ***t_elements)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(technology, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(count, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(t_elements, EINA_FALSE);
-   return e_connman_element_objects_array_get_stringshared
-             (technology, e_connman_prop_devices, count, t_elements);
-}
-