diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-11 02:09:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-11 23:10:40 +0200 |
commit | 2100fa1099b086411270a2876dde0532ea2806fa (patch) | |
tree | f58974c466048ba1b4f8d65017bda6b686814b9d /src/libsystemd-bus/bus-message.h | |
parent | 9be9c7cff600018279a0c3fa5fbe719bd1c0b8ad (diff) |
bus: calculate iovec for messages only when we need it
Diffstat (limited to 'src/libsystemd-bus/bus-message.h')
-rw-r--r-- | src/libsystemd-bus/bus-message.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h index cc1e10d843..126ced0083 100644 --- a/src/libsystemd-bus/bus-message.h +++ b/src/libsystemd-bus/bus-message.h @@ -92,7 +92,6 @@ struct sd_bus_message { struct iovec iovec[4]; unsigned n_iovec; - size_t size; char *peeked_signature; }; @@ -146,3 +145,5 @@ int bus_message_from_malloc( const char* bus_message_get_arg(sd_bus_message *m, unsigned i); int bus_message_append_ap(sd_bus_message *m, const char *types, va_list ap); + +size_t bus_message_size(sd_bus_message *m); |