summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorHenri Bragge <henri.bragge@ixonos.com>2011-04-01 11:41:41 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-04-11 12:02:43 +0200
commita3bc04c995176b9c3e04b4f317389bd67ee278ca (patch)
tree0d12b3a61b1e4bbbc5a32f77f6274d2867afe035 /src/manager.c
parentcda0efeb01e196c80c9202aba48c401daacb75a5 (diff)
downloadconnman-a3bc04c995176b9c3e04b4f317389bd67ee278ca.tar.gz
connman-a3bc04c995176b9c3e04b4f317389bd67ee278ca.tar.bz2
connman-a3bc04c995176b9c3e04b4f317389bd67ee278ca.zip
manager: Implement service provisioning via dbus
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index 047d26dc..4afed269 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -437,6 +437,19 @@ static DBusMessage *connect_service(DBusConnection *conn,
return NULL;
}
+static DBusMessage *provision_service(DBusConnection *conn, DBusMessage *msg,
+ void *data)
+{
+ int err;
+
+ DBG("conn %p", conn);
+
+ err = __connman_service_provision(msg);
+ if (err < 0)
+ return __connman_error_failed(msg, -err);
+
+ return NULL;
+}
static DBusMessage *connect_provider(DBusConnection *conn,
DBusMessage *msg, void *data)
@@ -592,6 +605,8 @@ static GDBusMethodTable manager_methods[] = {
{ "LookupService", "s", "o", lookup_service, },
{ "ConnectService", "a{sv}", "o", connect_service,
G_DBUS_METHOD_FLAG_ASYNC },
+ { "ProvisionService", "s", "", provision_service,
+ G_DBUS_METHOD_FLAG_ASYNC },
{ "ConnectProvider", "a{sv}", "o", connect_provider,
G_DBUS_METHOD_FLAG_ASYNC },
{ "RegisterAgent", "o", "", register_agent },