_dbus_assert (realign_root != NULL);
retval = FALSE;
-
+
if (!_dbus_string_init (&replacement))
return FALSE;
goto out;
/* Write the new basic value */
-
+
_dbus_type_writer_init_values_only (&writer,
reader->byte_order,
reader->type_str,
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);
};
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,
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,
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,
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,
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);
NULL,
int32_write_value,
int32_read_value,
+ NULL,
NULL
};
NULL,
int32_write_value, /* recycle from int32 */
int32_read_value, /* recycle from int32 */
+ NULL,
NULL
};
NULL,
int64_write_value,
int64_read_value,
+ NULL,
NULL
};
NULL,
int64_write_value, /* recycle from int64 */
int64_read_value, /* recycle from int64 */
+ NULL,
NULL
};
NULL,
string_write_value,
string_read_value,
+ NULL,
NULL
};
NULL,
string_write_value,
string_read_value,
+ NULL,
NULL
};
NULL,
string_write_value,
string_read_value,
+ NULL,
NULL
};
NULL,
string_write_value,
string_read_value,
+ NULL,
NULL
};
NULL,
bool_write_value,
bool_read_value,
+ NULL,
NULL
};
NULL,
byte_write_value,
byte_read_value,
+ NULL,
NULL
};
NULL,
double_write_value,
double_read_value,
+ NULL,
NULL
};
NULL,
object_path_write_value,
object_path_read_value,
+ NULL,
NULL
};
NULL,
signature_write_value,
signature_read_value,
+ NULL,
NULL
};
container_destroy,
struct_write_value,
struct_read_value,
+ NULL,
struct_build_signature
};
container_destroy,
struct_write_value,
struct_read_value,
+ NULL,
struct_build_signature
};
container_destroy,
array_write_value,
array_read_value,
+ NULL,
array_build_signature
};
container_destroy,
array_write_value,
array_read_value,
+ NULL,
array_build_signature
};
container_destroy,
array_write_value,
array_read_value,
+ NULL,
array_build_signature
};
container_destroy,
array_write_value,
array_read_value,
+ NULL,
array_build_signature
};
container_destroy,
variant_write_value,
variant_read_value,
+ NULL,
NULL
};
static dbus_bool_t
node_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
_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,
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;
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)
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)
static dbus_bool_t
int32_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
static dbus_bool_t
int64_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
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
byte_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
static dbus_bool_t
double_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
static dbus_bool_t
object_path_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
static dbus_bool_t
signature_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
static dbus_bool_t
struct_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
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)
static dbus_bool_t
array_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
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)
static dbus_bool_t
variant_read_value (TestTypeNode *node,
- DataBlock *block,
DBusTypeReader *reader,
int seed)
{
_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);