From f3eeb7de302bc765f2d5f790b3523cece967dd2f Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sun, 25 May 2008 13:29:24 +0000 Subject: Add support for [Compact] class attribute, register non-compact classes 2008-05-25 Juerg Billeter * 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 --- gobject-introspection/gidl.vapi | 43 +++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'gobject-introspection/gidl.vapi') 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 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 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 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 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 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 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 members; } - + + [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] public class IdlNodeUnion { public bool deprecated; public List members; } - + + [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] public class IdlNodeType { public bool is_pointer; -- cgit v1.2.1