diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-24 22:02:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-25 02:33:34 +0100 |
commit | 2c93b4efeca3ccf38d604d85490b796e875e2c31 (patch) | |
tree | 70e0742b2580b37e742b8d72d9c306b0abe016eb /src/libsystemd-bus/bus-message.h | |
parent | 3f95f83c548d180cddc6b9907f8d8d72ebd5abe9 (diff) |
bus: implement support for FD passing
Diffstat (limited to 'src/libsystemd-bus/bus-message.h')
-rw-r--r-- | src/libsystemd-bus/bus-message.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h index 1a6c614611..3289b378f8 100644 --- a/src/libsystemd-bus/bus-message.h +++ b/src/libsystemd-bus/bus-message.h @@ -67,12 +67,14 @@ struct sd_bus_message { pid_t tid; bool sealed:1; + bool dont_send:1; + bool allow_fds:1; bool uid_valid:1; bool gid_valid:1; bool free_header:1; bool free_fields:1; bool free_body:1; - bool dont_send:1; + bool free_fds:1; struct bus_header *header; void *fields; @@ -130,5 +132,13 @@ static inline void bus_message_unrefp(sd_bus_message **m) { int bus_message_seal(sd_bus_message *m, uint64_t serial); int bus_message_dump(sd_bus_message *m); int bus_message_get_blob(sd_bus_message *m, void **buffer, size_t *sz); -int bus_message_from_malloc(void *buffer, size_t length, struct ucred *ucred, const char *label, sd_bus_message **ret); int bus_message_read_strv_extend(sd_bus_message *m, char ***l); + +int bus_message_from_malloc( + void *buffer, + size_t length, + int *fds, + unsigned n_fds, + const struct ucred *ucred, + const char *label, + sd_bus_message **ret); |