4556604 [rkeene@sledge /home/rkeene/devel/dact]$ cat -n ui.h
 1 /*
 2  * Copyright (C) 2001, 2002, and 2003  Roy Keene
 3  *
 4  * This program is free software; you can redistribute it and/or
 5  * modify it under the terms of the GNU General Public License
 6  * as published by the Free Software Foundation; either version 2
 7  * of the License, or (at your option) any later version.
 8  *
 9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  *      email: dact@rkeene.org
19  */
20 
21 #ifndef _DACT_UI_H
22 #define _DACT_UI_H
23 
24 
25 
26 #define DACT_UI_MANIP_SET   0
27 #define DACT_UI_MANIP_GET   1
28 
29 
30 
31 #define DACT_UI_OPT_COLOR   0
32 #define DACT_UI_OPT_LEVEL   1
33 #define DACT_UI_OPT_FILEBLKS    2
34 #define DACT_UI_OPT_PERCENT 3
35 #define DACT_UI_OPT_PASSSTDIN   4
36 
37 #define DACT_UI_LVL_ALL     0
38 #define DACT_UI_LVL_GEN     1
39 #define DACT_UI_LVL_SPEC        2
40 #define DACT_UI_LVL_DEBUG   3
41 #define DACT_UI_LVL_VSPEC   6
42 
43 
44 void dact_ui_percentdone(int percent);
45 void dact_ui_incrblkcnt(int n);
46 void dact_ui_init(void);
47 int32_t dact_ui_optmanip(int action, int opt, int32_t val);
48 int32_t dact_ui_getopt(int opt);
49 int dact_ui_setopt(int opt, int32_t val);
50 void dact_ui_status(int level, const char *status);
51 void dact_ui_setup(uint32_t blocks);
52 void dact_ui_update(void);
53 void dact_ui_deinit(void);
54 void dact_ui_status_append(int level, const char *status);
55 char *dact_ui_getuserinput(char *prompt, unsigned int n, int password);
56 
57 #endif
4556605 [rkeene@sledge /home/rkeene/devel/dact]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-04-04 07:01:54