Lines Matching refs:act
334 void (*func)(struct action *act))
337 struct action *act;
339 act = node_to_item(node, struct action, alist);
340 if (!strcmp(act->name, trigger)) {
341 func(act);
349 struct action *act;
351 act = node_to_item(node, struct action, alist);
352 if (!strncmp(act->name, "property:", strlen("property:"))) {
353 const char *test = act->name + strlen("property:");
360 action_add_queue_tail(act);
369 struct action *act;
371 act = node_to_item(node, struct action, alist);
372 if (!strncmp(act->name, "property:", strlen("property:"))) {
375 const char* name = act->name + strlen("property:");
382 ERROR("property name too long in trigger %s", act->name);
391 action_add_queue_tail(act);
401 struct action *act;
404 act = calloc(1, sizeof(*act));
405 act->name = name;
406 list_init(&act->commands);
411 list_add_tail(&act->commands, &cmd->clist);
413 list_add_tail(&action_list, &act->alist);
414 action_add_queue_tail(act);
417 void action_add_queue_tail(struct action *act)
419 list_add_tail(&action_queue, &act->qlist);
428 struct action *act = node_to_item(node, struct action, qlist);
430 return act;
641 struct action *act;
650 act = calloc(1, sizeof(*act));
651 act->name = args[1];
652 list_init(&act->commands);
653 list_add_tail(&action_list, &act->alist);
655 return act;
661 struct action *act = state->context;
685 list_add_tail(&act->commands, &cmd->clist);