37#include <systemd/sd-daemon.h>
58 char *resp,
size_t resp_len,
void query_user_clear(void)
Wipes all data put into all of the query_user structs.
struct _query_user query_user[QUERY_USER_NUMSLOTS]
Global variable, declared in console.c.
void query_user_add(char *prompt, size_t prompt_len, char *resp, size_t resp_len, bool echo)
Adds an item to ask the user for.
#define QUERY_USER_NUMSLOTS
Configuration setup for declaring what kind of information to ask a user for.
char * prompt
Prompt to present to the user.
size_t prompt_len
Length of the prompt string.
size_t response_len
Length the of the user response.
char * response
The user's response.
bool echo
True: The user should see what is being typed, otherwise mask it.