From 63155e6a90748fbfd1e019041d91796a94712c48 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 5 Sep 2008 16:12:21 +0300 Subject: Make RequestAuthorization always return a positive reply for now --- plugins/service.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/service.c') diff --git a/plugins/service.c b/plugins/service.c index 4ec8cca0..97b35e64 100644 --- a/plugins/service.c +++ b/plugins/service.c @@ -491,7 +491,7 @@ static DBusMessage *request_authorization(DBusConnection *conn, { /* FIXME implement the request */ - return NULL; + return dbus_message_new_method_return(msg); } static DBusMessage *cancel_authorization(DBusConnection *conn, @@ -506,8 +506,7 @@ static GDBusMethodTable service_methods[] = { { "AddRecord", "s", "u", add_service_record }, { "UpdateRecord", "us", "", update_service_record }, { "RemoveRecord", "u", "", remove_service_record }, - { "RequestAuthorization","su", "", request_authorization, - G_DBUS_METHOD_FLAG_ASYNC}, + { "RequestAuthorization","su", "", request_authorization }, { "CancelAuthorization", "", "", cancel_authorization }, { } }; -- cgit