diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-26 18:40:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-29 14:42:42 +0100 |
commit | 1b78be0bb567d07f00922809411c16887a084033 (patch) | |
tree | 03f0f19b0e2548652192a1a4a36e0bf179f262ab /src/shared/bus-util.h | |
parent | sd-bus: tighten rules on sd_bus_query_sender_creds() a bit (diff) | |
download | systemd-1b78be0bb567d07f00922809411c16887a084033.tar.xz systemd-1b78be0bb567d07f00922809411c16887a084033.zip |
bus-util: add helper for getting PidRef structs from bus
This adds two helpers: one for extracting a PidRef from an sd_bus_creds
object, and one from doing this from and sd_bus_message object.
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r-- | src/shared/bus-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 869c639aeb..1004c79406 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -11,6 +11,7 @@ #include "errno-util.h" #include "macro.h" +#include "pidref.h" #include "runtime-scope.h" #include "set.h" #include "string-util.h" @@ -73,3 +74,6 @@ extern const struct hash_ops bus_message_hash_ops; int bus_message_append_string_set(sd_bus_message *m, Set *s); int bus_property_get_string_set(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error); + +int bus_creds_get_pidref(sd_bus_creds *c, PidRef *ret); +int bus_query_sender_pidref(sd_bus_message *m, PidRef *ret); |