From 9f1a60dbba69844c0a04b3dd86280352736187ce Mon Sep 17 00:00:00 2001 From: Mikael Hallendal Date: Thu, 27 Nov 2003 01:25:50 +0000 Subject: 2003-11-26 Mikael Hallendal * bus/*.[ch]: * dbus/*.[ch]: * glib/*.[ch]: Made ref functions return the pointer --- bus/services.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bus/services.c') diff --git a/bus/services.c b/bus/services.c index 84cabe21..a8020a17 100644 --- a/bus/services.c +++ b/bus/services.c @@ -82,11 +82,13 @@ bus_registry_new (BusContext *context) return NULL; } -void +BusRegistry * bus_registry_ref (BusRegistry *registry) { _dbus_assert (registry->refcount > 0); registry->refcount += 1; + + return registry; } void @@ -713,12 +715,14 @@ bus_service_remove_owner (BusService *service, return TRUE; } -void +BusService * bus_service_ref (BusService *service) { _dbus_assert (service->refcount > 0); service->refcount += 1; + + return service; } void -- cgit