keywords.h revision e7cb137f32fbc7caf97b80fac152b4bd3ac242cd
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_chown(int nargs, char **args);
27int do_chmod(int nargs, char **args);
28int do_loglevel(int nargs, char **args);
29int do_device(int nargs, char **args);
30#define __MAKE_KEYWORD_ENUM__
31#define KEYWORD(symbol, flags, nargs, func) K_##symbol,
32enum {
33    K_UNKNOWN,
34#endif
35    KEYWORD(capability,  OPTION,  0, 0)
36    KEYWORD(chdir,       COMMAND, 1, do_chdir)
37    KEYWORD(chroot,      COMMAND, 1, do_chroot)
38    KEYWORD(class,       OPTION,  0, 0)
39    KEYWORD(class_start, COMMAND, 1, do_class_start)
40    KEYWORD(class_stop,  COMMAND, 1, do_class_stop)
41    KEYWORD(console,     OPTION,  0, 0)
42    KEYWORD(critical,    OPTION,  0, 0)
43    KEYWORD(disabled,    OPTION,  0, 0)
44    KEYWORD(domainname,  COMMAND, 1, do_domainname)
45    KEYWORD(exec,        COMMAND, 1, do_exec)
46    KEYWORD(export,      COMMAND, 2, do_export)
47    KEYWORD(group,       OPTION,  0, 0)
48    KEYWORD(hostname,    COMMAND, 1, do_hostname)
49    KEYWORD(ifup,        COMMAND, 1, do_ifup)
50    KEYWORD(insmod,      COMMAND, 1, do_insmod)
51    KEYWORD(import,      COMMAND, 1, do_import)
52    KEYWORD(keycodes,    OPTION,  0, 0)
53    KEYWORD(mkdir,       COMMAND, 1, do_mkdir)
54    KEYWORD(mount,       COMMAND, 3, do_mount)
55    KEYWORD(on,          SECTION, 0, 0)
56    KEYWORD(oneshot,     OPTION,  0, 0)
57    KEYWORD(onrestart,   OPTION,  0, 0)
58    KEYWORD(restart,     COMMAND, 1, do_restart)
59    KEYWORD(service,     SECTION, 0, 0)
60    KEYWORD(setenv,      OPTION,  2, 0)
61    KEYWORD(setkey,      COMMAND, 0, do_setkey)
62    KEYWORD(setprop,     COMMAND, 2, do_setprop)
63    KEYWORD(setrlimit,   COMMAND, 3, do_setrlimit)
64    KEYWORD(socket,      OPTION,  0, 0)
65    KEYWORD(start,       COMMAND, 1, do_start)
66    KEYWORD(stop,        COMMAND, 1, do_stop)
67    KEYWORD(trigger,     COMMAND, 1, do_trigger)
68    KEYWORD(symlink,     COMMAND, 1, do_symlink)
69    KEYWORD(sysclktz,    COMMAND, 1, do_sysclktz)
70    KEYWORD(user,        OPTION,  0, 0)
71    KEYWORD(write,       COMMAND, 2, do_write)
72    KEYWORD(chown,       COMMAND, 2, do_chown)
73    KEYWORD(chmod,       COMMAND, 2, do_chmod)
74    KEYWORD(loglevel,    COMMAND, 1, do_loglevel)
75    KEYWORD(device,      COMMAND, 4, do_device)
76#ifdef __MAKE_KEYWORD_ENUM__
77    KEYWORD_COUNT,
78};
79#undef __MAKE_KEYWORD_ENUM__
80#undef KEYWORD
81#endif
82
83