File: menu.h

package info (click to toggle)
flin 0.5.1-9.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 276 kB
  • ctags: 164
  • sloc: ansic: 1,642; makefile: 105; sh: 71
file content (30 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#if !defined(_MENU_H)
#   define _MENU_H

#include "parse.h"

#define MENU_TITLE	0
#define MENU_NOP	1
#define MENU_EXEC	2
#define MENU_SUB	3
#define MENU_EXIT	4
#define	MENU_QUIT	5
#define MENU_ARGS	6

#define MENU_OP_TITLE	"Title"
#define MENU_OP_EXEC	"Exec"
#define MENU_OP_SUB	"SubMenu"
#define MENU_OP_NOP	"Nop"
#define MENU_OP_EXIT	"Exit"
#define MENU_OP_QUIT	"Quit"
#define MENU_OP_ARGS	"Args"

#define NO_ARGS		0
#define ARGS		1
#define PROMPT		2

#define DEFAULT_PROMPT	"Enter filename"

char *define_menu(struct menu **, char *, char *, int *);

#endif