summaryrefslogtreecommitdiffstats
path: root/test/test-service.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-18 20:42:15 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-18 20:42:15 +0000
commit8873c90f99303f9cc308f15f8d03e637911f5b9e (patch)
tree03e459881912388cc6c3759d91fb0cf75739a5a7 /test/test-service.c
parent4fce285052c143296cd9e08a48de0175b5207853 (diff)
2005-01-18 Havoc Pennington <hp@redhat.com>
* Throughout, grand renaming to strip out the use of "service", just say "name" instead (or "bus name" when ambiguous). Did not change the internal code of the message bus itself, only the programmer-facing API and messages. * doc/dbus-specification.xml: further update the message bus section * bus/config-parser.c (all_are_equiv): fix bug using freed string in error case
Diffstat (limited to 'test/test-service.c')
-rw-r--r--test/test-service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-service.c b/test/test-service.c
index 3ba16bbf..588ef01f 100644
--- a/test/test-service.c
+++ b/test/test-service.c
@@ -165,7 +165,7 @@ main (int argc,
int result;
dbus_error_init (&error);
- connection = dbus_bus_get (DBUS_BUS_ACTIVATION, &error);
+ connection = dbus_bus_get (DBUS_BUS_STARTER, &error);
if (connection == NULL)
{
fprintf (stderr, "*** Failed to open connection to activating message bus: %s\n",
@@ -191,8 +191,8 @@ main (int argc,
NULL))
die ("No memory");
- result = dbus_bus_acquire_service (connection, "org.freedesktop.DBus.TestSuiteEchoService",
- 0, &error);
+ result = dbus_bus_request_name (connection, "org.freedesktop.DBus.TestSuiteEchoService",
+ 0, &error);
if (dbus_error_is_set (&error))
{
fprintf (stderr, "Error %s\n", error.message);