42#define QUERY_USER_NUMSLOTS 10
63 char *resp,
size_t resp_len,
77#if defined(ENABLE_SYSTEMD)
86bool query_user_exec_systemd(
void);
97 return query_user_exec_systemd();
123 char *resp,
size_t resp_len,
void query_user_clear(void)
Wipes all data put into all of the query_user structs.
bool query_user_exec_builtin(void)
Loop through configured query_user slots, using the built-in method for querying the user.
struct _query_user query_user[]
Global variable, declared in console.c.
static bool query_user_exec(void)
Wrapper function enabling query_user_exec() if no alternative methods have been enabled.
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.
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.
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.