summaryrefslogtreecommitdiff
path: root/gobject-introspection
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-05-25 13:29:24 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-05-25 13:29:24 +0000
commitf3eeb7de302bc765f2d5f790b3523cece967dd2f (patch)
tree69d301ee4f34672f2c4bb33f6fad0b79288a5e13 /gobject-introspection
parent15989e7dfe023b28eb51ebca918db4d499ffa3a6 (diff)
downloadvala-f3eeb7de302bc765f2d5f790b3523cece967dd2f.tar.gz
Add support for [Compact] class attribute, register non-compact classes
2008-05-25 Juerg Billeter <j@bitron.ch> * vala/valaclass.vala: * vala/valainterfacewriter.vala: * gobject/valaccodeclassbinding.vala: * gobject/valaccodegenerator.vala: * gobject/valaccodememberaccessbinding.vala: * gobject/valaccodemethodbinding.vala: * gobject/valatyperegisterfunction.vala: Add support for [Compact] class attribute, register non-compact classes with GType, fixes bug 532518 * gee/hashmap.vala: * gee/hashset.vala: * gobject-introspection/gidl.vapi: * tests/classes.exp: * tests/classes.vala: * vapi/glib-2.0.vapi: Update to use compact classes where appropriate svn path=/trunk/; revision=1425
Diffstat (limited to 'gobject-introspection')
-rw-r--r--gobject-introspection/gidl.vapi43
1 files changed, 29 insertions, 14 deletions
diff --git a/gobject-introspection/gidl.vapi b/gobject-introspection/gidl.vapi
index e2bae696b..539a8a100 100644
--- a/gobject-introspection/gidl.vapi
+++ b/gobject-introspection/gidl.vapi
@@ -26,7 +26,8 @@ namespace GLib {
namespace Idl {
public List<IdlModule> parse_file (string filename) throws MarkupError;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_module_free", cheader_filename = "gidlmodule.h")]
public class IdlModule {
public string name;
@@ -56,13 +57,15 @@ namespace GLib {
FIELD,
XREF
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNode {
public IdlNodeTypeId type;
public string name;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeFunction {
public bool deprecated;
@@ -79,6 +82,7 @@ namespace GLib {
public List<IdlNodeParam> parameters;
}
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeVFunc
{
@@ -91,7 +95,8 @@ namespace GLib {
public IdlNodeParam result;
public int offset;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeSignal {
public bool deprecated;
@@ -112,7 +117,8 @@ namespace GLib {
public List<IdlNodeParam> parameters;
public IdlNodeParam result;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeBoxed {
public bool deprecated;
@@ -122,7 +128,8 @@ namespace GLib {
public List<IdlNode> members;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeEnum {
public bool deprecated;
@@ -132,7 +139,8 @@ namespace GLib {
public List<IdlNode> values;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeField {
public bool readable;
@@ -142,7 +150,8 @@ namespace GLib {
public IdlNodeType type;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeConstant {
public bool deprecated;
@@ -151,7 +160,8 @@ namespace GLib {
public string value;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeInterface {
public bool deprecated;
@@ -166,7 +176,8 @@ namespace GLib {
public List<IdlNode> members;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeParam {
public bool @in;
@@ -180,7 +191,8 @@ namespace GLib {
public IdlNodeType type;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeProperty {
public bool deprecated;
@@ -194,21 +206,24 @@ namespace GLib {
public IdlNodeType type;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeStruct {
public bool deprecated;
public List<IdlNode> members;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeUnion {
public bool deprecated;
public List<IdlNode> members;
}
-
+
+ [Compact]
[CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
public class IdlNodeType {
public bool is_pointer;