dbus/dbus dbus-marshal-recursive.c,1.35,1.36

Havoc Pennington hp at freedesktop.org
Sun Jan 2 16:23:05 PST 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv16929

Modified Files:
	dbus-marshal-recursive.c 
Log Message:
cleanup args to read func in test suite


Index: dbus-marshal-recursive.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-marshal-recursive.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- dbus-marshal-recursive.c	3 Jan 2005 00:01:59 -0000	1.35
+++ dbus-marshal-recursive.c	3 Jan 2005 00:23:03 -0000	1.36
@@ -894,7 +894,7 @@
   _dbus_assert (realign_root != NULL);
 
   retval = FALSE;
-  
+
   if (!_dbus_string_init (&replacement))
     return FALSE;
 
@@ -909,7 +909,7 @@
     goto out;
 
   /* Write the new basic value */
-  
+
   _dbus_type_writer_init_values_only (&writer,
                                       reader->byte_order,
                                       reader->type_str,
@@ -2094,9 +2094,12 @@
                                    DBusTypeWriter *writer,
                                    int             seed);
   dbus_bool_t (* read_value)      (TestTypeNode   *node,
-                                   DataBlock      *block,
                                    DBusTypeReader *reader,
                                    int             seed);
+  dbus_bool_t (* set_value)       (TestTypeNode   *node,
+                                   DBusTypeReader *reader,
+                                   DBusTypeReader *realign_root,
+                                   int             seed);
   dbus_bool_t (* build_signature) (TestTypeNode   *node,
                                    DBusString     *str);
 };
@@ -2111,7 +2114,6 @@
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t int32_read_value        (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t int64_write_value       (TestTypeNode   *node,
@@ -2119,7 +2121,6 @@
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t int64_read_value        (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t string_write_value      (TestTypeNode   *node,
@@ -2127,55 +2128,48 @@
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t string_read_value       (TestTypeNode   *node,
-                                            DataBlock      *block,
-                                            DBusTypeReader *reader,
-                                            int             seed);
-static dbus_bool_t bool_read_value         (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t bool_write_value        (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
-static dbus_bool_t byte_read_value         (TestTypeNode   *node,
-                                            DataBlock      *block,
+static dbus_bool_t bool_read_value         (TestTypeNode   *node,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t byte_write_value        (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
-static dbus_bool_t double_read_value       (TestTypeNode   *node,
-                                            DataBlock      *block,
+static dbus_bool_t byte_read_value         (TestTypeNode   *node,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t double_write_value      (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
-static dbus_bool_t object_path_read_value  (TestTypeNode   *node,
-                                            DataBlock      *block,
+static dbus_bool_t double_read_value       (TestTypeNode   *node,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t object_path_write_value (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
-static dbus_bool_t signature_read_value    (TestTypeNode   *node,
-                                            DataBlock      *block,
+static dbus_bool_t object_path_read_value  (TestTypeNode   *node,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t signature_write_value   (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
+static dbus_bool_t signature_read_value    (TestTypeNode   *node,
+                                            DBusTypeReader *reader,
+                                            int             seed);
 static dbus_bool_t struct_write_value      (TestTypeNode   *node,
                                             DataBlock      *block,
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t struct_read_value       (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t struct_build_signature  (TestTypeNode   *node,
@@ -2185,7 +2179,6 @@
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t array_read_value        (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static dbus_bool_t array_build_signature   (TestTypeNode   *node,
@@ -2195,7 +2188,6 @@
                                             DBusTypeWriter *writer,
                                             int             seed);
 static dbus_bool_t variant_read_value      (TestTypeNode   *node,
-                                            DataBlock      *block,
                                             DBusTypeReader *reader,
                                             int             seed);
 static void        container_destroy       (TestTypeNode   *node);
@@ -2209,6 +2201,7 @@
   NULL,
   int32_write_value,
   int32_read_value,
+  NULL,
   NULL
 };
 
@@ -2220,6 +2213,7 @@
   NULL,
   int32_write_value, /* recycle from int32 */
   int32_read_value,  /* recycle from int32 */
+  NULL,
   NULL
 };
 
@@ -2231,6 +2225,7 @@
   NULL,
   int64_write_value,
   int64_read_value,
+  NULL,
   NULL
 };
 
@@ -2242,6 +2237,7 @@
   NULL,
   int64_write_value, /* recycle from int64 */
   int64_read_value,  /* recycle from int64 */
+  NULL,
   NULL
 };
 
@@ -2253,6 +2249,7 @@
   NULL,
   string_write_value,
   string_read_value,
+  NULL,
   NULL
 };
 
@@ -2264,6 +2261,7 @@
   NULL,
   string_write_value,
   string_read_value,
+  NULL,
   NULL
 };
 
@@ -2276,6 +2274,7 @@
   NULL,
   string_write_value,
   string_read_value,
+  NULL,
   NULL
 };
 
@@ -2288,6 +2287,7 @@
   NULL,
   string_write_value,
   string_read_value,
+  NULL,
   NULL
 };
 
@@ -2299,6 +2299,7 @@
   NULL,
   bool_write_value,
   bool_read_value,
+  NULL,
   NULL
 };
 
@@ -2310,6 +2311,7 @@
   NULL,
   byte_write_value,
   byte_read_value,
+  NULL,
   NULL
 };
 
@@ -2321,6 +2323,7 @@
   NULL,
   double_write_value,
   double_read_value,
+  NULL,
   NULL
 };
 
@@ -2332,6 +2335,7 @@
   NULL,
   object_path_write_value,
   object_path_read_value,
+  NULL,
   NULL
 };
 
@@ -2343,6 +2347,7 @@
   NULL,
   signature_write_value,
   signature_read_value,
+  NULL,
   NULL
 };
 
@@ -2354,6 +2359,7 @@
   container_destroy,
   struct_write_value,
   struct_read_value,
+  NULL,
   struct_build_signature
 };
 
@@ -2365,6 +2371,7 @@
   container_destroy,
   struct_write_value,
   struct_read_value,
+  NULL,
   struct_build_signature
 };
 
@@ -2376,6 +2383,7 @@
   container_destroy,
   array_write_value,
   array_read_value,
+  NULL,
   array_build_signature
 };
 
@@ -2387,6 +2395,7 @@
   container_destroy,
   array_write_value,
   array_read_value,
+  NULL,
   array_build_signature
 };
 
@@ -2398,6 +2407,7 @@
   container_destroy,
   array_write_value,
   array_read_value,
+  NULL,
   array_build_signature
 };
 
@@ -2409,6 +2419,7 @@
   container_destroy,
   array_write_value,
   array_read_value,
+  NULL,
   array_build_signature
 };
 
@@ -2420,6 +2431,7 @@
   container_destroy,
   variant_write_value,
   variant_read_value,
+  NULL,
   NULL
 };
 
@@ -2506,7 +2518,6 @@
 
 static dbus_bool_t
 node_read_value (TestTypeNode   *node,
-                 DataBlock      *block,
                  DBusTypeReader *reader,
                  int             seed)
 {
@@ -2515,7 +2526,7 @@
 
   _dbus_type_reader_save_mark (reader, &mark);
 
-  if (!(* node->klass->read_value) (node, block, reader, seed))
+  if (!(* node->klass->read_value) (node, reader, seed))
     return FALSE;
 
   _dbus_type_reader_init_from_mark (&restored,
@@ -2524,7 +2535,7 @@
                                     reader->value_str,
                                     &mark);
 
-  if (!(* node->klass->read_value) (node, block, &restored, seed))
+  if (!(* node->klass->read_value) (node, &restored, seed))
     return FALSE;
 
   return TRUE;
@@ -2675,7 +2686,7 @@
   i = 0;
   while (i < nid->n_nodes)
     {
-      if (!node_read_value (nid->nodes[i], nid->block, &reader, i))
+      if (!node_read_value (nid->nodes[i], &reader, i))
         goto out;
 
       if (i + 1 == nid->n_nodes)
@@ -2742,7 +2753,7 @@
   i = 0;
   while (i < nid->n_nodes)
     {
-      if (!node_read_value (nid->nodes[i], nid->block, &reader, i))
+      if (!node_read_value (nid->nodes[i], &reader, i))
         goto out;
 
       if (i + 1 == nid->n_nodes)
@@ -3329,7 +3340,6 @@
 
 static dbus_bool_t
 int32_read_value (TestTypeNode   *node,
-                  DataBlock      *block,
                   DBusTypeReader *reader,
                   int             seed)
 {
@@ -3384,7 +3394,6 @@
 
 static dbus_bool_t
 int64_read_value (TestTypeNode   *node,
-                  DataBlock      *block,
                   DBusTypeReader *reader,
                   int             seed)
 {
@@ -3452,7 +3461,6 @@
 
 static dbus_bool_t
 string_read_value (TestTypeNode   *node,
-                   DataBlock      *block,
                    DBusTypeReader *reader,
                    int             seed)
 {
@@ -3496,7 +3504,6 @@
 
 static dbus_bool_t
 bool_read_value (TestTypeNode   *node,
-                 DataBlock      *block,
                  DBusTypeReader *reader,
                  int             seed)
 {
@@ -3531,7 +3538,6 @@
 
 static dbus_bool_t
 byte_read_value (TestTypeNode   *node,
-                 DataBlock      *block,
                  DBusTypeReader *reader,
                  int             seed)
 {
@@ -3570,7 +3576,6 @@
 
 static dbus_bool_t
 double_read_value (TestTypeNode   *node,
-                   DataBlock      *block,
                    DBusTypeReader *reader,
                    int             seed)
 {
@@ -3644,7 +3649,6 @@
 
 static dbus_bool_t
 object_path_read_value (TestTypeNode   *node,
-                        DataBlock      *block,
                         DBusTypeReader *reader,
                         int             seed)
 {
@@ -3712,7 +3716,6 @@
 
 static dbus_bool_t
 signature_read_value (TestTypeNode   *node,
-                      DataBlock      *block,
                       DBusTypeReader *reader,
                       int             seed)
 {
@@ -3793,7 +3796,6 @@
 
 static dbus_bool_t
 struct_read_value (TestTypeNode   *node,
-                   DataBlock      *block,
                    DBusTypeReader *reader,
                    int             seed)
 {
@@ -3819,7 +3821,7 @@
           TestTypeNode *child = link->data;
           DBusList *next = _dbus_list_get_next_link (&container->children, link);
 
-          if (!node_read_value (child, block, &sub, seed + i))
+          if (!node_read_value (child, &sub, seed + i))
             return FALSE;
 
           if (i == (n_copies - 1) && next == NULL)
@@ -3947,7 +3949,6 @@
 
 static dbus_bool_t
 array_read_value (TestTypeNode   *node,
-                  DataBlock      *block,
                   DBusTypeReader *reader,
                   int             seed)
 {
@@ -3977,7 +3978,7 @@
               TestTypeNode *child = link->data;
               DBusList *next = _dbus_list_get_next_link (&container->children, link);
 
-              if (!node_read_value (child, block, &sub, seed + i))
+              if (!node_read_value (child, &sub, seed + i))
                 return FALSE;
 
               if (i == (n_copies - 1) && next == NULL)
@@ -4073,7 +4074,6 @@
 
 static dbus_bool_t
 variant_read_value (TestTypeNode   *node,
-                    DataBlock      *block,
                     DBusTypeReader *reader,
                     int             seed)
 {
@@ -4090,7 +4090,7 @@
 
   _dbus_type_reader_recurse (reader, &sub);
 
-  if (!node_read_value (child, block, &sub, seed + VARIANT_SEED))
+  if (!node_read_value (child, &sub, seed + VARIANT_SEED))
     return FALSE;
 
   NEXT_EXPECTING_FALSE (&sub);



More information about the dbus-commit mailing list