1
/* valainterfaceregisterfunction.c generated by valac, the Vala compiler
2
* generated from valainterfaceregisterfunction.vala, do not modify */
4
/* valainterfaceregisterfunction.vala
6
* Copyright (C) 2006-2011 JĆ¼rg Billeter
7
* Copyright (C) 2006-2007 Raffaele Sandrini
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
14
* This library is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Lesser General Public License for more details.
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this library; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
* JĆ¼rg Billeter <j@bitron.ch>
25
* Raffaele Sandrini <raffaele@sandrini.ch>
29
#include <glib-object.h>
33
#include <valaccode.h>
37
#define VALA_TYPE_TYPEREGISTER_FUNCTION (vala_typeregister_function_get_type ())
38
#define VALA_TYPEREGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunction))
39
#define VALA_TYPEREGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunctionClass))
40
#define VALA_IS_TYPEREGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION))
41
#define VALA_IS_TYPEREGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPEREGISTER_FUNCTION))
42
#define VALA_TYPEREGISTER_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunctionClass))
44
typedef struct _ValaTypeRegisterFunction ValaTypeRegisterFunction;
45
typedef struct _ValaTypeRegisterFunctionClass ValaTypeRegisterFunctionClass;
46
typedef struct _ValaTypeRegisterFunctionPrivate ValaTypeRegisterFunctionPrivate;
48
#define VALA_TYPE_INTERFACE_REGISTER_FUNCTION (vala_interface_register_function_get_type ())
49
#define VALA_INTERFACE_REGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INTERFACE_REGISTER_FUNCTION, ValaInterfaceRegisterFunction))
50
#define VALA_INTERFACE_REGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INTERFACE_REGISTER_FUNCTION, ValaInterfaceRegisterFunctionClass))
51
#define VALA_IS_INTERFACE_REGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INTERFACE_REGISTER_FUNCTION))
52
#define VALA_IS_INTERFACE_REGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INTERFACE_REGISTER_FUNCTION))
53
#define VALA_INTERFACE_REGISTER_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INTERFACE_REGISTER_FUNCTION, ValaInterfaceRegisterFunctionClass))
55
typedef struct _ValaInterfaceRegisterFunction ValaInterfaceRegisterFunction;
56
typedef struct _ValaInterfaceRegisterFunctionClass ValaInterfaceRegisterFunctionClass;
57
typedef struct _ValaInterfaceRegisterFunctionPrivate ValaInterfaceRegisterFunctionPrivate;
58
#define _g_free0(var) (var = (g_free (var), NULL))
59
#define _vala_ccode_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_node_unref (var), NULL)))
60
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
61
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
63
#define VALA_TYPE_CCODE_BASE_MODULE (vala_ccode_base_module_get_type ())
64
#define VALA_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule))
65
#define VALA_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
66
#define VALA_IS_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_BASE_MODULE))
67
#define VALA_IS_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_BASE_MODULE))
68
#define VALA_CCODE_BASE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
70
typedef struct _ValaCCodeBaseModule ValaCCodeBaseModule;
71
typedef struct _ValaCCodeBaseModuleClass ValaCCodeBaseModuleClass;
73
struct _ValaTypeRegisterFunction {
74
GTypeInstance parent_instance;
75
volatile int ref_count;
76
ValaTypeRegisterFunctionPrivate * priv;
79
struct _ValaTypeRegisterFunctionClass {
80
GTypeClass parent_class;
81
void (*finalize) (ValaTypeRegisterFunction *self);
82
ValaTypeSymbol* (*get_type_declaration) (ValaTypeRegisterFunction* self);
83
gchar* (*get_type_struct_name) (ValaTypeRegisterFunction* self);
84
gchar* (*get_base_init_func_name) (ValaTypeRegisterFunction* self);
85
gchar* (*get_class_finalize_func_name) (ValaTypeRegisterFunction* self);
86
gchar* (*get_base_finalize_func_name) (ValaTypeRegisterFunction* self);
87
gchar* (*get_class_init_func_name) (ValaTypeRegisterFunction* self);
88
gchar* (*get_instance_struct_size) (ValaTypeRegisterFunction* self);
89
gchar* (*get_instance_init_func_name) (ValaTypeRegisterFunction* self);
90
gchar* (*get_parent_type_name) (ValaTypeRegisterFunction* self);
91
gchar* (*get_gtype_value_table_init_function_name) (ValaTypeRegisterFunction* self);
92
gchar* (*get_gtype_value_table_peek_pointer_function_name) (ValaTypeRegisterFunction* self);
93
gchar* (*get_gtype_value_table_free_function_name) (ValaTypeRegisterFunction* self);
94
gchar* (*get_gtype_value_table_copy_function_name) (ValaTypeRegisterFunction* self);
95
gchar* (*get_gtype_value_table_lcopy_value_function_name) (ValaTypeRegisterFunction* self);
96
gchar* (*get_gtype_value_table_collect_value_function_name) (ValaTypeRegisterFunction* self);
97
gchar* (*get_type_flags) (ValaTypeRegisterFunction* self);
98
ValaCCodeFragment* (*get_type_interface_init_declaration) (ValaTypeRegisterFunction* self);
99
void (*get_type_interface_init_statements) (ValaTypeRegisterFunction* self, ValaCCodeBlock* block, gboolean plugin);
100
ValaSymbolAccessibility (*get_accessibility) (ValaTypeRegisterFunction* self);
103
struct _ValaInterfaceRegisterFunction {
104
ValaTypeRegisterFunction parent_instance;
105
ValaInterfaceRegisterFunctionPrivate * priv;
108
struct _ValaInterfaceRegisterFunctionClass {
109
ValaTypeRegisterFunctionClass parent_class;
112
struct _ValaInterfaceRegisterFunctionPrivate {
113
ValaInterface* _interface_reference;
117
static gpointer vala_interface_register_function_parent_class = NULL;
119
gpointer vala_typeregister_function_ref (gpointer instance);
120
void vala_typeregister_function_unref (gpointer instance);
121
GParamSpec* vala_param_spec_typeregister_function (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
122
void vala_value_set_typeregister_function (GValue* value, gpointer v_object);
123
void vala_value_take_typeregister_function (GValue* value, gpointer v_object);
124
gpointer vala_value_get_typeregister_function (const GValue* value);
125
GType vala_typeregister_function_get_type (void) G_GNUC_CONST;
126
GType vala_interface_register_function_get_type (void) G_GNUC_CONST;
127
#define VALA_INTERFACE_REGISTER_FUNCTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_INTERFACE_REGISTER_FUNCTION, ValaInterfaceRegisterFunctionPrivate))
129
VALA_INTERFACE_REGISTER_FUNCTION_DUMMY_PROPERTY
131
ValaInterfaceRegisterFunction* vala_interface_register_function_new (ValaInterface* iface, ValaCodeContext* context);
132
ValaInterfaceRegisterFunction* vala_interface_register_function_construct (GType object_type, ValaInterface* iface, ValaCodeContext* context);
133
ValaTypeRegisterFunction* vala_typeregister_function_construct (GType object_type);
134
void vala_interface_register_function_set_interface_reference (ValaInterfaceRegisterFunction* self, ValaInterface* value);
135
void vala_typeregister_function_set_context (ValaTypeRegisterFunction* self, ValaCodeContext* value);
136
static ValaTypeSymbol* vala_interface_register_function_real_get_type_declaration (ValaTypeRegisterFunction* base);
137
ValaInterface* vala_interface_register_function_get_interface_reference (ValaInterfaceRegisterFunction* self);
138
static gchar* vala_interface_register_function_real_get_type_struct_name (ValaTypeRegisterFunction* base);
139
gchar* vala_ccode_base_module_get_ccode_type_name (ValaInterface* iface);
140
static gchar* vala_interface_register_function_real_get_base_init_func_name (ValaTypeRegisterFunction* base);
141
gchar* vala_ccode_base_module_get_ccode_lower_case_name (ValaCodeNode* node, const gchar* infix);
142
static gchar* vala_interface_register_function_real_get_class_finalize_func_name (ValaTypeRegisterFunction* base);
143
static gchar* vala_interface_register_function_real_get_base_finalize_func_name (ValaTypeRegisterFunction* base);
144
static gchar* vala_interface_register_function_real_get_class_init_func_name (ValaTypeRegisterFunction* base);
145
static gchar* vala_interface_register_function_real_get_instance_struct_size (ValaTypeRegisterFunction* base);
146
static gchar* vala_interface_register_function_real_get_instance_init_func_name (ValaTypeRegisterFunction* base);
147
static gchar* vala_interface_register_function_real_get_parent_type_name (ValaTypeRegisterFunction* base);
148
static ValaSymbolAccessibility vala_interface_register_function_real_get_accessibility (ValaTypeRegisterFunction* base);
149
static void vala_interface_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, ValaCCodeBlock* block, gboolean plugin);
150
gchar* vala_ccode_base_module_get_ccode_type_id (ValaCodeNode* node);
151
ValaCodeContext* vala_typeregister_function_get_context (ValaTypeRegisterFunction* self);
152
GType vala_ccode_base_module_get_type (void) G_GNUC_CONST;
153
void vala_ccode_base_module_register_dbus_info (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable);
154
static void vala_interface_register_function_finalize (ValaTypeRegisterFunction* obj);
157
ValaInterfaceRegisterFunction* vala_interface_register_function_construct (GType object_type, ValaInterface* iface, ValaCodeContext* context) {
158
ValaInterfaceRegisterFunction* self = NULL;
159
ValaInterface* _tmp0_;
160
ValaCodeContext* _tmp1_;
161
g_return_val_if_fail (iface != NULL, NULL);
162
g_return_val_if_fail (context != NULL, NULL);
163
self = (ValaInterfaceRegisterFunction*) vala_typeregister_function_construct (object_type);
165
vala_interface_register_function_set_interface_reference (self, _tmp0_);
167
vala_typeregister_function_set_context ((ValaTypeRegisterFunction*) self, _tmp1_);
172
ValaInterfaceRegisterFunction* vala_interface_register_function_new (ValaInterface* iface, ValaCodeContext* context) {
173
return vala_interface_register_function_construct (VALA_TYPE_INTERFACE_REGISTER_FUNCTION, iface, context);
177
static gpointer _vala_code_node_ref0 (gpointer self) {
178
return self ? vala_code_node_ref (self) : NULL;
182
static ValaTypeSymbol* vala_interface_register_function_real_get_type_declaration (ValaTypeRegisterFunction* base) {
183
ValaInterfaceRegisterFunction * self;
184
ValaTypeSymbol* result = NULL;
185
ValaInterface* _tmp0_;
186
ValaTypeSymbol* _tmp1_;
187
self = (ValaInterfaceRegisterFunction*) base;
188
_tmp0_ = self->priv->_interface_reference;
189
_tmp1_ = _vala_code_node_ref0 ((ValaTypeSymbol*) _tmp0_);
195
static gchar* vala_interface_register_function_real_get_type_struct_name (ValaTypeRegisterFunction* base) {
196
ValaInterfaceRegisterFunction * self;
197
gchar* result = NULL;
198
ValaInterface* _tmp0_;
199
gchar* _tmp1_ = NULL;
200
self = (ValaInterfaceRegisterFunction*) base;
201
_tmp0_ = self->priv->_interface_reference;
202
_tmp1_ = vala_ccode_base_module_get_ccode_type_name (_tmp0_);
208
static gchar* vala_interface_register_function_real_get_base_init_func_name (ValaTypeRegisterFunction* base) {
209
ValaInterfaceRegisterFunction * self;
210
gchar* result = NULL;
211
ValaInterface* _tmp0_;
212
gchar* _tmp1_ = NULL;
214
gchar* _tmp3_ = NULL;
216
self = (ValaInterfaceRegisterFunction*) base;
217
_tmp0_ = self->priv->_interface_reference;
218
_tmp1_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp0_, NULL);
220
_tmp3_ = g_strdup_printf ("%s_base_init", _tmp2_);
228
static gchar* vala_interface_register_function_real_get_class_finalize_func_name (ValaTypeRegisterFunction* base) {
229
ValaInterfaceRegisterFunction * self;
230
gchar* result = NULL;
232
self = (ValaInterfaceRegisterFunction*) base;
233
_tmp0_ = g_strdup ("NULL");
239
static gchar* vala_interface_register_function_real_get_base_finalize_func_name (ValaTypeRegisterFunction* base) {
240
ValaInterfaceRegisterFunction * self;
241
gchar* result = NULL;
243
self = (ValaInterfaceRegisterFunction*) base;
244
_tmp0_ = g_strdup ("NULL");
250
static gchar* vala_interface_register_function_real_get_class_init_func_name (ValaTypeRegisterFunction* base) {
251
ValaInterfaceRegisterFunction * self;
252
gchar* result = NULL;
254
self = (ValaInterfaceRegisterFunction*) base;
255
_tmp0_ = g_strdup ("NULL");
261
static gchar* vala_interface_register_function_real_get_instance_struct_size (ValaTypeRegisterFunction* base) {
262
ValaInterfaceRegisterFunction * self;
263
gchar* result = NULL;
265
self = (ValaInterfaceRegisterFunction*) base;
266
_tmp0_ = g_strdup ("0");
272
static gchar* vala_interface_register_function_real_get_instance_init_func_name (ValaTypeRegisterFunction* base) {
273
ValaInterfaceRegisterFunction * self;
274
gchar* result = NULL;
276
self = (ValaInterfaceRegisterFunction*) base;
277
_tmp0_ = g_strdup ("NULL");
283
static gchar* vala_interface_register_function_real_get_parent_type_name (ValaTypeRegisterFunction* base) {
284
ValaInterfaceRegisterFunction * self;
285
gchar* result = NULL;
287
self = (ValaInterfaceRegisterFunction*) base;
288
_tmp0_ = g_strdup ("G_TYPE_INTERFACE");
294
static ValaSymbolAccessibility vala_interface_register_function_real_get_accessibility (ValaTypeRegisterFunction* base) {
295
ValaInterfaceRegisterFunction * self;
296
ValaSymbolAccessibility result = 0;
297
ValaInterface* _tmp0_;
298
ValaSymbolAccessibility _tmp1_;
299
ValaSymbolAccessibility _tmp2_;
300
self = (ValaInterfaceRegisterFunction*) base;
301
_tmp0_ = self->priv->_interface_reference;
302
_tmp1_ = vala_symbol_get_access ((ValaSymbol*) _tmp0_);
309
static void vala_interface_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, ValaCCodeBlock* block, gboolean plugin) {
310
ValaInterfaceRegisterFunction * self;
311
ValaCodeContext* _tmp37_;
312
ValaCodeContext* _tmp38_;
313
ValaCodeGenerator* _tmp39_;
314
ValaCodeGenerator* _tmp40_;
315
ValaCCodeBlock* _tmp41_;
316
ValaInterface* _tmp42_;
317
self = (ValaInterfaceRegisterFunction*) base;
318
g_return_if_fail (block != NULL);
320
ValaInterface* _tmp0_;
321
ValaList* _tmp1_ = NULL;
322
ValaList* _prereq_ref_list;
326
gint _prereq_ref_size;
327
gint _prereq_ref_index;
328
_tmp0_ = self->priv->_interface_reference;
329
_tmp1_ = vala_interface_get_prerequisites (_tmp0_);
330
_prereq_ref_list = _tmp1_;
331
_tmp2_ = _prereq_ref_list;
332
_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
334
_prereq_ref_size = _tmp4_;
335
_prereq_ref_index = -1;
342
gpointer _tmp10_ = NULL;
343
ValaDataType* prereq_ref;
344
ValaDataType* _tmp11_;
345
ValaTypeSymbol* _tmp12_;
346
ValaTypeSymbol* _tmp13_;
347
ValaTypeSymbol* _tmp14_;
348
ValaTypeSymbol* prereq;
349
ValaCCodeIdentifier* _tmp15_;
350
ValaCCodeIdentifier* _tmp16_;
351
ValaCCodeFunctionCall* _tmp17_;
352
ValaCCodeFunctionCall* _tmp18_;
353
ValaCCodeFunctionCall* func;
354
ValaCCodeFunctionCall* _tmp19_;
355
ValaInterface* _tmp20_;
356
gchar* _tmp21_ = NULL;
358
gchar* _tmp23_ = NULL;
360
ValaCCodeIdentifier* _tmp25_;
361
ValaCCodeIdentifier* _tmp26_;
362
ValaCCodeFunctionCall* _tmp27_;
363
ValaTypeSymbol* _tmp28_;
364
gchar* _tmp29_ = NULL;
366
ValaCCodeIdentifier* _tmp31_;
367
ValaCCodeIdentifier* _tmp32_;
368
ValaCCodeBlock* _tmp33_;
369
ValaCCodeFunctionCall* _tmp34_;
370
ValaCCodeExpressionStatement* _tmp35_;
371
ValaCCodeExpressionStatement* _tmp36_;
372
_tmp5_ = _prereq_ref_index;
373
_prereq_ref_index = _tmp5_ + 1;
374
_tmp6_ = _prereq_ref_index;
375
_tmp7_ = _prereq_ref_size;
376
if (!(_tmp6_ < _tmp7_)) {
379
_tmp8_ = _prereq_ref_list;
380
_tmp9_ = _prereq_ref_index;
381
_tmp10_ = vala_list_get (_tmp8_, _tmp9_);
382
prereq_ref = (ValaDataType*) _tmp10_;
383
_tmp11_ = prereq_ref;
384
_tmp12_ = vala_data_type_get_data_type (_tmp11_);
386
_tmp14_ = _vala_code_node_ref0 (_tmp13_);
388
_tmp15_ = vala_ccode_identifier_new ("g_type_interface_add_prerequisite");
390
_tmp17_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp16_);
392
_vala_ccode_node_unref0 (_tmp16_);
395
_tmp20_ = self->priv->_interface_reference;
396
_tmp21_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp20_, NULL);
398
_tmp23_ = g_strdup_printf ("%s_type_id", _tmp22_);
400
_tmp25_ = vala_ccode_identifier_new (_tmp24_);
402
vala_ccode_function_call_add_argument (_tmp19_, (ValaCCodeExpression*) _tmp26_);
403
_vala_ccode_node_unref0 (_tmp26_);
408
_tmp29_ = vala_ccode_base_module_get_ccode_type_id ((ValaCodeNode*) _tmp28_);
410
_tmp31_ = vala_ccode_identifier_new (_tmp30_);
412
vala_ccode_function_call_add_argument (_tmp27_, (ValaCCodeExpression*) _tmp32_);
413
_vala_ccode_node_unref0 (_tmp32_);
417
_tmp35_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) _tmp34_);
419
vala_ccode_block_add_statement (_tmp33_, (ValaCCodeNode*) _tmp36_);
420
_vala_ccode_node_unref0 (_tmp36_);
421
_vala_ccode_node_unref0 (func);
422
_vala_code_node_unref0 (prereq);
423
_vala_code_node_unref0 (prereq_ref);
425
_vala_iterable_unref0 (_prereq_ref_list);
427
_tmp37_ = vala_typeregister_function_get_context ((ValaTypeRegisterFunction*) self);
429
_tmp39_ = vala_code_context_get_codegen (_tmp38_);
432
_tmp42_ = self->priv->_interface_reference;
433
vala_ccode_base_module_register_dbus_info (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule), _tmp41_, (ValaObjectTypeSymbol*) _tmp42_);
437
ValaInterface* vala_interface_register_function_get_interface_reference (ValaInterfaceRegisterFunction* self) {
438
ValaInterface* result;
439
ValaInterface* _tmp0_;
440
g_return_val_if_fail (self != NULL, NULL);
441
_tmp0_ = self->priv->_interface_reference;
447
void vala_interface_register_function_set_interface_reference (ValaInterfaceRegisterFunction* self, ValaInterface* value) {
448
ValaInterface* _tmp0_;
449
g_return_if_fail (self != NULL);
451
self->priv->_interface_reference = _tmp0_;
455
static void vala_interface_register_function_class_init (ValaInterfaceRegisterFunctionClass * klass) {
456
vala_interface_register_function_parent_class = g_type_class_peek_parent (klass);
457
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->finalize = vala_interface_register_function_finalize;
458
g_type_class_add_private (klass, sizeof (ValaInterfaceRegisterFunctionPrivate));
459
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_type_declaration = vala_interface_register_function_real_get_type_declaration;
460
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_type_struct_name = vala_interface_register_function_real_get_type_struct_name;
461
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_base_init_func_name = vala_interface_register_function_real_get_base_init_func_name;
462
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_class_finalize_func_name = vala_interface_register_function_real_get_class_finalize_func_name;
463
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_base_finalize_func_name = vala_interface_register_function_real_get_base_finalize_func_name;
464
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_class_init_func_name = vala_interface_register_function_real_get_class_init_func_name;
465
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_instance_struct_size = vala_interface_register_function_real_get_instance_struct_size;
466
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_instance_init_func_name = vala_interface_register_function_real_get_instance_init_func_name;
467
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_parent_type_name = vala_interface_register_function_real_get_parent_type_name;
468
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_accessibility = vala_interface_register_function_real_get_accessibility;
469
VALA_TYPEREGISTER_FUNCTION_CLASS (klass)->get_type_interface_init_statements = vala_interface_register_function_real_get_type_interface_init_statements;
473
static void vala_interface_register_function_instance_init (ValaInterfaceRegisterFunction * self) {
474
self->priv = VALA_INTERFACE_REGISTER_FUNCTION_GET_PRIVATE (self);
478
static void vala_interface_register_function_finalize (ValaTypeRegisterFunction* obj) {
479
ValaInterfaceRegisterFunction * self;
480
self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_INTERFACE_REGISTER_FUNCTION, ValaInterfaceRegisterFunction);
481
VALA_TYPEREGISTER_FUNCTION_CLASS (vala_interface_register_function_parent_class)->finalize (obj);
486
* C function to register an interface at runtime.
488
GType vala_interface_register_function_get_type (void) {
489
static volatile gsize vala_interface_register_function_type_id__volatile = 0;
490
if (g_once_init_enter (&vala_interface_register_function_type_id__volatile)) {
491
static const GTypeInfo g_define_type_info = { sizeof (ValaInterfaceRegisterFunctionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_interface_register_function_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaInterfaceRegisterFunction), 0, (GInstanceInitFunc) vala_interface_register_function_instance_init, NULL };
492
GType vala_interface_register_function_type_id;
493
vala_interface_register_function_type_id = g_type_register_static (VALA_TYPE_TYPEREGISTER_FUNCTION, "ValaInterfaceRegisterFunction", &g_define_type_info, 0);
494
g_once_init_leave (&vala_interface_register_function_type_id__volatile, vala_interface_register_function_type_id);
496
return vala_interface_register_function_type_id__volatile;