1 2 #ifndef KEYWORD 3 int do_chroot(int nargs, char **args); 4 int do_chdir(int nargs, char **args); 5 int do_class_start(int nargs, char **args); 6 int do_class_stop(int nargs, char **args); 7 int do_domainname(int nargs, char **args); 8 int do_exec(int nargs, char **args); 9 int do_export(int nargs, char **args); 10 int do_hostname(int nargs, char **args); 11 int do_ifup(int nargs, char **args); 12 int do_insmod(int nargs, char **args); 13 int do_import(int nargs, char **args); 14 int do_mkdir(int nargs, char **args); 15 int do_mount(int nargs, char **args); 16 int do_restart(int nargs, char **args); 17 int do_setkey(int nargs, char **args); 18 int do_setprop(int nargs, char **args); 19 int do_setrlimit(int nargs, char **args); 20 int do_start(int nargs, char **args); 21 int do_stop(int nargs, char **args); 22 int do_trigger(int nargs, char **args); 23 int do_symlink(int nargs, char **args); 24 int do_sysclktz(int nargs, char **args); 25 int do_write(int nargs, char **args); 26 int do_copy(int nargs, char **args); 27 int do_chown(int nargs, char **args); 28 int do_chmod(int nargs, char **args); 29 int do_loglevel(int nargs, char **args); 30 int do_wait(int nargs, char **args); 31 #define __MAKE_KEYWORD_ENUM__ 32 #define KEYWORD(symbol, flags, nargs, func) K_##symbol, 33 enum { 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(wait, COMMAND, 1, do_wait) 73 KEYWORD(write, COMMAND, 2, do_write) 74 KEYWORD(copy, COMMAND, 2, do_copy) 75 KEYWORD(chown, COMMAND, 2, do_chown) 76 KEYWORD(chmod, COMMAND, 2, do_chmod) 77 KEYWORD(loglevel, COMMAND, 1, do_loglevel) 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