Commit | Line | Data |
---|---|---|
39dc458a | 1 | /* |
60de5df9 EW |
2 | * @(#)lcmd.h 3.5 %G% |
3 | */ | |
4 | ||
5 | /* | |
6 | * Copyright (c) 1983 Regents of the University of California, | |
7 | * All rights reserved. Redistribution permitted subject to | |
8 | * the terms of the Berkeley Software License Agreement. | |
39dc458a EW |
9 | */ |
10 | ||
4222244b EW |
11 | #define LCMD_NARG 20 /* maximum number of arguments */ |
12 | ||
39dc458a EW |
13 | struct lcmd_tab { |
14 | char *lc_name; | |
15 | int lc_minlen; | |
16 | int (*lc_func)(); | |
17 | struct lcmd_arg *lc_arg; | |
18 | }; | |
19 | ||
20 | struct lcmd_arg { | |
21 | char *arg_name; | |
22 | int arg_minlen; | |
855d0f8f | 23 | int arg_flags; |
39dc458a | 24 | }; |
39dc458a | 25 | |
855d0f8f EW |
26 | /* arg_flags bits */ |
27 | #define ARG_TYPE 0x0f /* type of arg */ | |
28 | #define ARG_ANY 0x00 /* any type */ | |
29 | #define ARG_NUM 0x01 /* must be a number */ | |
30 | #define ARG_STR 0x02 /* must be a string */ | |
31 | #define ARG_LIST 0x10 /* this arg can be a list */ | |
39dc458a EW |
32 | |
33 | struct lcmd_tab *lcmd_lookup(); |