From: David Zeuthen Date: Mon, 8 Dec 2008 06:33:00 +0000 (-0500) Subject: keep up with EggDBus HEAD, in the removal of _async() and addition of sync() X-Git-Tag: 0.91~48^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fce5a409add45140c87658ea0c019a9dac94dfad;p=platform%2Fupstream%2Fpolkit.git keep up with EggDBus HEAD, in the removal of _async() and addition of sync() http://cgit.freedesktop.org/~david/eggdbus/commit/?id=27afdc7a49ee49290e048364500d5c549f8ac614 --- diff --git a/src/polkitd/main.c b/src/polkitd/main.c index 05e9bae..9fc6bb6 100644 --- a/src/polkitd/main.c +++ b/src/polkitd/main.c @@ -52,13 +52,13 @@ main (int argc, char **argv) connection = egg_dbus_connection_get_for_bus (EGG_DBUS_BUS_TYPE_SYSTEM); error = NULL; - if (!egg_dbus_bus_invoke_request_name (egg_dbus_connection_get_bus_proxy (connection), - 0, /* call flags */ - "org.freedesktop.PolicyKit1", - 0, /* flags */ - &rn_ret, - NULL, - &error)) + if (!egg_dbus_bus_invoke_request_name_sync (egg_dbus_connection_get_bus_proxy (connection), + 0, /* call flags */ + "org.freedesktop.PolicyKit1", + 0, /* flags */ + &rn_ret, + NULL, + &error)) { g_warning ("error: %s", error->message); g_error_free (error); diff --git a/src/programs/polkit-verify-claim.c b/src/programs/polkit-verify-claim.c index 87f1a5c..7199339 100644 --- a/src/programs/polkit-verify-claim.c +++ b/src/programs/polkit-verify-claim.c @@ -33,12 +33,12 @@ main (int argc, char *argv[]) authority = polkit_authority_get (); error = NULL; - polkit_authority_invoke_say_hello (authority, - 0, /* call_flags */ - "Hi there!", - &result, - NULL, - &error); + polkit_authority_invoke_say_hello_sync (authority, + 0, /* call_flags */ + "Hi there!", + &result, + NULL, + &error); g_print ("Authority replied: %s\n", result); g_free (result);