Lines Matching refs:Action
50 typedef struct Action Action;
54 struct Action {
56 Action* next;
67 int (*func)(Action* a, int status, const char* resp);
72 static Action *action_list = 0;
73 static Action *action_last = 0;
91 static int cb_default(Action* a, int status, const char* resp) {
102 static Action *queue_action(unsigned op, const char *fmt, ...)
107 Action* a = reinterpret_cast<Action*>(calloc(1, sizeof(Action)));
135 Action *a;
142 Action *a;
149 Action *a;
162 Action *a;
196 static int cb_check(Action* a, int status, const char* resp, int invert)
239 static int cb_require(Action*a, int status, const char* resp) {
243 static int cb_reject(Action* a, int status, const char* resp) {
250 Action *a;
260 static int cb_display(Action* a, int status, const char* resp) {
271 Action *a;
278 static int cb_save(Action* a, int status, const char* resp) {
289 Action *a;
296 static int cb_do_nothing(Action*, int , const char*) {
303 Action *a = queue_action(OP_COMMAND, "reboot");
310 Action *a = queue_action(OP_COMMAND, cmd);
316 Action *a = queue_action(OP_DOWNLOAD, "");
324 Action *a = queue_action(OP_NOTICE, "");
335 Action *a;
373 die("bogus action");