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/policy.c | |
parent | 6d9f72b9e651d90fcbd191b43b5e91ba7bd63789 (diff) |
2003-11-26 Mikael Hallendal <micke@imendio.com>
* bus/*.[ch]:
* dbus/*.[ch]:
* glib/*.[ch]: Made ref functions return the pointer
Diffstat (limited to 'bus/policy.c')
-rw-r--r-- | bus/policy.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bus/policy.c b/bus/policy.c index 63131aca..5cd23ca8 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -68,12 +68,14 @@ bus_policy_rule_new (BusPolicyRuleType type, return rule; } -void +BusPolicyRule * bus_policy_rule_ref (BusPolicyRule *rule) { _dbus_assert (rule->refcount > 0); rule->refcount += 1; + + return rule; } void @@ -178,12 +180,14 @@ bus_policy_new (void) return NULL; } -void +BusPolicy * bus_policy_ref (BusPolicy *policy) { _dbus_assert (policy->refcount > 0); policy->refcount += 1; + + return policy; } void @@ -628,12 +632,14 @@ bus_client_policy_new (void) return policy; } -void +BusClientPolicy * bus_client_policy_ref (BusClientPolicy *policy) { _dbus_assert (policy->refcount > 0); policy->refcount += 1; + + return policy; } static void |