diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-09 17:51:25 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-09 17:51:25 -0800 |
commit | 5ae090ed949cea9d1e7ab1552b455a229f8f9757 (patch) | |
tree | 555f686d531f29f4907d80655e7b0a7e69f2a180 /init/init.h | |
parent | 35237d135807af84bf9b0e5b8d7f8633e58db6f5 (diff) | |
download | system_core-5ae090ed949cea9d1e7ab1552b455a229f8f9757.zip system_core-5ae090ed949cea9d1e7ab1552b455a229f8f9757.tar.gz system_core-5ae090ed949cea9d1e7ab1552b455a229f8f9757.tar.bz2 |
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'init/init.h')
-rw-r--r-- | init/init.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init/init.h b/init/init.h index 4ff0c69..b686869 100644 --- a/init/init.h +++ b/init/init.h @@ -139,12 +139,19 @@ struct service { int nargs; char *args[1]; struct action onrestart; /* Actions to execute on restart. */ + + /* keycodes for triggering this service via /dev/keychord */ + int *keycodes; + int nkeycodes; + int keychord_id; }; int parse_config_file(const char *fn); struct service *service_find_by_name(const char *name); struct service *service_find_by_pid(pid_t pid); +struct service *service_find_by_keychord(int keychord_id); +void service_for_each(void (*func)(struct service *svc)); void service_for_each_class(const char *classname, void (*func)(struct service *svc)); void service_for_each_flags(unsigned matchflags, |