1 /* action.h -- data for recognizer actions (one or more action_items)
2 
3    Copyright 2001 Carl Worth
4 
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2, or (at your option)
8    any later version.
9 
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 */
15 
16 #ifndef ACTION_H
17 #define ACTION_H
18 
19 #include "action_item.h"
20 
21 struct action
22 {
23     int num_items;
24     action_item_t *items;
25 };
26 typedef struct action action_t;
27 
28 int action_init(action_t *action);
29 void action_deinit(action_t *action);
30 int action_add_item(action_t *action, action_item_t item);
31 char *action_str_alloc(action_t *action);
32 
33 #endif
34