41#define QUERY_USER_NUMSLOTS 10
73#if defined(ENABLE_SYSTEMD)
82bool query_user_exec_systemd(
void);
93 return query_user_exec_systemd();
void query_user_clear(void)
Wipes all data put into all of the query_user structs.
static bool query_user_SINGLE(char *prompt, char *resp, int resp_len, bool echo)
A plain "make Gert happy" wrapper.
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.
void query_user_add(char *prompt, char *resp, int resp_len, bool echo)
Adds an item to ask the user for.
static bool query_user_exec(void)
Wrapper function enabling query_user_exec() if no alternative methods have been enabled.
Configuration setup for declaring what kind of information to ask a user for.
char * prompt
Prompt to present to the user.
int 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.