chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: add the ability for backends to queue to input messages at the same time
[elogind.git]
/
src
/
libsystemd-bus
/
bus-internal.h
diff --git
a/src/libsystemd-bus/bus-internal.h
b/src/libsystemd-bus/bus-internal.h
index 7a695c7b93e53667db84bc231ce8940b88e820fa..f21cf87ea28d3805bc9722113a939c9ad92dd0bf 100644
(file)
--- 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;
size_t rbuffer_size;
sd_bus_message **rqueue;
- unsigned rqueue_size;
+ unsigned rqueue_size
, rqueue_allocated
;
sd_bus_message **wqueue;
unsigned wqueue_size;
sd_bus_message **wqueue;
unsigned wqueue_size;
@@
-213,6
+213,8
@@
struct sd_bus {
struct ucred ucred;
char label[NAME_MAX];
struct ucred ucred;
char label[NAME_MAX];
+ uint64_t creds_mask;
+
int *fds;
unsigned n_fds;
int *fds;
unsigned n_fds;
@@
-237,6
+239,7
@@
struct sd_bus {
pid_t original_pid;
uint64_t hello_flags;
pid_t original_pid;
uint64_t hello_flags;
+ uint64_t attach_flags;
uint64_t match_cookie;
uint64_t match_cookie;
@@
-291,6
+294,11
@@
int bus_ensure_running(sd_bus *bus);
int bus_start_running(sd_bus *bus);
int bus_next_address(sd_bus *bus);
int bus_start_running(sd_bus *bus);
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);
bool bus_pid_changed(sd_bus *bus);
char *bus_address_escape(const char *v);