diff options
author | Mikael Hallendal <micke@imendio.com> | 2003-11-27 01:25:50 +0000 |
---|---|---|
committer | Mikael Hallendal <micke@imendio.com> | 2003-11-27 01:25:50 +0000 |
commit | 9f1a60dbba69844c0a04b3dd86280352736187ce (patch) | |
tree | b50747f9d3b395ba92bd37109504626813f03802 /bus/services.c | |
parent | 6d9f72b9e651d90fcbd191b43b5e91ba7bd63789 (diff) | |
download | dbus-9f1a60dbba69844c0a04b3dd86280352736187ce.tar.gz |
2003-11-26 Mikael Hallendal <micke@imendio.com>
* bus/*.[ch]:
* dbus/*.[ch]:
* glib/*.[ch]: Made ref functions return the pointer
Diffstat (limited to 'bus/services.c')
-rw-r--r-- | bus/services.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 |