summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-02 20:07:33 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-02 20:08:15 +0200
commitf05865b22811d7a7308f71f34a9971034e4f826b (patch)
treec084b57275c6043de49d7401de5cd69b8d70016f
parentf5be4e8b16d4e0fbc6c3cf02f99cad46c41e16b1 (diff)
downloadconnman-f05865b22811d7a7308f71f34a9971034e4f826b.tar.gz
connman-f05865b22811d7a7308f71f34a9971034e4f826b.tar.bz2
connman-f05865b22811d7a7308f71f34a9971034e4f826b.zip
Remove the manager Providers property
Providers are regular VPN services, no need to differentiate them anymore.
-rw-r--r--src/manager.c2
-rw-r--r--src/provider.c19
2 files changed, 0 insertions, 21 deletions
diff --git a/src/manager.c b/src/manager.c
index 45dd06a4..e9b980b5 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -58,8 +58,6 @@ static DBusMessage *get_properties(DBusConnection *conn,
DBUS_TYPE_OBJECT_PATH, __connman_profile_list, NULL);
connman_dbus_dict_append_array(&dict, "Services",
DBUS_TYPE_OBJECT_PATH, __connman_service_list, NULL);
- connman_dbus_dict_append_array(&dict, "Providers",
- DBUS_TYPE_OBJECT_PATH, __connman_provider_list, NULL);
connman_dbus_dict_append_array(&dict, "Technologies",
DBUS_TYPE_OBJECT_PATH, __connman_technology_list, NULL);
diff --git a/src/provider.c b/src/provider.c
index 64a2a98f..23fccfc8 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -59,25 +59,6 @@ void __connman_provider_append_properties(struct connman_provider *provider,
&provider->type);
}
-static void append_path(gpointer key, gpointer value, gpointer user_data)
-{
- struct connman_provider *provider = value;
- DBusMessageIter *iter = user_data;
- const char *service_path;
-
- service_path = __connman_service_get_path(provider->vpn_service);
- if (service_path == NULL)
- return;
-
- dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH,
- &service_path);
-}
-
-void __connman_provider_list(DBusMessageIter *iter, void *user_data)
-{
- g_hash_table_foreach(provider_hash, append_path, iter);
-}
-
static struct connman_provider *connman_provider_lookup(const char *identifier)
{
struct connman_provider *provider = NULL;