From 6c3c7278e4d1716342d1d222891c33e98d829691 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 18 Aug 2010 18:01:15 +0200 Subject: Use the hash table directly as a parameter to reject () Clients will have to fill it anyway --- libempathy/empathy-tls-certificate.c | 7 +------ libempathy/empathy-tls-certificate.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tls-certificate.c b/libempathy/empathy-tls-certificate.c index acdbcec93..bed01327c 100644 --- a/libempathy/empathy-tls-certificate.c +++ b/libempathy/empathy-tls-certificate.c @@ -457,11 +457,10 @@ empathy_tls_certificate_accept_finish (EmpathyTLSCertificate *self, void empathy_tls_certificate_reject_async (EmpathyTLSCertificate *self, EmpTLSCertificateRejectReason reason, - gboolean user_requested, + GHashTable *details, GAsyncReadyCallback callback, gpointer user_data) { - GHashTable *details; const gchar *dbus_error; GSimpleAsyncResult *reject_result; EmpathyTLSCertificatePriv *priv = GET_PRIV (self); @@ -471,16 +470,12 @@ empathy_tls_certificate_reject_async (EmpathyTLSCertificate *self, DEBUG ("Rejecting TLS certificate with reason %u", reason); dbus_error = reject_reason_get_dbus_error (reason); - details = tp_asv_new ("user-requested", G_TYPE_BOOLEAN, user_requested, - NULL); reject_result = g_simple_async_result_new (G_OBJECT (self), callback, user_data, empathy_tls_certificate_reject_async); emp_cli_authentication_tls_certificate_call_reject (priv->proxy, -1, reason, dbus_error, details, cert_proxy_reject_cb, reject_result, g_object_unref, G_OBJECT (self)); - - g_hash_table_unref (details); } gboolean diff --git a/libempathy/empathy-tls-certificate.h b/libempathy/empathy-tls-certificate.h index 3a606c602..7066e5119 100644 --- a/libempathy/empathy-tls-certificate.h +++ b/libempathy/empathy-tls-certificate.h @@ -75,7 +75,7 @@ gboolean empathy_tls_certificate_accept_finish (EmpathyTLSCertificate *self, void empathy_tls_certificate_reject_async (EmpathyTLSCertificate *self, EmpTLSCertificateRejectReason reason, - gboolean user_requested, + GHashTable *details, GAsyncReadyCallback callback, gpointer user_data); gboolean empathy_tls_certificate_reject_finish (EmpathyTLSCertificate *self, -- cgit v1.2.3