diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-07 10:00:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2025-01-02 16:38:00 +0100 |
commit | 4ff3689ad2ea7aad4aa5e5428238b447baea807e (patch) | |
tree | b50e47d7edd90597843ee1760b64f3eee5855d9f /src/shared/ask-password-api.h | |
parent | ask-password-agent: send READY=1 when we established inotify watch (diff) | |
download | systemd-4ff3689ad2ea7aad4aa5e5428238b447baea807e.tar.xz systemd-4ff3689ad2ea7aad4aa5e5428238b447baea807e.zip |
ask-password-api: move 'flag_file' from function parameter into AskPasswordRequest structure
Diffstat (limited to 'src/shared/ask-password-api.h')
-rw-r--r-- | src/shared/ask-password-api.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/ask-password-api.h b/src/shared/ask-password-api.h index b3cb407e51..c8763700c8 100644 --- a/src/shared/ask-password-api.h +++ b/src/shared/ask-password-api.h @@ -26,10 +26,11 @@ typedef struct AskPasswordRequest { const char *icon; /* freedesktop icon spec name */ const char *id; /* some identifier used for this prompt for the "ask-password" protocol */ const char *credential; /* $CREDENTIALS_DIRECTORY credential name */ + const char *flag_file; /* Once this flag file disappears abort the query */ } AskPasswordRequest; -int ask_password_tty(int tty_fd, const AskPasswordRequest *req, usec_t until, AskPasswordFlags flags, const char *flag_file, char ***ret); -int ask_password_plymouth(const AskPasswordRequest *req, usec_t until, AskPasswordFlags flags, const char *flag_file, char ***ret); +int ask_password_tty(int tty_fd, const AskPasswordRequest *req, usec_t until, AskPasswordFlags flags, char ***ret); +int ask_password_plymouth(const AskPasswordRequest *req, usec_t until, AskPasswordFlags flags, char ***ret); int ask_password_agent(const AskPasswordRequest *req, usec_t until, AskPasswordFlags flag, char ***ret); int ask_password_auto(const AskPasswordRequest *req, usec_t until, AskPasswordFlags flag, char ***ret); |