Lines Matching refs:act
505 void (*func)(struct action *act))
508 struct action *act;
510 act = node_to_item(node, struct action, alist);
511 if (!strcmp(act->name, trigger)) {
512 func(act);
520 struct action *act;
522 act = node_to_item(node, struct action, alist);
523 if (!strncmp(act->name, "property:", strlen("property:"))) {
524 const char *test = act->name + strlen("property:");
531 action_add_queue_tail(act);
540 struct action *act;
542 act = node_to_item(node, struct action, alist);
543 if (!strncmp(act->name, "property:", strlen("property:"))) {
546 const char* name = act->name + strlen("property:");
553 ERROR("property name too long in trigger %s", act->name);
561 action_add_queue_tail(act);
571 struct action *act;
574 act = calloc(1, sizeof(*act));
575 act->name = name;
576 list_init(&act->commands);
577 list_init(&act->qlist);
582 list_add_tail(&act->commands, &cmd->clist);
584 list_add_tail(&action_list, &act->alist);
585 action_add_queue_tail(act);
588 void action_add_queue_tail(struct action *act)
590 if (list_empty(&act->qlist)) {
591 list_add_tail(&action_queue, &act->qlist);
601 struct action *act = node_to_item(node, struct action, qlist);
604 return act;
823 struct action *act;
832 act = calloc(1, sizeof(*act));
833 act->name = args[1];
834 list_init(&act->commands);
835 list_init(&act->qlist);
836 list_add_tail(&action_list, &act->alist);
838 return act;
844 struct action *act = state->context;
868 list_add_tail(&act->commands, &cmd->clist);