2 action.h - MaLa action handler
4 Copyright (C) 2004, Christian Thaeter <chth@gmx.net>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation.
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.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, contact me.
23 #include <sys/queue.h>
24 #include "mala_types.h"
27 mala_actioninit_struct
30 MalaParserFunc parser
;
31 MalaDataFactory factory
;
36 #define MALA_ACTIONS_END {NULL,NULL,NULL,NULL,NULL}
38 struct mala_action_struct
41 MalaParserFunc parser
;
42 MalaDataFactory factory
;
47 mala_childstack childs
;
48 LIST_ENTRY(mala_action_struct
) cldnode
;
50 LIST_ENTRY(mala_action_struct
) stknode
;
55 mala_action_new_actioninit (MalaActionInit init
, MalaStringBucket bucket
);
58 mala_action_free (MalaAction self
);
61 //mala_action_destroy (MalaAction self);
64 mala_action_attach (MalaAction self
);
68 mala_action_new (MalaString name
,
70 MalaParserFunc parser
,
71 MalaDataFactory factory
,
75 mala_action_get_cstr (MalaStringBucket bucket
, const char*parent
);
78 mala_action_execute (MalaAction self
, MalaStringListNode_ref pptr
, MalaEngine eng
);
86 mala_action_getname (MalaAction self
);
94 #endif /*MALA_ACTION_H*/
98 // c-file-style: "gnu"
100 // arch-tag: d8b425b7-18c1-4dc8-a19b-cdd095873e70