X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-bus%2Fbus-message.h;h=cd1fb0e546ff44217ff31846c03716554f5f5d7a;hb=753e98788a9bcbd3bba2b3006672c003ae72eefa;hp=75a560b3c0f5f4336ee93f47bf28cb26f958e67f;hpb=6647dc6659e1e42b3cff3cf5033ea5624000e650;p=elogind.git diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h index 75a560b3c..cd1fb0e54 100644 --- a/src/libsystemd-bus/bus-message.h +++ b/src/libsystemd-bus/bus-message.h @@ -46,7 +46,7 @@ struct bus_container { uint32_t *array_size; /* gvariant: list of offsets to end of children if this is struct/dict entry/array */ - size_t *offsets, n_offsets, n_offsets_allocated, offset_index; + size_t *offsets, n_offsets, offsets_allocated, offset_index; size_t item_size; }; @@ -65,6 +65,7 @@ struct bus_body_part { void *data; size_t size; size_t mapped; + size_t allocated; int memfd; bool free_this:1; bool munmap_this:1; @@ -115,6 +116,7 @@ struct sd_bus_message { struct bus_container root_container, *containers; unsigned n_containers; + size_t containers_allocated; struct iovec *iovec; struct iovec iovec_fixed[2]; @@ -185,7 +187,7 @@ static inline bool BUS_MESSAGE_IS_GVARIANT(sd_bus_message *m) { return m->header->version == 2; } -int bus_message_seal(sd_bus_message *m, uint64_t serial); +int bus_message_seal(sd_bus_message *m, uint64_t serial, usec_t timeout); int bus_message_get_blob(sd_bus_message *m, void **buffer, size_t *sz); int bus_message_read_strv_extend(sd_bus_message *m, char ***l); @@ -230,3 +232,5 @@ void bus_body_part_unmap(struct bus_body_part *part); int bus_message_to_errno(sd_bus_message *m); int bus_message_new_synthetic_error(sd_bus *bus, uint64_t serial, const sd_bus_error *e, sd_bus_message **m); + +int bus_message_remarshal(sd_bus *bus, sd_bus_message **m);