summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-24 03:02:49 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-24 03:02:49 +0100
commit3798fd4c30150984d6e9eb63e8e94f5410ba5996 (patch)
treec68c17ff9dbe2382100364664caa6799009358b0 /src/libsystemd-bus/bus-message.h
parenteab07b4b23544d38ff0006fa4da9217c61d94749 (diff)
bus: allow peeking signatures recusively inside of containers
Previously we invalidated the peeked signature as soon as the caller would recurse into a container, making stack based handling difficult. With this change we will keep the peeked signature around until the user advances to the next field.
Diffstat (limited to 'src/libsystemd-bus/bus-message.h')
-rw-r--r--src/libsystemd-bus/bus-message.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h
index 589c819c73..a973e9fd6c 100644
--- a/src/libsystemd-bus/bus-message.h
+++ b/src/libsystemd-bus/bus-message.h
@@ -48,6 +48,8 @@ struct bus_container {
/* gvariant: list of offsets to end of children if this is struct/dict entry/array */
size_t *offsets, n_offsets, offsets_allocated, offset_index;
size_t item_size;
+
+ char *peeked_signature;
};
struct bus_header {