Home | History | Annotate | Download | only in init

Lines Matching refs:act

501                              void (*func)(struct action *act))
504 struct action *act;
506 act = node_to_item(node, struct action, alist);
507 if (!strcmp(act->name, trigger)) {
508 func(act);
516 struct action *act;
518 act = node_to_item(node, struct action, alist);
519 if (!strncmp(act->name, "property:", strlen("property:"))) {
520 const char *test = act->name + strlen("property:");
527 action_add_queue_tail(act);
536 struct action *act;
538 act = node_to_item(node, struct action, alist);
539 if (!strncmp(act->name, "property:", strlen("property:"))) {
542 const char* name = act->name + strlen("property:");
549 ERROR("property name too long in trigger %s", act->name);
558 action_add_queue_tail(act);
568 struct action *act;
571 act = calloc(1, sizeof(*act));
572 act->name = name;
573 list_init(&act->commands);
578 list_add_tail(&act->commands, &cmd->clist);
580 list_add_tail(&action_list, &act->alist);
581 action_add_queue_tail(act);
584 void action_add_queue_tail(struct action *act)
586 list_add_tail(&action_queue, &act->qlist);
595 struct action *act = node_to_item(node, struct action, qlist);
597 return act;
818 struct action *act;
827 act = calloc(1, sizeof(*act));
828 act->name = args[1];
829 list_init(&act->commands);
830 list_add_tail(&action_list, &act->alist);
832 return act;
838 struct action *act = state->context;
862 list_add_tail(&act->commands, &cmd->clist);