Go to the documentation of this file.
42 #define QUERY_USER_NUMSLOTS 10
63 char *resp,
size_t resp_len,
78 #if defined(ENABLE_SYSTEMD)
111 char *resp,
size_t resp_len,
bool echo
True: The user should see what is being typed, otherwise mask it.
Configuration setup for declaring what kind of information to ask a user for.
static bool query_user_SINGLE(char *prompt, size_t prompt_len, char *resp, size_t resp_len, bool echo)
A plain "make Gert happy" wrapper.
bool query_user_exec_builtin(void)
Executes a configured setup, using the built-in method for querying the user.
size_t response_len
Length the of the user response.
static bool query_user_exec(void)
Wrapper function enabling query_user_exec() if no alternative methods have been enabled.
struct _query_user query_user[]
Global variable, declared in console.c.
size_t prompt_len
Length of the prompt string.
void query_user_clear(void)
Wipes all data put into all of the query_user structs.
char * prompt
Prompt to present to the user.
char * response
The user's response.
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.