r6861 - dumbhippo/trunk/client/linux/src



Author: hp
Date: 2007-11-01 16:46:56 -0500 (Thu, 01 Nov 2007)
New Revision: 6861

Modified:
   dumbhippo/trunk/client/linux/src/hippo-dbus-helper-rename.h
   dumbhippo/trunk/client/linux/src/hippo-dbus-helper.c
   dumbhippo/trunk/client/linux/src/hippo-dbus-helper.h
   dumbhippo/trunk/client/linux/src/hippo-dbus-settings.c
Log:
add another dbus proxy signature to dbus helper

Modified: dumbhippo/trunk/client/linux/src/hippo-dbus-helper-rename.h
===================================================================
--- dumbhippo/trunk/client/linux/src/hippo-dbus-helper-rename.h	2007-11-01 20:13:23 UTC (rev 6860)
+++ dumbhippo/trunk/client/linux/src/hippo-dbus-helper-rename.h	2007-11-01 21:46:56 UTC (rev 6861)
@@ -37,6 +37,7 @@
 #define hippo_dbus_proxy_INT32__VOID mugshot_linux_dbus_proxy_INT32__VOID
 #define hippo_dbus_proxy_STRING__INT32 mugshot_linux_dbus_proxy_STRING__INT32
 #define hippo_dbus_proxy_VOID__VOID mugshot_linux_dbus_proxy_VOID__VOID
+#define hippo_dbus_proxy_VOID__UINT32 mugshot_linux_dbus_proxy_VOID__UINT32
 #define hippo_dbus_proxy_call_method_async mugshot_linux_dbus_proxy_call_method_async
 #define hippo_dbus_proxy_call_method_async_appender mugshot_linux_dbus_proxy_call_method_async_appender
 #define hippo_dbus_proxy_call_method_async_valist mugshot_linux_dbus_proxy_call_method_async_valist

Modified: dumbhippo/trunk/client/linux/src/hippo-dbus-helper.c
===================================================================
--- dumbhippo/trunk/client/linux/src/hippo-dbus-helper.c	2007-11-01 20:13:23 UTC (rev 6860)
+++ dumbhippo/trunk/client/linux/src/hippo-dbus-helper.c	2007-11-01 21:46:56 UTC (rev 6861)
@@ -2288,6 +2288,23 @@
 }
 
 dbus_bool_t
+hippo_dbus_proxy_VOID__UINT32 (HippoDBusProxy  *proxy,
+                               const char      *method,
+                               dbus_uint32_t    in1)
+{
+    DBusMessage *reply;
+    DBusError derror;
+    
+    dbus_error_init(&derror);    
+    reply = hippo_dbus_proxy_call_method_sync(proxy, method, &derror,
+                                              DBUS_TYPE_UINT32, &in1,
+                                              DBUS_TYPE_INVALID);
+    
+    return hippo_dbus_proxy_finish_method_call_freeing_reply(reply, method, &derror,
+                                                             DBUS_TYPE_INVALID);
+}
+
+dbus_bool_t
 hippo_dbus_proxy_INT32__VOID(HippoDBusProxy *proxy,
                              const char     *method,
                              dbus_int32_t   *out1_p)
@@ -2307,7 +2324,7 @@
 dbus_bool_t
 hippo_dbus_proxy_INT32__INT32(HippoDBusProxy *proxy,
                               const char     *method,
-                              dbus_int32_t    in1_p,
+                              dbus_int32_t    in1,
                               dbus_int32_t   *out1_p)
 {
     DBusMessage *reply;
@@ -2315,7 +2332,7 @@
 
     dbus_error_init(&derror);    
     reply = hippo_dbus_proxy_call_method_sync(proxy, method, &derror,
-                                              DBUS_TYPE_INT32, &in1_p,
+                                              DBUS_TYPE_INT32, &in1,
                                               DBUS_TYPE_INVALID);
     
     return hippo_dbus_proxy_finish_method_call_freeing_reply(reply, method, &derror,

Modified: dumbhippo/trunk/client/linux/src/hippo-dbus-helper.h
===================================================================
--- dumbhippo/trunk/client/linux/src/hippo-dbus-helper.h	2007-11-01 20:13:23 UTC (rev 6860)
+++ dumbhippo/trunk/client/linux/src/hippo-dbus-helper.h	2007-11-01 21:46:56 UTC (rev 6861)
@@ -270,31 +270,34 @@
 
 dbus_bool_t hippo_dbus_proxy_VOID__VOID               (HippoDBusProxy  *proxy,
                                                        const char      *method);
+dbus_bool_t hippo_dbus_proxy_VOID__UINT32             (HippoDBusProxy  *proxy,
+                                                       const char      *method,
+                                                       dbus_uint32_t    in1);
 dbus_bool_t hippo_dbus_proxy_INT32__VOID              (HippoDBusProxy  *proxy,
                                                        const char      *method,
                                                        dbus_int32_t    *out1_p);
 dbus_bool_t hippo_dbus_proxy_INT32__INT32             (HippoDBusProxy  *proxy,
                                                        const char      *method,
-                                                       dbus_int32_t     in1_p,
+                                                       dbus_int32_t     in1,
                                                        dbus_int32_t    *out1_p);
 dbus_bool_t hippo_dbus_proxy_ARRAYINT32__INT32        (HippoDBusProxy  *proxy,
                                                        const char      *method,
-                                                       dbus_int32_t     in1_p,
+                                                       dbus_int32_t     in1,
                                                        dbus_int32_t   **out1_p,
-                                                       dbus_int32_t    *out1_len);
+                                                       dbus_int32_t    *out1_len_p);
 dbus_bool_t hippo_dbus_proxy_ARRAYINT32__VOID         (HippoDBusProxy  *proxy,
                                                        const char      *method,
                                                        dbus_int32_t   **out1_p,
-                                                       dbus_int32_t    *out1_len);
+                                                       dbus_int32_t    *out1_len_p);
 dbus_bool_t hippo_dbus_proxy_ARRAYINT32__INT32_STRING (HippoDBusProxy  *proxy,
                                                        const char      *method,
-                                                       dbus_int32_t     in1_p,
-                                                       const char      *in2_p,
+                                                       dbus_int32_t     in1,
+                                                       const char      *in2,
                                                        dbus_int32_t   **out1_p,
-                                                       dbus_int32_t    *out1_len);
+                                                       dbus_int32_t    *out1_len_p);
 dbus_bool_t hippo_dbus_proxy_STRING__INT32            (HippoDBusProxy  *proxy,
                                                        const char      *method,
-                                                       dbus_int32_t     in1_p,
+                                                       dbus_int32_t     in1,
                                                        char           **out1_p);
 
 

Modified: dumbhippo/trunk/client/linux/src/hippo-dbus-settings.c
===================================================================
--- dumbhippo/trunk/client/linux/src/hippo-dbus-settings.c	2007-11-01 20:13:23 UTC (rev 6860)
+++ dumbhippo/trunk/client/linux/src/hippo-dbus-settings.c	2007-11-01 21:46:56 UTC (rev 6861)
@@ -272,6 +272,8 @@
     DBusMessageIter variant_iter;
     
     if (value == NULL) {
+        g_debug("No value known for '%s' with type '%s'",
+                value, sad->signature);        
         reply = dbus_message_new_error_printf(sad->method_call, HIPPO_DBUS_PREFS_ERROR_NOT_FOUND,                                      
                                               _("No value known for key '%s'"), key);
         goto out;
@@ -289,11 +291,15 @@
                                 value,
                                 &variant_iter,
                                 FALSE)) {
+        g_debug("Failed to parse '%s' as type '%s'",
+                value, sad->signature);
         dbus_message_unref(reply);
         reply = dbus_message_new_error_printf(sad->method_call, HIPPO_DBUS_PREFS_ERROR_WRONG_TYPE,  
                                               _("Value was '%s' not parseable as type '%s'"),
                                               value, sad->signature);
         goto out;
+    } else {
+        g_debug("  parsed value '%s' as type '%s'", value, sad->signature);
     }
 
     dbus_message_iter_close_container(&iter, &variant_iter);



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