diff options
author | Princeton Ferro <princetonferro@gmail.com> | 2022-02-25 19:36:47 -0500 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-26 10:32:44 +0100 |
commit | 03e74e5ecf286a43e5b6fa4ea986ae2031331245 (patch) | |
tree | bc9274e2c468445b5aa91d2d0a3cf2bf50899c3d /gobject-introspection | |
parent | 0d43276632ea0449ae8ffb768dda1859e8224df6 (diff) | |
download | vala-03e74e5ecf286a43e5b6fa4ea986ae2031331245.tar.gz |
g-i: Update gidl binding to include type hierarchy
The IdlNode* classes should be declared as subclasses of IdlNode, that
way the compiler can be sure that casting from an IdlNode is safe.
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/gidl.vapi | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/gobject-introspection/gidl.vapi b/gobject-introspection/gidl.vapi index 98b155cae..59ca3734c 100644 --- a/gobject-introspection/gidl.vapi +++ b/gobject-introspection/gidl.vapi @@ -67,7 +67,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeFunction { + public class IdlNodeFunction : IdlNode { public bool deprecated; public bool is_method; @@ -84,8 +84,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeVFunc - { + public class IdlNodeVFunc : IdlNode { public bool must_chain_up; public bool must_be_implemented; public bool must_not_be_implemented; @@ -98,7 +97,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeSignal { + public class IdlNodeSignal : IdlNode { public bool deprecated; public bool run_first; @@ -120,7 +119,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeBoxed { + public class IdlNodeBoxed : IdlNode { public bool deprecated; public string gtype_name; @@ -131,7 +130,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeEnum { + public class IdlNodeEnum : IdlNode { public bool deprecated; public string gtype_name; @@ -142,7 +141,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeField { + public class IdlNodeField : IdlNode { public bool readable; public bool writable; public int bits; @@ -153,7 +152,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeConstant { + public class IdlNodeConstant : IdlNode { public bool deprecated; public IdlNodeType type; @@ -163,7 +162,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeInterface { + public class IdlNodeInterface : IdlNode { public bool deprecated; public string gtype_name; @@ -179,7 +178,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeParam { + public class IdlNodeParam : IdlNode { public bool @in; public bool @out; public bool dipper; @@ -194,7 +193,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeProperty { + public class IdlNodeProperty : IdlNode { public bool deprecated; public string name; @@ -209,7 +208,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeStruct { + public class IdlNodeStruct : IdlNode { public bool deprecated; public List<IdlNode> members; @@ -217,7 +216,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeUnion { + public class IdlNodeUnion : IdlNode { public bool deprecated; public List<IdlNode> members; @@ -225,7 +224,7 @@ namespace GLib { [Compact] [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")] - public class IdlNodeType { + public class IdlNodeType : IdlNode { public bool is_pointer; public bool is_basic; public bool is_array; |