provider: Change the name of provider remove function
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Thu, 7 Mar 2013 16:13:40 +0000 (18:13 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 8 Mar 2013 11:50:04 +0000 (13:50 +0200)
Following patch will introduce provider remove function that can
be used from vpn plugin so rename the current removal function to
reflect better its usage.

src/connman.h
src/manager.c
src/provider.c

index fc6d528..19bca74 100644 (file)
@@ -559,7 +559,7 @@ int __connman_provider_indicate_state(struct connman_provider *provider,
 int __connman_provider_indicate_error(struct connman_provider *provider,
                                        enum connman_provider_error error);
 int __connman_provider_connect(struct connman_provider *provider);
-int __connman_provider_remove(const char *path);
+int __connman_provider_remove_by_path(const char *path);
 void __connman_provider_cleanup(void);
 int __connman_provider_init(void);
 
index 1d09267..e56f2e1 100644 (file)
@@ -161,7 +161,7 @@ static DBusMessage *remove_provider(DBusConnection *conn,
        dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
                                                        DBUS_TYPE_INVALID);
 
-       err = __connman_provider_remove(path);
+       err = __connman_provider_remove_by_path(path);
        if (err < 0)
                return __connman_error_failed(msg, -err);
 
index ca86880..b86e7d6 100644 (file)
@@ -174,7 +174,7 @@ int __connman_provider_connect(struct connman_provider *provider)
        return 0;
 }
 
-int __connman_provider_remove(const char *path)
+int __connman_provider_remove_by_path(const char *path)
 {
        struct connman_provider *provider;
        GHashTableIter iter;