connman_dbus_dict_append_variant(&dict, "Default",
DBUS_TYPE_BOOLEAN, &element->enabled);
- device = __connman_element_get_device(element);
+ device = __connman_element_get_device_path(element);
if (device != NULL)
connman_dbus_dict_append_variant(&dict, "Device",
DBUS_TYPE_OBJECT_PATH, &device);
- network = __connman_element_get_network(element);
+ network = __connman_element_get_network_path(element);
if (network != NULL)
connman_dbus_dict_append_variant(&dict, "Network",
DBUS_TYPE_OBJECT_PATH, &network);
int __connman_element_count(struct connman_element *element,
enum connman_element_type type);
-const char *__connman_element_get_device(struct connman_element *element);
-const char *__connman_element_get_network(struct connman_element *element);
+const char *__connman_element_get_device_path(struct connman_element *element);
+const char *__connman_element_get_network_path(struct connman_element *element);
const char *__connman_element_type2string(enum connman_element_type type);
return data.count;
}
-const char *__connman_element_get_device(struct connman_element *element)
+const char *__connman_element_get_device_path(struct connman_element *element)
{
if (element->type == CONNMAN_ELEMENT_TYPE_DEVICE &&
element->device != NULL)
if (element->parent == NULL)
return NULL;
- return __connman_element_get_device(element->parent);
+ return __connman_element_get_device_path(element->parent);
}
-const char *__connman_element_get_network(struct connman_element *element)
+const char *__connman_element_get_network_path(struct connman_element *element)
{
if (element->type == CONNMAN_ELEMENT_TYPE_NETWORK &&
element->network != NULL)
if (element->parent == NULL)
return NULL;
- return __connman_element_get_network(element->parent);
+ return __connman_element_get_network_path(element->parent);
}
static gint compare_priority(gconstpointer a, gconstpointer b)