1 #ifndef KEYWORD 2 int do_bootchart_init(int nargs, char **args); 3 int do_class_start(int nargs, char **args); 4 int do_class_stop(int nargs, char **args); 5 int do_class_reset(int nargs, char **args); 6 int do_domainname(int nargs, char **args); 7 int do_enable(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_installkey(int nargs, char **args); 14 int do_mkdir(int nargs, char **args); 15 int do_mount_all(int nargs, char **args); 16 int do_mount(int nargs, char **args); 17 int do_powerctl(int nargs, char **args); 18 int do_restart(int nargs, char **args); 19 int do_restorecon(int nargs, char **args); 20 int do_restorecon_recursive(int nargs, char **args); 21 int do_rm(int nargs, char **args); 22 int do_rmdir(int nargs, char **args); 23 int do_setprop(int nargs, char **args); 24 int do_setrlimit(int nargs, char **args); 25 int do_setusercryptopolicies(int nargs, char **args); 26 int do_start(int nargs, char **args); 27 int do_stop(int nargs, char **args); 28 int do_swapon_all(int nargs, char **args); 29 int do_trigger(int nargs, char **args); 30 int do_symlink(int nargs, char **args); 31 int do_sysclktz(int nargs, char **args); 32 int do_write(int nargs, char **args); 33 int do_copy(int nargs, char **args); 34 int do_chown(int nargs, char **args); 35 int do_chmod(int nargs, char **args); 36 int do_loglevel(int nargs, char **args); 37 int do_load_persist_props(int nargs, char **args); 38 int do_load_system_props(int nargs, char **args); 39 int do_verity_load_state(int nargs, char **args); 40 int do_verity_update_state(int nargs, char **args); 41 int do_wait(int nargs, char **args); 42 #define __MAKE_KEYWORD_ENUM__ 43 #define KEYWORD(symbol, flags, nargs, func) K_##symbol, 44 enum { 45 K_UNKNOWN, 46 #endif 47 KEYWORD(bootchart_init, COMMAND, 0, do_bootchart_init) 48 KEYWORD(chmod, COMMAND, 2, do_chmod) 49 KEYWORD(chown, COMMAND, 2, do_chown) 50 KEYWORD(class, OPTION, 0, 0) 51 KEYWORD(class_reset, COMMAND, 1, do_class_reset) 52 KEYWORD(class_start, COMMAND, 1, do_class_start) 53 KEYWORD(class_stop, COMMAND, 1, do_class_stop) 54 KEYWORD(console, OPTION, 0, 0) 55 KEYWORD(copy, COMMAND, 2, do_copy) 56 KEYWORD(critical, OPTION, 0, 0) 57 KEYWORD(disabled, OPTION, 0, 0) 58 KEYWORD(domainname, COMMAND, 1, do_domainname) 59 KEYWORD(enable, COMMAND, 1, do_enable) 60 KEYWORD(exec, COMMAND, 1, do_exec) 61 KEYWORD(export, COMMAND, 2, do_export) 62 KEYWORD(group, OPTION, 0, 0) 63 KEYWORD(hostname, COMMAND, 1, do_hostname) 64 KEYWORD(ifup, COMMAND, 1, do_ifup) 65 KEYWORD(import, SECTION, 1, 0) 66 KEYWORD(insmod, COMMAND, 1, do_insmod) 67 KEYWORD(installkey, COMMAND, 1, do_installkey) 68 KEYWORD(ioprio, OPTION, 0, 0) 69 KEYWORD(keycodes, OPTION, 0, 0) 70 KEYWORD(load_system_props, COMMAND, 0, do_load_system_props) 71 KEYWORD(load_persist_props, COMMAND, 0, do_load_persist_props) 72 KEYWORD(loglevel, COMMAND, 1, do_loglevel) 73 KEYWORD(mkdir, COMMAND, 1, do_mkdir) 74 KEYWORD(mount_all, COMMAND, 1, do_mount_all) 75 KEYWORD(mount, COMMAND, 3, do_mount) 76 KEYWORD(oneshot, OPTION, 0, 0) 77 KEYWORD(onrestart, OPTION, 0, 0) 78 KEYWORD(on, SECTION, 0, 0) 79 KEYWORD(powerctl, COMMAND, 1, do_powerctl) 80 KEYWORD(restart, COMMAND, 1, do_restart) 81 KEYWORD(restorecon, COMMAND, 1, do_restorecon) 82 KEYWORD(restorecon_recursive, COMMAND, 1, do_restorecon_recursive) 83 KEYWORD(rm, COMMAND, 1, do_rm) 84 KEYWORD(rmdir, COMMAND, 1, do_rmdir) 85 KEYWORD(seclabel, OPTION, 0, 0) 86 KEYWORD(service, SECTION, 0, 0) 87 KEYWORD(setenv, OPTION, 2, 0) 88 KEYWORD(setprop, COMMAND, 2, do_setprop) 89 KEYWORD(setrlimit, COMMAND, 3, do_setrlimit) 90 KEYWORD(setusercryptopolicies, COMMAND, 1, do_setusercryptopolicies) 91 KEYWORD(socket, OPTION, 0, 0) 92 KEYWORD(start, COMMAND, 1, do_start) 93 KEYWORD(stop, COMMAND, 1, do_stop) 94 KEYWORD(swapon_all, COMMAND, 1, do_swapon_all) 95 KEYWORD(symlink, COMMAND, 1, do_symlink) 96 KEYWORD(sysclktz, COMMAND, 1, do_sysclktz) 97 KEYWORD(trigger, COMMAND, 1, do_trigger) 98 KEYWORD(user, OPTION, 0, 0) 99 KEYWORD(verity_load_state, COMMAND, 0, do_verity_load_state) 100 KEYWORD(verity_update_state, COMMAND, 0, do_verity_update_state) 101 KEYWORD(wait, COMMAND, 1, do_wait) 102 KEYWORD(write, COMMAND, 2, do_write) 103 KEYWORD(writepid, OPTION, 0, 0) 104 #ifdef __MAKE_KEYWORD_ENUM__ 105 KEYWORD_COUNT, 106 }; 107 #undef __MAKE_KEYWORD_ENUM__ 108 #undef KEYWORD 109 #endif 110