diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-11-04 11:39:15 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-11-15 16:50:44 +0000 |
commit | 445b69e49022b9f42af4a76cf2c84e2e01697512 (patch) | |
tree | 343b4872bc8de57de57242837275d7bd823fe35a /telepathy-glib/handle-repo-dynamic.c | |
parent | d7358748a726d1e54351b0d4d16ec27a10a4f593 (diff) | |
download | telepathy-glib-445b69e49022b9f42af4a76cf2c84e2e01697512.tar.gz |
handle-repo: make tp_handle_ref return the handle
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/handle-repo-dynamic.c')
-rw-r--r-- | telepathy-glib/handle-repo-dynamic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/handle-repo-dynamic.c b/telepathy-glib/handle-repo-dynamic.c index 8cbfc8641..d3472ae68 100644 --- a/telepathy-glib/handle-repo-dynamic.c +++ b/telepathy-glib/handle-repo-dynamic.c @@ -624,17 +624,19 @@ dynamic_unref_handle (TpHandleRepoIface *repo, TpHandle handle) handle_priv_remove (self, handle); } -static void +static TpHandle dynamic_ref_handle (TpHandleRepoIface *repo, TpHandle handle) { TpHandlePriv *priv = handle_priv_lookup (TP_DYNAMIC_HANDLE_REPO (repo), handle); - g_return_if_fail (priv != NULL); + g_return_val_if_fail (priv != NULL, 0); priv->refcount++; HANDLE_LEAK_DEBUG_DO (priv->traces, repo, handle, HL_REFFED) + + return handle; } static gboolean |