Main Page   Compound List   File List   Compound Members   File Members  

userprmt.c File Reference

#include <libintl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include "../include/libuser/user.h"

Defines

#define _(String)   gettext(String)

Functions

gboolean lu_prompt_console (struct lu_prompt *prompts, int count, gpointer calldata, struct lu_error **error)
gboolean lu_prompt_console_quiet (struct lu_prompt *prompts, int count, gpointer calldata, struct lu_error **error)

Detailed Description


Function Documentation

gboolean lu_prompt_console ( struct lu_prompt * prompts,
int count,
gpointer calldata,
struct lu_error ** error )
 

lu_prompt_console:

Parameters:
prompts   An array of structures used to pass prompts and answers into and out of the function.
count   The length of the prompts array.
calldata   Ignored.

This function prompts the user for information, including items which have default answers supplied by the caller.

Returns:
TRUE on success, or FALSE on error.

gboolean lu_prompt_console_quiet ( struct lu_prompt * prompts,
int count,
gpointer calldata,
struct lu_error ** error )
 

lu_prompt_console_quiet:

Parameters:
prompts   An array of structures used to pass prompts and answers into and out of the function.
count   The length of the prompts array.
calldata   Ignored.

This function prompts the user for information. Items which have default answers supplied by the caller will be returned with their default values set.

Returns:
TRUE, or FALSE on error.


Generated at Wed Aug 29 13:13:22 2001 for libuser by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001