summaryrefslogtreecommitdiff
path: root/bus/signals.c
diff options
context:
space:
mode:
authorMikael Hallendal <micke@imendio.com>2003-11-27 01:25:50 +0000
committerMikael Hallendal <micke@imendio.com>2003-11-27 01:25:50 +0000
commit9f1a60dbba69844c0a04b3dd86280352736187ce (patch)
treeb50747f9d3b395ba92bd37109504626813f03802 /bus/signals.c
parent6d9f72b9e651d90fcbd191b43b5e91ba7bd63789 (diff)
downloaddbus-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/signals.c')
-rw-r--r--bus/signals.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bus/signals.c b/bus/signals.c
index 9c0d31e2..d136e613 100644
--- a/bus/signals.c
+++ b/bus/signals.c
@@ -59,12 +59,14 @@ bus_match_rule_new (DBusConnection *matches_go_to)
return rule;
}
-void
+BusMatchRule *
bus_match_rule_ref (BusMatchRule *rule)
{
_dbus_assert (rule->refcount > 0);
rule->refcount += 1;
+
+ return rule;
}
void
@@ -765,12 +767,14 @@ bus_matchmaker_new (void)
return matchmaker;
}
-void
+BusMatchmaker *
bus_matchmaker_ref (BusMatchmaker *matchmaker)
{
_dbus_assert (matchmaker->refcount > 0);
matchmaker->refcount += 1;
+
+ return matchmaker;
}
void