]> git.draconx.ca Git - gob-dx.git/blobdiff - src/treefuncs.h
Remove and ignore generated files from the repository.
[gob-dx.git] / src / treefuncs.h
index f7ba204bb362ef3376e7fbeafe915ae13a296433..325eb98fabe74189a42cf55b1d42a4306b1fed30 100644 (file)
@@ -10,9 +10,11 @@ enum {
        A_CCODE,
        AT_CCODE,
        C_CCODE,
+       AD_CCODE,
        H_CCODE,
        HT_CCODE,
-       PH_CCODE
+       PH_CCODE,
+       CT_CCODE
 };
 
 /* check type */
@@ -41,6 +43,9 @@ enum {
        REGULAR_METHOD,
        INIT_METHOD,
        CLASS_INIT_METHOD,
+       CONSTRUCTOR_METHOD,
+       DISPOSE_METHOD,
+       FINALIZE_METHOD,
        VIRTUAL_METHOD,
        SIGNAL_LAST_METHOD,
        SIGNAL_FIRST_METHOD,
@@ -60,6 +65,10 @@ enum {
        PROPERTY_NODE,
        METHOD_NODE,
        VARIABLE_NODE,
+       ENUMDEF_NODE,
+       ENUMVALUE_NODE,
+       FLAGS_NODE,
+       ERROR_NODE,
        LAST_NODE_TYPE
 };
 
@@ -73,6 +82,10 @@ typedef struct _Argument Argument;
 typedef struct _Property Property;
 typedef struct _Method Method;
 typedef struct _Variable Variable;
+typedef struct _EnumDef EnumDef;
+typedef struct _EnumValue EnumValue;
+typedef struct _Flags Flags;
+typedef struct _Error Error;
 
 
 struct _Argument {
@@ -105,9 +118,39 @@ struct _Class {
        NodeType type;
        char * otype;
        char * ptype;
-       char * bonobo_x_class;
+       char * bonobo_object_class;
+       gboolean glade_xml;
        char * chunk_size;
+       GList * interfaces;
        GList * nodes;
+       gboolean abstract;
+};
+
+struct _EnumDef {
+       NodeType type;
+       char * etype;
+       char * prefix;
+       GList * values;
+};
+
+struct _EnumValue {
+       NodeType type;
+       char * name;
+       char * value;
+};
+
+struct _Error {
+       NodeType type;
+       char * etype;
+       char * prefix;
+       GList * values;
+};
+
+struct _Flags {
+       NodeType type;
+       char * ftype;
+       char * prefix;
+       GList * values;
 };
 
 struct _FuncArg {
@@ -125,8 +168,10 @@ struct _Method {
        char * otype;
        GList * gtktypes;
        GList * flags;
+       char * signal_name;
        char * id;
        GList * args;
+       char * funcattrs;
        char * onerror;
        char * defreturn;
        char * cbuf;
@@ -134,7 +179,8 @@ struct _Method {
        int ccode_line;
        gboolean vararg;
        int unique_id;
-       gboolean bonobo_x_func;
+       gboolean bonobo_object_func;
+       char * interface;
 };
 
 struct _Property {
@@ -143,12 +189,14 @@ struct _Property {
        Type * ptype;
        GList * flags;
        char * name;
+       char * canonical_name;
        char * nick;
        char * blurb;
        char * minimum;
        char * maximum;
        char * default_value;
        char * extra_gtktype;
+       gboolean override;
        gboolean link;
        gboolean export;
        char * get;
@@ -169,6 +217,7 @@ struct _Variable {
        NodeType type;
        int scope;
        Type * vtype;
+       gboolean glade_widget;
        char * id;
        int line_no;
        gboolean destructor_unref;
@@ -177,6 +226,7 @@ struct _Variable {
        gboolean destructor_simple;
        char * initializer;
        int initializer_line;
+       gboolean initializer_simple;
 };
 
 union _Node {
@@ -185,6 +235,10 @@ union _Node {
        CCode ccode;
        Check check;
        Class class;
+       EnumDef enumdef;
+       EnumValue enumvalue;
+       Error error;
+       Flags flags;
        FuncArg funcarg;
        Method method;
        Property property;