Main Page   Compound List   File List   Compound Members   File Members  

prompt.h File Reference

#include <sys/types.h>
#include <glib.h>

Go to the source code of this file.

Compounds

struct  lu_prompt

Typedefs

typedef struct lu_prompt  lu_prompt_t

Functions

typedef gboolean (lu_prompt_fn)(struct lu_prompt *prompts, int count, gpointer callback_data, struct lu_error **error)
gboolean lu_prompt_console (struct lu_prompt *prompts, int count, gpointer callback_data, struct lu_error **error)
gboolean lu_prompt_console_quiet (struct lu_prompt *prompts, int count, gpointer callback_data, struct lu_error **error)


Detailed Description


Typedef Documentation

typedef struct lu_prompt lu_prompt_t
 

The type of data passed to a prompter function. The library uses these when it needs to prompt the user for information.


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:21 2001 for libuser by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001