[empathy: 54/65] Use the hash table directly as a parameter to reject ()



commit 6c3c7278e4d1716342d1d222891c33e98d829691
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 18 18:01:15 2010 +0200

    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(-)
---
diff --git a/libempathy/empathy-tls-certificate.c b/libempathy/empathy-tls-certificate.c
index acdbcec..bed0132 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 3a606c6..7066e51 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]