telepathy-glib: Generate TpTLSCertificate code to have that object as first argument
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Wed May 9 03:15:55 PDT 2012
Module: telepathy-glib
Branch: master
Commit: ec888541591f7e2f5264e77493a49c3b287f5779
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=ec888541591f7e2f5264e77493a49c3b287f5779
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Nov 26 15:35:39 2010 +0000
Generate TpTLSCertificate code to have that object as first argument
---
telepathy-glib/codegen.am | 3 ++-
telepathy-glib/tls-certificate.c | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/telepathy-glib/codegen.am b/telepathy-glib/codegen.am
index 6c889e7..26caaef 100644
--- a/telepathy-glib/codegen.am
+++ b/telepathy-glib/codegen.am
@@ -297,7 +297,8 @@ _gen/tp-cli-%-body.h: _gen/tp-spec-%.xml \
subclass_assert=--subclass-assert=TP_IS_DEBUG_CLIENT; \
;; \
tls-cert) \
- echo "FIXME: use TpTLSCertificate here" ; \
+ subclass=--subclass=TpTLSCertificate; \
+ subclass_assert=--subclass-assert=TP_IS_TLS_CERTIFICATE; \
;; \
esac; \
$(PYTHON) $(tools_dir)/glib-client-gen.py \
diff --git a/telepathy-glib/tls-certificate.c b/telepathy-glib/tls-certificate.c
index 4036fdb..e866748 100644
--- a/telepathy-glib/tls-certificate.c
+++ b/telepathy-glib/tls-certificate.c
@@ -237,7 +237,7 @@ tp_tls_certificate_class_init (TpTLSCertificateClass *klass)
}
static void
-cert_proxy_accept_cb (TpProxy *proxy,
+cert_proxy_accept_cb (TpTLSCertificate *self,
const GError *error,
gpointer user_data,
GObject *weak_object)
@@ -256,7 +256,7 @@ cert_proxy_accept_cb (TpProxy *proxy,
}
static void
-cert_proxy_reject_cb (TpProxy *proxy,
+cert_proxy_reject_cb (TpTLSCertificate *self,
const GError *error,
gpointer user_data,
GObject *weak_object)
@@ -360,7 +360,7 @@ tp_tls_certificate_accept_async (TpTLSCertificate *self,
accept_result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, tp_tls_certificate_accept_async);
- tp_cli_authentication_tls_certificate_call_accept (TP_PROXY (self),
+ tp_cli_authentication_tls_certificate_call_accept (self,
-1, cert_proxy_accept_cb,
accept_result, g_object_unref,
G_OBJECT (self));
@@ -415,7 +415,7 @@ tp_tls_certificate_reject_async (TpTLSCertificate *self,
reject_result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, tp_tls_certificate_reject_async);
- tp_cli_authentication_tls_certificate_call_reject (TP_PROXY (self),
+ tp_cli_authentication_tls_certificate_call_reject (self,
-1, rejections, cert_proxy_reject_cb,
reject_result, g_object_unref, G_OBJECT (self));
More information about the telepathy-commits
mailing list