Main Page   Compound List   File List   Compound Members   File Members  

prompt.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000,2001 Red Hat, Inc.
00003  *
00004  * This is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Library General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  */
00018 
00019 #ifndef libuser_prompt_h
00020 #define libuser_prompt_h
00021 
00024 #include <sys/types.h>
00025 #include <glib.h>
00026 
00031 typedef struct lu_prompt {
00034         const char *key;
00036         const char *prompt;
00039         gboolean visible;
00041         const char *default_value;
00043         char *value;
00045         void(*free_value)(char *);
00046 } lu_prompt_t;
00047 
00048 typedef gboolean (lu_prompt_fn)(struct lu_prompt *prompts,
00049                                 int count,
00050                                 gpointer callback_data,
00051                                 struct lu_error **error);
00052 gboolean lu_prompt_console(struct lu_prompt *prompts,
00053                            int count, gpointer callback_data,
00054                            struct lu_error **error);
00055 gboolean lu_prompt_console_quiet(struct lu_prompt *prompts,
00056                                  int count, gpointer callback_data,
00057                                  struct lu_error **error);
00058 
00059 #endif

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