diff options
author | Elliott Hughes <enh@google.com> | 2015-02-03 00:22:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-03 00:22:26 +0000 |
commit | 46adfa69b689bc9f9e15c87275839f233a404582 (patch) | |
tree | 381db0232c00e524127d236191a5d13c1df2e4a7 /init/init.h | |
parent | a73774e62e09c8e27039d3f8a5f1f842a0df740a (diff) | |
parent | 0b41512a2ea3d5fbb2b82841557a96417398c398 (diff) | |
download | system_core-46adfa69b689bc9f9e15c87275839f233a404582.zip system_core-46adfa69b689bc9f9e15c87275839f233a404582.tar.gz system_core-46adfa69b689bc9f9e15c87275839f233a404582.tar.bz2 |
Merge "init: Add support "&&" operator in property triggers"
Diffstat (limited to 'init/init.h')
-rw-r--r-- | init/init.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/init/init.h b/init/init.h index a7615a3..e03bd53 100644 --- a/init/init.h +++ b/init/init.h @@ -37,6 +37,11 @@ struct command char *args[1]; }; +struct trigger { + struct listnode nlist; + const char *name; +}; + struct action { /* node in list of all actions */ struct listnode alist; @@ -46,12 +51,15 @@ struct action { struct listnode tlist; unsigned hash; - const char *name; + /* list of actions which triggers the commands*/ + struct listnode triggers; struct listnode commands; struct command *current; }; +void build_triggers_string(char *name_str, int length, struct action *cur_action); + struct socketinfo { struct socketinfo *next; const char *name; |