summaryrefslogtreecommitdiffstats
path: root/bus/services.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 /bus/services.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 'bus/services.c')
-rw-r--r--bus/services.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bus/services.c b/bus/services.c
index 8f223f4e..90c8d1d8 100644
--- a/bus/services.c
+++ b/bus/services.c
@@ -375,14 +375,14 @@ bus_registry_acquire_service (BusRegistry *registry,
_dbus_assert (current_owner == connection);
bus_service_set_prohibit_replacement (service,
- (flags & DBUS_SERVICE_FLAG_PROHIBIT_REPLACEMENT));
+ (flags & DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT));
- *result = DBUS_SERVICE_REPLY_PRIMARY_OWNER;
+ *result = DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
}
else if (old_owner == connection)
- *result = DBUS_SERVICE_REPLY_ALREADY_OWNER;
- else if (!((flags & DBUS_SERVICE_FLAG_REPLACE_EXISTING)))
- *result = DBUS_SERVICE_REPLY_SERVICE_EXISTS;
+ *result = DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER;
+ else if (!((flags & DBUS_NAME_FLAG_REPLACE_EXISTING)))
+ *result = DBUS_REQUEST_NAME_REPLY_EXISTS;
else if (bus_service_get_prohibit_replacement (service))
{
/* Queue the connection */
@@ -390,14 +390,14 @@ bus_registry_acquire_service (BusRegistry *registry,
transaction, error))
goto out;
- *result = DBUS_SERVICE_REPLY_IN_QUEUE;
+ *result = DBUS_REQUEST_NAME_REPLY_IN_QUEUE;
}
else
{
/* Replace the current owner */
/* We enqueue the new owner and remove the first one because
- * that will cause ServiceAcquired and ServiceLost messages to
+ * that will cause NameAcquired and NameLost messages to
* be sent.
*/
@@ -410,7 +410,7 @@ bus_registry_acquire_service (BusRegistry *registry,
goto out;
_dbus_assert (connection == bus_service_get_primary_owner (service));
- *result = DBUS_SERVICE_REPLY_PRIMARY_OWNER;
+ *result = DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
}
activation = bus_context_get_activation (registry->context);