]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.h
Remove and ignore generated files from the repository.
[gob-dx.git] / src / treefuncs.h
1 /* Generated by generate_treefuncs.pl from treefuncs.def!
2  * Do not edit by hand! */
3
4
5 #ifndef TREEFUNCS_H
6 #define TREEFUNCS_H
7
8 /* for ccode type */
9 enum {
10         A_CCODE,
11         AT_CCODE,
12         C_CCODE,
13         AD_CCODE,
14         H_CCODE,
15         HT_CCODE,
16         PH_CCODE,
17         CT_CCODE
18 };
19
20 /* check type */
21 enum {
22         NULL_CHECK,
23         TYPE_CHECK,
24         LT_CHECK,
25         GT_CHECK,
26         LE_CHECK,
27         GE_CHECK,
28         EQ_CHECK,
29         NE_CHECK
30 };
31
32 /* scope type */
33 enum {
34         NO_SCOPE,
35         PUBLIC_SCOPE,
36         PRIVATE_SCOPE,
37         PROTECTED_SCOPE,
38         CLASS_SCOPE
39 };
40
41 /* method type */
42 enum {
43         REGULAR_METHOD,
44         INIT_METHOD,
45         CLASS_INIT_METHOD,
46         CONSTRUCTOR_METHOD,
47         DISPOSE_METHOD,
48         FINALIZE_METHOD,
49         VIRTUAL_METHOD,
50         SIGNAL_LAST_METHOD,
51         SIGNAL_FIRST_METHOD,
52         OVERRIDE_METHOD
53 };
54
55
56
57 typedef long NodeType;
58 enum {
59         CLASS_NODE,
60         TYPE_NODE,
61         CCODE_NODE,
62         CHECK_NODE,
63         FUNCARG_NODE,
64         ARGUMENT_NODE,
65         PROPERTY_NODE,
66         METHOD_NODE,
67         VARIABLE_NODE,
68         ENUMDEF_NODE,
69         ENUMVALUE_NODE,
70         FLAGS_NODE,
71         ERROR_NODE,
72         LAST_NODE_TYPE
73 };
74
75 typedef union _Node Node;
76 typedef struct _Class Class;
77 typedef struct _Type Type;
78 typedef struct _CCode CCode;
79 typedef struct _Check Check;
80 typedef struct _FuncArg FuncArg;
81 typedef struct _Argument Argument;
82 typedef struct _Property Property;
83 typedef struct _Method Method;
84 typedef struct _Variable Variable;
85 typedef struct _EnumDef EnumDef;
86 typedef struct _EnumValue EnumValue;
87 typedef struct _Flags Flags;
88 typedef struct _Error Error;
89
90
91 struct _Argument {
92         NodeType type;
93         char * gtktype;
94         Type * atype;
95         GList * flags;
96         char * name;
97         char * get;
98         int get_line;
99         char * set;
100         int set_line;
101         int line_no;
102 };
103
104 struct _CCode {
105         NodeType type;
106         int cctype;
107         char * cbuf;
108         int line_no;
109 };
110
111 struct _Check {
112         NodeType type;
113         int chtype;
114         char * number;
115 };
116
117 struct _Class {
118         NodeType type;
119         char * otype;
120         char * ptype;
121         char * bonobo_object_class;
122         gboolean glade_xml;
123         char * chunk_size;
124         GList * interfaces;
125         GList * nodes;
126         gboolean abstract;
127 };
128
129 struct _EnumDef {
130         NodeType type;
131         char * etype;
132         char * prefix;
133         GList * values;
134 };
135
136 struct _EnumValue {
137         NodeType type;
138         char * name;
139         char * value;
140 };
141
142 struct _Error {
143         NodeType type;
144         char * etype;
145         char * prefix;
146         GList * values;
147 };
148
149 struct _Flags {
150         NodeType type;
151         char * ftype;
152         char * prefix;
153         GList * values;
154 };
155
156 struct _FuncArg {
157         NodeType type;
158         Type * atype;
159         char * name;
160         GList * checks;
161 };
162
163 struct _Method {
164         NodeType type;
165         int scope;
166         int method;
167         Type * mtype;
168         char * otype;
169         GList * gtktypes;
170         GList * flags;
171         char * signal_name;
172         char * id;
173         GList * args;
174         char * funcattrs;
175         char * onerror;
176         char * defreturn;
177         char * cbuf;
178         int line_no;
179         int ccode_line;
180         gboolean vararg;
181         int unique_id;
182         gboolean bonobo_object_func;
183         char * interface;
184 };
185
186 struct _Property {
187         NodeType type;
188         char * gtktype;
189         Type * ptype;
190         GList * flags;
191         char * name;
192         char * canonical_name;
193         char * nick;
194         char * blurb;
195         char * minimum;
196         char * maximum;
197         char * default_value;
198         char * extra_gtktype;
199         gboolean override;
200         gboolean link;
201         gboolean export;
202         char * get;
203         int get_line;
204         char * set;
205         int set_line;
206         int line_no;
207 };
208
209 struct _Type {
210         NodeType type;
211         char * name;
212         char * pointer;
213         char * postfix;
214 };
215
216 struct _Variable {
217         NodeType type;
218         int scope;
219         Type * vtype;
220         gboolean glade_widget;
221         char * id;
222         int line_no;
223         gboolean destructor_unref;
224         char * destructor;
225         int destructor_line;
226         gboolean destructor_simple;
227         char * initializer;
228         int initializer_line;
229         gboolean initializer_simple;
230 };
231
232 union _Node {
233         NodeType type;
234         Argument argument;
235         CCode ccode;
236         Check check;
237         Class class;
238         EnumDef enumdef;
239         EnumValue enumvalue;
240         Error error;
241         Flags flags;
242         FuncArg funcarg;
243         Method method;
244         Property property;
245         Type _type;
246         Variable variable;
247 };
248
249
250 /* General copy/free functions */
251 Node * node_copy (Node *node);
252 void node_free (Node *node);
253
254 GList * node_list_copy (GList *nodes);
255 void node_list_free (GList *nodes);
256
257 /* Node new/set functions */
258 Node * node_new (NodeType type, ...);
259 void node_set (Node *node, ...);
260
261
262 #endif /* TREEFUNCS_H */