summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-04 21:55:31 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-04-04 21:55:31 +0200
commit0061d5a986c7f23f4a97e6b3d46b4e041e77007a (patch)
tree1205846ccd52b936d8ec799d21981ec5a1933d2a /src/manager.c
parenta14f9066f098cd80ef22899007cb6222d6bc8bf0 (diff)
downloadconnman-0061d5a986c7f23f4a97e6b3d46b4e041e77007a.tar.gz
connman-0061d5a986c7f23f4a97e6b3d46b4e041e77007a.tar.bz2
connman-0061d5a986c7f23f4a97e6b3d46b4e041e77007a.zip
manager: Remove the Create/RemoveProfile D-Bus API
Provisioning is done through configuration files, not profiles (naming could be changed as well). There is no need for multiple profiles files.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/manager.c b/src/manager.c
index 349ddb41..047d26dc 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -50,8 +50,6 @@ static DBusMessage *get_properties(DBusConnection *conn,
connman_dbus_dict_append_basic(&dict, "ActiveProfile",
DBUS_TYPE_OBJECT_PATH, &str);
- connman_dbus_dict_append_array(&dict, "Profiles",
- 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, "Technologies",
@@ -155,43 +153,6 @@ static DBusMessage *get_state(DBusConnection *conn,
DBUS_TYPE_INVALID);
}
-static DBusMessage *create_profile(DBusConnection *conn,
- DBusMessage *msg, void *data)
-{
- const char *name, *path;
- int err;
-
- DBG("conn %p", conn);
-
- dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &name,
- DBUS_TYPE_INVALID);
-
- err = __connman_profile_create(name, &path);
- if (err < 0)
- return __connman_error_failed(msg, -err);
-
- return g_dbus_create_reply(msg, DBUS_TYPE_OBJECT_PATH, &path,
- DBUS_TYPE_INVALID);
-}
-
-static DBusMessage *remove_profile(DBusConnection *conn,
- DBusMessage *msg, void *data)
-{
- const char *path;
- int err;
-
- DBG("conn %p", conn);
-
- dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
- DBUS_TYPE_INVALID);
-
- err = __connman_profile_remove(path);
- if (err < 0)
- return __connman_error_failed(msg, -err);
-
- return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
-}
-
static DBusMessage *remove_provider(DBusConnection *conn,
DBusMessage *msg, void *data)
{
@@ -621,8 +582,6 @@ static GDBusMethodTable manager_methods[] = {
{ "GetProperties", "", "a{sv}", get_properties },
{ "SetProperty", "sv", "", set_property },
{ "GetState", "", "s", get_state },
- { "CreateProfile", "s", "o", create_profile },
- { "RemoveProfile", "o", "", remove_profile },
{ "RemoveProvider", "o", "", remove_provider },
{ "RequestScan", "s", "", request_scan },
{ "EnableTechnology", "s", "", enable_technology,