diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-12-10 12:22:07 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-12-10 12:22:07 +0200 |
commit | b5a5656be5fafa9176c625b9ec207d9075815ba3 (patch) | |
tree | 15de059bca511d11114db322bc030085d0851c93 /src/manager.c | |
parent | 68fa8e68e5d5f7a60587d8593fe661eae4d35dea (diff) | |
download | connman-b5a5656be5fafa9176c625b9ec207d9075815ba3.tar.gz connman-b5a5656be5fafa9176c625b9ec207d9075815ba3.tar.bz2 connman-b5a5656be5fafa9176c625b9ec207d9075815ba3.zip |
manager: Remove support for LookupService method
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/manager.c b/src/manager.c index 2b34ea6f..9afcc3ea 100644 --- a/src/manager.c +++ b/src/manager.c @@ -337,25 +337,6 @@ static DBusMessage *get_services(DBusConnection *conn, return reply; } -static DBusMessage *lookup_service(DBusConnection *conn, - DBusMessage *msg, void *data) -{ - const char *pattern, *path; - int err; - - DBG("conn %p", conn); - - dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &pattern, - DBUS_TYPE_INVALID); - - err = __connman_service_lookup(pattern, &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 *connect_service(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -584,7 +565,6 @@ static GDBusMethodTable manager_methods[] = { { "DisableTechnology", "s", "", disable_technology, G_DBUS_METHOD_FLAG_ASYNC }, { "GetServices", "", "a(oa{sv})", get_services }, - { "LookupService", "s", "o", lookup_service, }, { "ConnectService", "a{sv}", "o", connect_service, G_DBUS_METHOD_FLAG_ASYNC }, { "ProvisionService", "s", "", provision_service, |