manager: Deprecating connect/remove provider API
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Mon, 12 Nov 2012 12:07:38 +0000 (14:07 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 23 Nov 2012 10:58:51 +0000 (12:58 +0200)
The VPN configuration API is provided by connman-vpnd instead
of connmand.

doc/manager-api.txt
src/manager.c

index ca193aa..ed23c8d 100644 (file)
@@ -39,7 +39,7 @@ Methods               dict GetProperties()
 
                        Possible Errors: [service].Error.InvalidArguments
 
-               object ConnectProvider(dict provider)
+               object ConnectProvider(dict provider)   [deprecated]
 
                        Connect to a VPN specified by the given provider
                        properties.
@@ -58,6 +58,10 @@ Methods              dict GetProperties()
                        When 'SessionMode' property is enabled, this method
                        call is disallowed.
 
+                       This API is deprecated and should not be used.
+                       The VPN configuration API is provided by ConnMan
+                       VPN daemon and user should use that one instead.
+
                        Possible Errors: [service].Error.InvalidArguments
 
                void RegisterAgent(object path)
index d220d7e..51a3735 100644 (file)
@@ -409,13 +409,13 @@ static const GDBusMethodTable manager_methods[] = {
        { GDBUS_METHOD("GetTechnologies",
                        NULL, GDBUS_ARGS({ "technologies", "a(oa{sv})" }),
                        get_technologies) },
-       { GDBUS_METHOD("RemoveProvider",
+       { GDBUS_DEPRECATED_METHOD("RemoveProvider",
                        GDBUS_ARGS({ "provider", "o" }), NULL,
                        remove_provider) },
        { GDBUS_METHOD("GetServices",
                        NULL, GDBUS_ARGS({ "services", "a(oa{sv})" }),
                        get_services) },
-       { GDBUS_ASYNC_METHOD("ConnectProvider",
+       { GDBUS_DEPRECATED_ASYNC_METHOD("ConnectProvider",
                              GDBUS_ARGS({ "provider", "a{sv}" }),
                              GDBUS_ARGS({ "path", "o" }),
                              connect_provider) },