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