summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-watch.c')
-rw-r--r--dbus/dbus-watch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbus/dbus-watch.c b/dbus/dbus-watch.c
index f212090a..7171dd6d 100644
--- a/dbus/dbus-watch.c
+++ b/dbus/dbus-watch.c
@@ -97,11 +97,14 @@ _dbus_watch_new (int fd,
* Increments the reference count of a DBusWatch object.
*
* @param watch the watch object.
+ * @returns the watch object.
*/
-void
+DBusWatch *
_dbus_watch_ref (DBusWatch *watch)
{
watch->refcount += 1;
+
+ return watch;
}
/**