summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-29 21:29:16 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-29 22:03:55 +0100
commit7d22c717329c6317f97ccd0f68040a3a2b98e760 (patch)
tree72a5818287e9bd9d5de0720b10f636c6a9d6ca2c /src/libsystemd-bus/bus-internal.h
parent3519d4c895b45adc6e0791e1a344574f78b2d1be (diff)
bus: add the ability for backends to queue to input messages at the same time
We need this so that one incoming kernel message can result in two high-level bus messages, for the case where we synthesize NameAcquired and NameOwnerChanged in the same instance.
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r--src/libsystemd-bus/bus-internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h
index 7a7d8f5ffb..f21cf87ea2 100644
--- a/src/libsystemd-bus/bus-internal.h
+++ b/src/libsystemd-bus/bus-internal.h
@@ -166,7 +166,7 @@ struct sd_bus {
size_t rbuffer_size;
sd_bus_message **rqueue;
- unsigned rqueue_size;
+ unsigned rqueue_size, rqueue_allocated;
sd_bus_message **wqueue;
unsigned wqueue_size;
@@ -296,6 +296,9 @@ int bus_next_address(sd_bus *bus);
int bus_seal_message(sd_bus *b, sd_bus_message *m);
+int bus_rqueue_make_room(sd_bus *bus, unsigned n);
+int bus_rqueue_push(sd_bus *bus, sd_bus_message *m);
+
bool bus_pid_changed(sd_bus *bus);
char *bus_address_escape(const char *v);