summaryrefslogtreecommitdiff
path: root/tests/girwriter/girtest.vapigen-expected
blob: 61d438058903b2db04f40a00d9ccbc99bd80e270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
[CCode (cprefix = "GirTest", gir_namespace = "GirTest", gir_version = "1.0", lower_case_cprefix = "gir_test_")]
namespace GirTest {
	namespace Nested {
		[CCode (cheader_filename = "girtest.h", cname = "gir_test_nested_function")]
		public static void nested ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_abstract_object_test_get_type ()")]
	public abstract class AbstractObjectTest : GLib.Object {
		[CCode (has_construct_function = false)]
		protected AbstractObjectTest ();
		public abstract void internal_method (int8 param);
		public abstract void method_implicit_params ([CCode (array_length_cname = "param1_length1", array_length_pos = 1.5)] int[] param1, owned GirTest.DelegateTest param2);
		public abstract void method_int8_in (int8 param);
		public abstract void method_int8_inout (ref int8 param);
		public abstract void method_int8_out (out int8 param);
		public abstract void method_throw () throws GirTest.ErrorTest;
		public abstract void method_valist (int param, va_list vargs);
		[NoWrapper]
		public abstract void no_wrapper_method ();
		[NoWrapper]
		public abstract async void no_wrapper_method_async ();
	}
	[CCode (cheader_filename = "girtest.h", has_type_id = false)]
	[Compact]
	public class CompactClass {
		public int i;
		public string s;
		[CCode (has_construct_function = false)]
		public CompactClass ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_deprecated_class_test_get_type ()")]
	[Version (deprecated = true, deprecated_since = "0.1.2", since = "0.1.0")]
	public class DeprecatedClassTest {
		public int ref_count;
		[CCode (has_construct_function = false)]
		public DeprecatedClassTest ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_generics_object_test_get_type ()")]
	public class GenericsObjectTest : GLib.Object {
		[CCode (has_construct_function = false)]
		public GenericsObjectTest (GLib.Type g_type, GLib.BoxedCopyFunc g_dup_func, GLib.DestroyNotify g_destroy_func, GLib.Type t_type, GLib.BoxedCopyFunc t_dup_func, GLib.DestroyNotify t_destroy_func);
		public void method (GLib.Type k_type, GLib.BoxedCopyFunc k_dup_func, GLib.DestroyNotify k_destroy_func, [CCode (array_length_cname = "param_length1", array_length_pos = 4.1)] void*[] param);
		[NoAccessorMethod]
		public GLib.DestroyNotify g_destroy_func { get; construct; }
		[NoAccessorMethod]
		public GLib.BoxedCopyFunc g_dup_func { get; construct; }
		[NoAccessorMethod]
		public GLib.Type g_type { get; construct; }
		[NoAccessorMethod]
		public GLib.DestroyNotify t_destroy_func { get; construct; }
		[NoAccessorMethod]
		public GLib.BoxedCopyFunc t_dup_func { get; construct; }
		[NoAccessorMethod]
		public GLib.Type t_type { get; construct; }
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_generics_test_get_type ()")]
	public class GenericsTest {
		public int ref_count;
		[CCode (has_construct_function = false)]
		public GenericsTest (GLib.Type g_type, GLib.BoxedCopyFunc g_dup_func, GLib.DestroyNotify g_destroy_func, GLib.Type t_type, GLib.BoxedCopyFunc t_dup_func, GLib.DestroyNotify t_destroy_func, owned GirTest.DelegateTest cb);
		public void method (void* param);
		[CCode (cname = "gir_test_generics_test_new_typed", has_construct_function = false)]
		public GenericsTest.typed (GLib.Type g_type, GLib.BoxedCopyFunc g_dup_func, GLib.DestroyNotify g_destroy_func, GLib.Type t_type, GLib.BoxedCopyFunc t_dup_func, GLib.DestroyNotify t_destroy_func, owned GirTest.DelegateGenericsTest cb);
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_implemention_test_get_type ()")]
	public class ImplementionTest : GLib.Object, GirTest.InterfaceTest {
		[CCode (has_construct_function = false)]
		public ImplementionTest ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_object_test_get_type ()")]
	public class ObjectTest : GLib.Object {
		public int field;
		[CCode (array_length = false)]
		public int fixed_array_field[23];
		public int internal_field;
		public string? nullable_field;
		[CCode (has_construct_function = false)]
		public ObjectTest ();
		public void array_in ([CCode (array_length_cname = "array_length1", array_length_pos = 1.1)] int[] array);
		public void array_inout ([CCode (array_length_cname = "array_length1", array_length_pos = 1.1)] ref int[] array);
		public void array_out ([CCode (array_length_cname = "array_length1", array_length_pos = 1.1)] out int[] array);
		[CCode (array_length_pos = 0.1)]
		public int[] array_return ();
		[CCode (array_length_pos = 2.3)]
		public int[] array_return_int_in_delegate_out (int i1, out GirTest.DelegateTest d);
		[CCode (array_length_pos = 0.1)]
		public (unowned string)[] container_return ();
		public async void coroutine_async ();
		public virtual async void coroutine_method_throw (int i1, out int o1) throws GirTest.ErrorTest, GLib.Error;
		public virtual void coroutine_method_throw_finish (GLib.AsyncResult _res_, out int o1) throws GLib.Error;
		public virtual async void coroutine_virtual_async ();
		public virtual void coroutine_virtual_finish (GLib.AsyncResult _res_);
		public unowned GirTest.DelegateTest delegate_return (out void* result_target, out unowned GLib.DestroyNotify result_target_destroy_notify);
		public unowned GirTest.DelegateTest delegate_return_int_in_array_out (int i1, [CCode (array_length_cname = "a_length1", array_length_pos = 2.5)] out int[] a, out void* result_target, out unowned GLib.DestroyNotify result_target_destroy_notify);
		public static void full_inout (ref GirTest.ObjectTest obj);
		public static void full_out (out GirTest.ObjectTest obj);
		public static GirTest.ObjectTest full_return ();
		public GLib.GenericArray<weak string>? generic_array_container_return ();
		public unowned string get_some_property ();
		public void int8_in (int8 param);
		public void int8_out (out int8 param);
		public void int_in_int_in_array_out (int param1, int param2, [CCode (array_length_cname = "array_length1", array_length_pos = 3.1)] out int[] array);
		[CCode (array_length_pos = 2.1)]
		public int[] int_in_int_in_array_return (int param1, int param2);
		public virtual void internal_method_with_default_impl (int8 param);
		[CCode (cname = "gir_test_object_test_new_may_fail", has_construct_function = false)]
		public ObjectTest.may_fail (int param) throws GirTest.ErrorTest;
		public void method ();
		public virtual void method_implicit_params ([CCode (array_length_cname = "param1_length1", array_length_pos = 1.5)] int[] param1, owned GirTest.DelegateTest param2);
		public virtual void method_throw () throws GirTest.ErrorTest;
		public void method_valist (int param, va_list vargs);
		public void method_varargs (int param, ...);
		public void method_with_default (int i);
		public virtual void method_with_default_impl (int8 param);
		[CCode (cname = "gir_test_object_test_new_newv", has_construct_function = false)]
		public ObjectTest.newv (int param, ...);
		[NoWrapper]
		public virtual void no_wrapper_method ();
		[NoWrapper]
		public virtual async void no_wrapper_method_async ();
		public void none_in ();
		public static void none_inout (ref unowned GirTest.ObjectTest obj);
		public static void none_out (out unowned GirTest.ObjectTest obj);
		public static unowned GirTest.ObjectTest none_return ();
		public void set_some_property (string value);
		public void set_write_only_property (string value);
		public unowned GLib.EqualFunc simple_delegate_return ();
		public void simple_throw () throws GirTest.ErrorTest;
		public static void static_method ();
		public void string_array_out ([CCode (array_length_cname = "array_length1", array_length_pos = 1.1)] out string[] array);
		[CCode (array_length_pos = 0.1)]
		public string[] string_array_return ();
		[CCode (cname = "gir_test_object_test_new_new_valist", has_construct_function = false)]
		public ObjectTest.valist (int param, va_list vargs);
		[CCode (cname = "gir_test_object_test_new_with_int", has_construct_function = false)]
		public ObjectTest.with_int (int param);
		[NoAccessorMethod]
		public string construct_only_property { construct; }
		public string some_property { get; set construct; }
		public string write_only_property { set; }
		public virtual signal void signal_with_default_handlder (int i1);
		public signal void some_signal (int param);
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedClass", lower_case_csuffix = "namedclass", type_id = "gir_test_namedclass_get_type ()")]
	public class RenamedClass {
		public int ref_count;
		[CCode (has_construct_function = false)]
		public RenamedClass ();
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedStruct", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "named_struct", type_id = "gir_test_named_struct_get_type ()")]
	[Compact]
	public class RenamedStruct {
		public int field_name;
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_sealed_object_test_get_type ()")]
	public sealed class SealedObjectTest : GLib.Object {
		[CCode (has_construct_function = false)]
		public SealedObjectTest ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_sub_type_test_get_type ()")]
	public class SubTypeTest : GirTest.TypeTest {
		[CCode (array_length_cname = "array_field_length1")]
		public string[] array_field;
		public int array_field_length1;
		public GirTest.DelegateTest delegate_field;
		[CCode (has_construct_function = false)]
		public SubTypeTest ();
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_typetest_get_type ()")]
	public class TypeTest {
		public int ref_count;
		[CCode (has_construct_function = false)]
		public TypeTest ();
		public unowned string get_some_property ();
		public void set_some_property (string value);
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_interface_test_get_type ()")]
	public interface InterfaceTest : GLib.Object {
		public virtual async void coroutine_async ();
		public virtual void coroutine_finish (GLib.AsyncResult _res_);
		public virtual int get_property ();
		public virtual void int8_in (int8 param);
		public virtual void internal_method ();
		public virtual void method_implicit_params ([CCode (array_length_cname = "param1_length1", array_length_pos = 1.5)] int[] param1, owned GirTest.DelegateTest param2);
		[NoWrapper]
		public virtual void no_wrapper_method ();
		[NoWrapper]
		public virtual async void no_wrapper_method_async ();
		public virtual void set_property (int value);
		public static void static_method ();
		public abstract int property { get; set construct; }
		[HasEmitter]
		public signal void some_signal (int param);
	}
	[CCode (cheader_filename = "girtest.h", type_id = "gir_test_prerequisite_test_get_type ()")]
	public interface PrerequisiteTest : GirTest.InterfaceTest, GLib.Object {
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedInterface", lower_case_csuffix = "named_interface", type_id = "gir_test_named_interface_get_type ()")]
	public interface RenamedInterface : GLib.Object {
	}
	[CCode (cheader_filename = "girtest.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gir_test_boxed_struct_get_type ()")]
	public struct BoxedStruct {
		public int field_name;
		public int internal_field_name;
		public BoxedStruct ();
		public BoxedStruct.foo (int param1, int param2);
		public void inv ();
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedCompactClass", has_type_id = false)]
	public struct RenamedCompactClass {
		public weak string s;
		public int i;
		[CCode (cname = "gir_test_named_compactclass_new", has_construct_function = false, type = "GirTestNamedCompactClass*")]
		public RenamedCompactClass ();
	}
	[CCode (cheader_filename = "girtest.h", has_type_id = false)]
	public struct Struct {
		public int field_name;
		public int internal_field_name;
		public Struct ();
		public Struct.foo (int param1, int param2);
		public void inv ();
	}
	[CCode (cheader_filename = "girtest.h", cprefix = "GIR_TEST_ENUM_TEST_", type_id = "gir_test_enum_test_get_type ()")]
	public enum EnumTest {
		VALUE1,
		VALUE2,
		VALUE3
	}
	[CCode (cheader_filename = "girtest.h", cprefix = "GIR_TEST_FLAGS_TEST_", type_id = "gir_test_flags_test_get_type ()")]
	[Flags]
	public enum FlagsTest {
		VALUE1,
		VALUE2,
		VALUE3
	}
	[CCode (cheader_filename = "girtest.h", cprefix = "GIR_TEST_PLAIN_ENUM_TEST_", has_type_id = false)]
	public enum PlainEnumTest {
		VALUE1,
		VALUE2,
		VALUE3
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedBitfield", cprefix = "GIR_TEST_NAMED_BITFIELD_", type_id = "gir_test_named_bitfield_get_type ()")]
	[Flags]
	public enum RenamedBitfield {
		VALUE1
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedEnumeration", cprefix = "GIR_TEST_NAMED_ENUMERATION_", type_id = "gir_test_named_enumeration_get_type ()")]
	public enum RenamedEnumeration {
		VALUE1
	}
	[CCode (cheader_filename = "girtest.h", cprefix = "GIR_TEST_ERROR_TEST_")]
	public errordomain ErrorTest {
		FAILED,
		SMELLY,
		FISHY
	}
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedError", cprefix = "GIR_TEST_NAMED_ERROR_")]
	public errordomain RenamedError {
		FAILED
	}
	[CCode (cheader_filename = "girtest.h", has_target = false)]
	public delegate bool DelegateErrorTest () throws GirTest.ErrorTest;
	[CCode (cheader_filename = "girtest.h", instance_pos = 8.9)]
	public delegate bool DelegateGenericsTest (GLib.Type g_type, GLib.BoxedCopyFunc g_dup_func, GLib.DestroyNotify g_destroy_func, GLib.Type t_type, GLib.BoxedCopyFunc t_dup_func, GLib.DestroyNotify t_destroy_func, void* g, void* t);
	[CCode (cheader_filename = "girtest.h", instance_pos = 2.9)]
	public delegate bool DelegateTest (void* a, void* b);
	[CCode (cheader_filename = "girtest.h", cname = "GirTestNamedDelegate", has_target = false)]
	public delegate void RenamedDelegate ();
	[CCode (cheader_filename = "girtest.h", cname = "GIR_TEST_CONSTANT_NUMBER")]
	public const int CONSTANT_NUMBER;
	[CCode (cheader_filename = "girtest.h", cname = "GIR_TEST_CONSTANT_STRING")]
	public const string CONSTANT_STRING;
	[CCode (cheader_filename = "girtest.h", cname = "GIR_TEST_NAMED_CONSTANT")]
	public const int RENAMED_CONSTANT;
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedClass use_renamed_class (GirTest.RenamedClass param);
	[CCode (cheader_filename = "girtest.h")]
	public static unowned GirTest.RenamedCompactClass? use_renamed_compact_class (GirTest.RenamedCompactClass param);
	[CCode (cheader_filename = "girtest.h")]
	public static unowned GirTest.RenamedDelegate use_renamed_delegate ([CCode (delegate_target_pos = 1.5)] GirTest.RenamedDelegate param, out void* result_target);
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedEnumeration use_renamed_enumeration (GirTest.RenamedEnumeration param);
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedError use_renamed_error (GirTest.RenamedError param);
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedBitfield use_renamed_flags (GirTest.RenamedBitfield param);
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedInterface use_renamed_interface (GirTest.RenamedInterface param);
	[CCode (cheader_filename = "girtest.h")]
	public static GirTest.RenamedStruct? use_renamed_struct (GirTest.RenamedStruct param);
}