keep up with EggDBus HEAD, in the removal of _async() and addition of sync()
authorDavid Zeuthen <davidz@redhat.com>
Mon, 8 Dec 2008 06:33:00 +0000 (01:33 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 8 Dec 2008 06:33:00 +0000 (01:33 -0500)
http://cgit.freedesktop.org/~david/eggdbus/commit/?id=27afdc7a49ee49290e048364500d5c549f8ac614

src/polkitd/main.c
src/programs/polkit-verify-claim.c

index 05e9bae..9fc6bb6 100644 (file)
@@ -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);
index 87f1a5c..7199339 100644 (file)
@@ -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);