2009-03-04 11:32:55 +08:00
|
|
|
#ifndef KEYWORD
|
2014-12-05 13:45:02 +08:00
|
|
|
int do_bootchart_init(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_class_start(int nargs, char **args);
|
|
|
|
int do_class_stop(int nargs, char **args);
|
2010-12-04 08:33:31 +08:00
|
|
|
int do_class_reset(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_domainname(int nargs, char **args);
|
2014-05-03 12:14:29 +08:00
|
|
|
int do_enable(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_exec(int nargs, char **args);
|
2014-09-23 22:48:47 +08:00
|
|
|
int do_execonce(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_export(int nargs, char **args);
|
|
|
|
int do_hostname(int nargs, char **args);
|
|
|
|
int do_ifup(int nargs, char **args);
|
|
|
|
int do_insmod(int nargs, char **args);
|
|
|
|
int do_mkdir(int nargs, char **args);
|
2012-04-18 08:20:16 +08:00
|
|
|
int do_mount_all(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_mount(int nargs, char **args);
|
2013-04-19 03:20:02 +08:00
|
|
|
int do_powerctl(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_restart(int nargs, char **args);
|
2012-01-13 21:48:47 +08:00
|
|
|
int do_restorecon(int nargs, char **args);
|
2013-10-10 04:02:09 +08:00
|
|
|
int do_restorecon_recursive(int nargs, char **args);
|
2011-01-19 09:37:41 +08:00
|
|
|
int do_rm(int nargs, char **args);
|
|
|
|
int do_rmdir(int nargs, char **args);
|
2012-01-13 21:48:47 +08:00
|
|
|
int do_setcon(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_setprop(int nargs, char **args);
|
|
|
|
int do_setrlimit(int nargs, char **args);
|
|
|
|
int do_start(int nargs, char **args);
|
|
|
|
int do_stop(int nargs, char **args);
|
2013-07-10 09:42:09 +08:00
|
|
|
int do_swapon_all(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_trigger(int nargs, char **args);
|
|
|
|
int do_symlink(int nargs, char **args);
|
|
|
|
int do_sysclktz(int nargs, char **args);
|
|
|
|
int do_write(int nargs, char **args);
|
2009-08-27 07:39:25 +08:00
|
|
|
int do_copy(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
int do_chown(int nargs, char **args);
|
|
|
|
int do_chmod(int nargs, char **args);
|
|
|
|
int do_loglevel(int nargs, char **args);
|
2011-03-09 09:01:29 +08:00
|
|
|
int do_load_persist_props(int nargs, char **args);
|
2014-06-17 06:06:21 +08:00
|
|
|
int do_load_all_props(int nargs, char **args);
|
2015-02-16 19:03:34 +08:00
|
|
|
int do_verity_load_state(int nargs, char **args);
|
2015-03-19 18:00:34 +08:00
|
|
|
int do_verity_update_state(int nargs, char **args);
|
2010-04-20 08:10:24 +08:00
|
|
|
int do_wait(int nargs, char **args);
|
2009-03-04 11:32:55 +08:00
|
|
|
#define __MAKE_KEYWORD_ENUM__
|
|
|
|
#define KEYWORD(symbol, flags, nargs, func) K_##symbol,
|
|
|
|
enum {
|
|
|
|
K_UNKNOWN,
|
|
|
|
#endif
|
|
|
|
KEYWORD(capability, OPTION, 0, 0)
|
|
|
|
KEYWORD(class, OPTION, 0, 0)
|
|
|
|
KEYWORD(class_start, COMMAND, 1, do_class_start)
|
|
|
|
KEYWORD(class_stop, COMMAND, 1, do_class_stop)
|
2010-12-04 08:33:31 +08:00
|
|
|
KEYWORD(class_reset, COMMAND, 1, do_class_reset)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(console, OPTION, 0, 0)
|
|
|
|
KEYWORD(critical, OPTION, 0, 0)
|
|
|
|
KEYWORD(disabled, OPTION, 0, 0)
|
|
|
|
KEYWORD(domainname, COMMAND, 1, do_domainname)
|
2014-05-03 12:14:29 +08:00
|
|
|
KEYWORD(enable, COMMAND, 1, do_enable)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(exec, COMMAND, 1, do_exec)
|
2014-09-23 22:48:47 +08:00
|
|
|
KEYWORD(execonce, COMMAND, 1, do_execonce)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(export, COMMAND, 2, do_export)
|
|
|
|
KEYWORD(group, OPTION, 0, 0)
|
|
|
|
KEYWORD(hostname, COMMAND, 1, do_hostname)
|
|
|
|
KEYWORD(ifup, COMMAND, 1, do_ifup)
|
|
|
|
KEYWORD(insmod, COMMAND, 1, do_insmod)
|
2011-06-08 11:08:40 +08:00
|
|
|
KEYWORD(import, SECTION, 1, 0)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(keycodes, OPTION, 0, 0)
|
|
|
|
KEYWORD(mkdir, COMMAND, 1, do_mkdir)
|
2012-04-18 08:20:16 +08:00
|
|
|
KEYWORD(mount_all, COMMAND, 1, do_mount_all)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(mount, COMMAND, 3, do_mount)
|
|
|
|
KEYWORD(on, SECTION, 0, 0)
|
|
|
|
KEYWORD(oneshot, OPTION, 0, 0)
|
|
|
|
KEYWORD(onrestart, OPTION, 0, 0)
|
2013-04-19 03:20:02 +08:00
|
|
|
KEYWORD(powerctl, COMMAND, 1, do_powerctl)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(restart, COMMAND, 1, do_restart)
|
2012-01-13 21:48:47 +08:00
|
|
|
KEYWORD(restorecon, COMMAND, 1, do_restorecon)
|
2013-10-10 04:02:09 +08:00
|
|
|
KEYWORD(restorecon_recursive, COMMAND, 1, do_restorecon_recursive)
|
2011-01-19 09:37:41 +08:00
|
|
|
KEYWORD(rm, COMMAND, 1, do_rm)
|
|
|
|
KEYWORD(rmdir, COMMAND, 1, do_rmdir)
|
2012-01-13 21:48:47 +08:00
|
|
|
KEYWORD(seclabel, OPTION, 0, 0)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(service, SECTION, 0, 0)
|
2012-01-13 21:48:47 +08:00
|
|
|
KEYWORD(setcon, COMMAND, 1, do_setcon)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(setenv, OPTION, 2, 0)
|
|
|
|
KEYWORD(setprop, COMMAND, 2, do_setprop)
|
|
|
|
KEYWORD(setrlimit, COMMAND, 3, do_setrlimit)
|
|
|
|
KEYWORD(socket, OPTION, 0, 0)
|
|
|
|
KEYWORD(start, COMMAND, 1, do_start)
|
|
|
|
KEYWORD(stop, COMMAND, 1, do_stop)
|
2013-07-10 09:42:09 +08:00
|
|
|
KEYWORD(swapon_all, COMMAND, 1, do_swapon_all)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(trigger, COMMAND, 1, do_trigger)
|
|
|
|
KEYWORD(symlink, COMMAND, 1, do_symlink)
|
|
|
|
KEYWORD(sysclktz, COMMAND, 1, do_sysclktz)
|
|
|
|
KEYWORD(user, OPTION, 0, 0)
|
2015-03-21 00:45:18 +08:00
|
|
|
KEYWORD(verity_load_state, COMMAND, 1, do_verity_load_state)
|
|
|
|
KEYWORD(verity_update_state, COMMAND, 1, do_verity_update_state)
|
2010-04-20 08:10:24 +08:00
|
|
|
KEYWORD(wait, COMMAND, 1, do_wait)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(write, COMMAND, 2, do_write)
|
2009-08-27 07:39:25 +08:00
|
|
|
KEYWORD(copy, COMMAND, 2, do_copy)
|
2009-03-04 11:32:55 +08:00
|
|
|
KEYWORD(chown, COMMAND, 2, do_chown)
|
|
|
|
KEYWORD(chmod, COMMAND, 2, do_chmod)
|
|
|
|
KEYWORD(loglevel, COMMAND, 1, do_loglevel)
|
2011-03-09 09:01:29 +08:00
|
|
|
KEYWORD(load_persist_props, COMMAND, 0, do_load_persist_props)
|
2014-06-17 06:06:21 +08:00
|
|
|
KEYWORD(load_all_props, COMMAND, 0, do_load_all_props)
|
2010-02-26 06:19:50 +08:00
|
|
|
KEYWORD(ioprio, OPTION, 0, 0)
|
2014-12-05 13:45:02 +08:00
|
|
|
KEYWORD(bootchart_init, COMMAND, 0, do_bootchart_init)
|
2009-03-04 11:32:55 +08:00
|
|
|
#ifdef __MAKE_KEYWORD_ENUM__
|
|
|
|
KEYWORD_COUNT,
|
|
|
|
};
|
|
|
|
#undef __MAKE_KEYWORD_ENUM__
|
|
|
|
#undef KEYWORD
|
|
|
|
#endif
|