[next] telepathy-glib: TpTLSCertificate: use _tp_implement_finish_void for finish functions
Xavier Claessens
xclaesse at kemper.freedesktop.org
Wed May 9 13:10:47 PDT 2012
Module: telepathy-glib
Branch: next
Commit: 8ef7fe360e0e2a8b093b2f33ebe92dcdf4a63e91
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=8ef7fe360e0e2a8b093b2f33ebe92dcdf4a63e91
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue Dec 14 15:44:11 2010 +0000
TpTLSCertificate: use _tp_implement_finish_void for finish functions
---
telepathy-glib/tls-certificate.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/telepathy-glib/tls-certificate.c b/telepathy-glib/tls-certificate.c
index 76496d3..cae19c4 100644
--- a/telepathy-glib/tls-certificate.c
+++ b/telepathy-glib/tls-certificate.c
@@ -32,6 +32,7 @@
#include <telepathy-glib/proxy-internal.h>
#include <telepathy-glib/proxy-subclass.h>
#include <telepathy-glib/util.h>
+#include <telepathy-glib/util-internal.h>
#define DEBUG_FLAG TP_DEBUG_TLS
#include "debug-internal.h"
@@ -352,11 +353,7 @@ tp_tls_certificate_accept_finish (TpTLSCertificate *self,
GAsyncResult *result,
GError **error)
{
- if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result),
- error))
- return FALSE;
-
- return TRUE;
+ _tp_implement_finish_void (self, tp_tls_certificate_accept_async)
}
static GPtrArray *
@@ -409,11 +406,7 @@ tp_tls_certificate_reject_finish (TpTLSCertificate *self,
GAsyncResult *result,
GError **error)
{
- if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result),
- error))
- return FALSE;
-
- return TRUE;
+ _tp_implement_finish_void (self, tp_tls_certificate_reject_async)
}
#include <telepathy-glib/_gen/tp-cli-tls-cert-body.h>
More information about the telepathy-commits
mailing list