X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-bus%2Fbus-message.h;h=3289b378f848ca0629453cb950bcf534bd59a039;hb=b29b8bc202979eed83846f55c6de34f7461ed15d;hp=1a6c61461126dbc022137e566eb0a61cb10994b9;hpb=cb695f05c5bb7d188090b570c22a8231f8e02afe;p=elogind.git diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h index 1a6c61461..3289b378f 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);