summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-12 14:07:38 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-23 12:58:51 +0200
commitc619cdf8bcbb6f10909f1628b1106007b8410cb7 (patch)
treed68a29fd8c89504d6dcb829859291434f0749d21
parentb04634c4902c12fa9a2044d7bbcfbd0088913b1b (diff)
downloadconnman-c619cdf8bcbb6f10909f1628b1106007b8410cb7.tar.gz
connman-c619cdf8bcbb6f10909f1628b1106007b8410cb7.tar.bz2
connman-c619cdf8bcbb6f10909f1628b1106007b8410cb7.zip
manager: Deprecating connect/remove provider API
The VPN configuration API is provided by connman-vpnd instead of connmand.
-rw-r--r--doc/manager-api.txt6
-rw-r--r--src/manager.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/manager-api.txt b/doc/manager-api.txt
index ca193aa2..ed23c8d0 100644
--- a/doc/manager-api.txt
+++ b/doc/manager-api.txt
@@ -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)
diff --git a/src/manager.c b/src/manager.c
index d220d7eb..51a3735d 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -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) },