1
2#ifndef KEYWORD
3int do_chroot(int nargs, char **args);
4int do_chdir(int nargs, char **args);
5int do_class_start(int nargs, char **args);
6int do_class_stop(int nargs, char **args);
7int do_domainname(int nargs, char **args);
8int do_exec(int nargs, char **args);
9int do_export(int nargs, char **args);
10int do_hostname(int nargs, char **args);
11int do_ifup(int nargs, char **args);
12int do_insmod(int nargs, char **args);
13int do_import(int nargs, char **args);
14int do_mkdir(int nargs, char **args);
15int do_mount(int nargs, char **args);
16int do_restart(int nargs, char **args);
17int do_setkey(int nargs, char **args);
18int do_setprop(int nargs, char **args);
19int do_setrlimit(int nargs, char **args);
20int do_start(int nargs, char **args);
21int do_stop(int nargs, char **args);
22int do_trigger(int nargs, char **args);
23int do_symlink(int nargs, char **args);
24int do_sysclktz(int nargs, char **args);
25int do_write(int nargs, char **args);
26int do_copy(int nargs, char **args);
27int do_chown(int nargs, char **args);
28int do_chmod(int nargs, char **args);
29int do_loglevel(int nargs, char **args);
30int do_device(int nargs, char **args);
31#define __MAKE_KEYWORD_ENUM__
32#define KEYWORD(symbol, flags, nargs, func) K_##symbol,
33enum {
34    K_UNKNOWN,
35#endif
36    KEYWORD(capability,  OPTION,  0, 0)
37    KEYWORD(chdir,       COMMAND, 1, do_chdir)
38    KEYWORD(chroot,      COMMAND, 1, do_chroot)
39    KEYWORD(class,       OPTION,  0, 0)
40    KEYWORD(class_start, COMMAND, 1, do_class_start)
41    KEYWORD(class_stop,  COMMAND, 1, do_class_stop)
42    KEYWORD(console,     OPTION,  0, 0)
43    KEYWORD(critical,    OPTION,  0, 0)
44    KEYWORD(disabled,    OPTION,  0, 0)
45    KEYWORD(domainname,  COMMAND, 1, do_domainname)
46    KEYWORD(exec,        COMMAND, 1, do_exec)
47    KEYWORD(export,      COMMAND, 2, do_export)
48    KEYWORD(group,       OPTION,  0, 0)
49    KEYWORD(hostname,    COMMAND, 1, do_hostname)
50    KEYWORD(ifup,        COMMAND, 1, do_ifup)
51    KEYWORD(insmod,      COMMAND, 1, do_insmod)
52    KEYWORD(import,      COMMAND, 1, do_import)
53    KEYWORD(keycodes,    OPTION,  0, 0)
54    KEYWORD(mkdir,       COMMAND, 1, do_mkdir)
55    KEYWORD(mount,       COMMAND, 3, do_mount)
56    KEYWORD(on,          SECTION, 0, 0)
57    KEYWORD(oneshot,     OPTION,  0, 0)
58    KEYWORD(onrestart,   OPTION,  0, 0)
59    KEYWORD(restart,     COMMAND, 1, do_restart)
60    KEYWORD(service,     SECTION, 0, 0)
61    KEYWORD(setenv,      OPTION,  2, 0)
62    KEYWORD(setkey,      COMMAND, 0, do_setkey)
63    KEYWORD(setprop,     COMMAND, 2, do_setprop)
64    KEYWORD(setrlimit,   COMMAND, 3, do_setrlimit)
65    KEYWORD(socket,      OPTION,  0, 0)
66    KEYWORD(start,       COMMAND, 1, do_start)
67    KEYWORD(stop,        COMMAND, 1, do_stop)
68    KEYWORD(trigger,     COMMAND, 1, do_trigger)
69    KEYWORD(symlink,     COMMAND, 1, do_symlink)
70    KEYWORD(sysclktz,    COMMAND, 1, do_sysclktz)
71    KEYWORD(user,        OPTION,  0, 0)
72    KEYWORD(write,       COMMAND, 2, do_write)
73    KEYWORD(copy,        COMMAND, 2, do_copy)
74    KEYWORD(chown,       COMMAND, 2, do_chown)
75    KEYWORD(chmod,       COMMAND, 2, do_chmod)
76    KEYWORD(loglevel,    COMMAND, 1, do_loglevel)
77    KEYWORD(device,      COMMAND, 4, do_device)
78    KEYWORD(ioprio,      OPTION,  0, 0)
79#ifdef __MAKE_KEYWORD_ENUM__
80    KEYWORD_COUNT,
81};
82#undef __MAKE_KEYWORD_ENUM__
83#undef KEYWORD
84#endif
85
86