~ubuntu-branches/ubuntu/trusty/vala/trusty

« back to all changes in this revision

Viewing changes to codegen/valaclassregisterfunction.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-01-18 09:51:15 UTC
  • mfrom: (1.5.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20110118095115-r2jr7c63lr0jzj0y
Tags: 0.11.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
#define _vala_ccode_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_node_unref (var), NULL)))
59
59
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
60
60
 
 
61
#define VALA_TYPE_CCODE_BASE_MODULE (vala_ccode_base_module_get_type ())
 
62
#define VALA_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule))
 
63
#define VALA_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
 
64
#define VALA_IS_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_BASE_MODULE))
 
65
#define VALA_IS_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_BASE_MODULE))
 
66
#define VALA_CCODE_BASE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
 
67
 
 
68
typedef struct _ValaCCodeBaseModule ValaCCodeBaseModule;
 
69
typedef struct _ValaCCodeBaseModuleClass ValaCCodeBaseModuleClass;
 
70
 
61
71
struct _ValaTypeRegisterFunction {
62
72
        GTypeInstance parent_instance;
63
73
        volatile int ref_count;
84
94
        gchar* (*get_gtype_value_table_collect_value_function_name) (ValaTypeRegisterFunction* self);
85
95
        gchar* (*get_type_flags) (ValaTypeRegisterFunction* self);
86
96
        ValaCCodeFragment* (*get_type_interface_init_declaration) (ValaTypeRegisterFunction* self);
87
 
        ValaCCodeFragment* (*get_type_interface_init_statements) (ValaTypeRegisterFunction* self, gboolean plugin);
 
97
        void (*get_type_interface_init_statements) (ValaTypeRegisterFunction* self, ValaCCodeBlock* block, gboolean plugin);
88
98
        ValaSymbolAccessibility (*get_accessibility) (ValaTypeRegisterFunction* self);
89
99
};
90
100
 
141
151
static gchar* vala_class_register_function_real_get_gtype_value_table_collect_value_function_name (ValaTypeRegisterFunction* base);
142
152
static gchar* vala_class_register_function_real_get_gtype_value_table_lcopy_value_function_name (ValaTypeRegisterFunction* base);
143
153
static ValaCCodeFragment* vala_class_register_function_real_get_type_interface_init_declaration (ValaTypeRegisterFunction* base);
144
 
static ValaCCodeFragment* vala_class_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, gboolean plugin);
 
154
static void vala_class_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, ValaCCodeBlock* block, gboolean plugin);
 
155
GType vala_ccode_base_module_get_type (void) G_GNUC_CONST;
 
156
void vala_ccode_base_module_register_dbus_info (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable);
145
157
static void vala_class_register_function_finalize (ValaTypeRegisterFunction* obj);
146
158
 
147
159
 
688
700
}
689
701
 
690
702
 
691
 
static ValaCCodeFragment* vala_class_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, gboolean plugin) {
 
703
static void vala_class_register_function_real_get_type_interface_init_statements (ValaTypeRegisterFunction* base, ValaCCodeBlock* block, gboolean plugin) {
692
704
        ValaClassRegisterFunction * self;
693
 
        ValaCCodeFragment* result = NULL;
694
 
        ValaCCodeFragment* _tmp0_ = NULL;
695
 
        ValaCCodeFragment* frag;
 
705
        ValaCodeContext* _tmp52_ = NULL;
 
706
        ValaCodeGenerator* _tmp53_ = NULL;
696
707
        self = (ValaClassRegisterFunction*) base;
697
 
        _tmp0_ = vala_ccode_fragment_new ();
698
 
        frag = _tmp0_;
 
708
        g_return_if_fail (block != NULL);
699
709
        {
700
 
                ValaList* _tmp1_ = NULL;
 
710
                ValaList* _tmp0_ = NULL;
701
711
                ValaList* _base_type_list;
702
 
                gint _tmp2_;
 
712
                gint _tmp1_;
703
713
                gint _base_type_size;
704
714
                gint _base_type_index;
705
 
                _tmp1_ = vala_class_get_base_types (self->priv->_class_reference);
706
 
                _base_type_list = _tmp1_;
707
 
                _tmp2_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
708
 
                _base_type_size = _tmp2_;
 
715
                _tmp0_ = vala_class_get_base_types (self->priv->_class_reference);
 
716
                _base_type_list = _tmp0_;
 
717
                _tmp1_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
 
718
                _base_type_size = _tmp1_;
709
719
                _base_type_index = -1;
710
720
                while (TRUE) {
711
 
                        gpointer _tmp3_ = NULL;
 
721
                        gpointer _tmp2_ = NULL;
712
722
                        ValaDataType* base_type;
 
723
                        ValaTypeSymbol* _tmp3_ = NULL;
713
724
                        ValaTypeSymbol* _tmp4_ = NULL;
714
 
                        ValaTypeSymbol* _tmp5_ = NULL;
715
 
                        ValaInterface* _tmp6_;
 
725
                        ValaInterface* _tmp5_;
716
726
                        ValaInterface* iface;
717
 
                        gchar* _tmp7_ = NULL;
718
 
                        gchar* _tmp8_;
719
 
                        gchar* _tmp9_ = NULL;
720
 
                        gchar* _tmp10_;
 
727
                        gchar* _tmp6_ = NULL;
 
728
                        gchar* _tmp7_;
 
729
                        gchar* _tmp8_ = NULL;
 
730
                        gchar* _tmp9_;
721
731
                        gchar* iface_info_name;
722
732
                        _base_type_index = _base_type_index + 1;
723
733
                        if (!(_base_type_index < _base_type_size)) {
724
734
                                break;
725
735
                        }
726
 
                        _tmp3_ = vala_list_get (_base_type_list, _base_type_index);
727
 
                        base_type = (ValaDataType*) _tmp3_;
728
 
                        _tmp4_ = vala_data_type_get_data_type (base_type);
729
 
                        if (!VALA_IS_INTERFACE (_tmp4_)) {
 
736
                        _tmp2_ = vala_list_get (_base_type_list, _base_type_index);
 
737
                        base_type = (ValaDataType*) _tmp2_;
 
738
                        _tmp3_ = vala_data_type_get_data_type (base_type);
 
739
                        if (!VALA_IS_INTERFACE (_tmp3_)) {
730
740
                                _vala_code_node_unref0 (base_type);
731
741
                                continue;
732
742
                        }
733
 
                        _tmp5_ = vala_data_type_get_data_type (base_type);
734
 
                        _tmp6_ = _vala_code_node_ref0 (VALA_INTERFACE (_tmp5_));
735
 
                        iface = _tmp6_;
736
 
                        _tmp7_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) iface, NULL);
737
 
                        _tmp8_ = _tmp7_;
738
 
                        _tmp9_ = g_strdup_printf ("%s_info", _tmp8_);
739
 
                        iface_info_name = (_tmp10_ = _tmp9_, _g_free0 (_tmp8_), _tmp10_);
 
743
                        _tmp4_ = vala_data_type_get_data_type (base_type);
 
744
                        _tmp5_ = _vala_code_node_ref0 (VALA_INTERFACE (_tmp4_));
 
745
                        iface = _tmp5_;
 
746
                        _tmp6_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) iface, NULL);
 
747
                        _tmp7_ = _tmp6_;
 
748
                        _tmp8_ = g_strdup_printf ("%s_info", _tmp7_);
 
749
                        iface_info_name = (_tmp9_ = _tmp8_, _g_free0 (_tmp7_), _tmp9_);
740
750
                        if (!plugin) {
741
 
                                ValaCCodeIdentifier* _tmp11_ = NULL;
742
 
                                ValaCCodeIdentifier* _tmp12_;
743
 
                                ValaCCodeFunctionCall* _tmp13_ = NULL;
744
 
                                ValaCCodeFunctionCall* _tmp14_;
 
751
                                ValaCCodeIdentifier* _tmp10_ = NULL;
 
752
                                ValaCCodeIdentifier* _tmp11_;
 
753
                                ValaCCodeFunctionCall* _tmp12_ = NULL;
 
754
                                ValaCCodeFunctionCall* _tmp13_;
745
755
                                ValaCCodeFunctionCall* reg_call;
746
 
                                gchar* _tmp15_ = NULL;
747
 
                                gchar* _tmp16_;
748
 
                                gchar* _tmp17_ = NULL;
749
 
                                gchar* _tmp18_;
750
 
                                ValaCCodeIdentifier* _tmp19_ = NULL;
751
 
                                ValaCCodeIdentifier* _tmp20_;
752
 
                                gchar* _tmp21_ = NULL;
753
 
                                gchar* _tmp22_;
754
 
                                ValaCCodeIdentifier* _tmp23_ = NULL;
755
 
                                ValaCCodeIdentifier* _tmp24_;
756
 
                                gchar* _tmp25_ = NULL;
757
 
                                gchar* _tmp26_;
758
 
                                ValaCCodeIdentifier* _tmp27_ = NULL;
759
 
                                ValaCCodeIdentifier* _tmp28_;
760
 
                                ValaCCodeExpressionStatement* _tmp29_ = NULL;
761
 
                                ValaCCodeExpressionStatement* _tmp30_;
762
 
                                _tmp11_ = vala_ccode_identifier_new ("g_type_add_interface_static");
763
 
                                _tmp12_ = _tmp11_;
764
 
                                _tmp13_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp12_);
765
 
                                reg_call = (_tmp14_ = _tmp13_, _vala_ccode_node_unref0 (_tmp12_), _tmp14_);
766
 
                                _tmp15_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self->priv->_class_reference, NULL);
767
 
                                _tmp16_ = _tmp15_;
768
 
                                _tmp17_ = g_strdup_printf ("%s_type_id", _tmp16_);
769
 
                                _tmp18_ = _tmp17_;
770
 
                                _tmp19_ = vala_ccode_identifier_new (_tmp18_);
771
 
                                _tmp20_ = _tmp19_;
772
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp20_);
773
 
                                _vala_ccode_node_unref0 (_tmp20_);
774
 
                                _g_free0 (_tmp18_);
775
 
                                _g_free0 (_tmp16_);
776
 
                                _tmp21_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) iface);
777
 
                                _tmp22_ = _tmp21_;
778
 
                                _tmp23_ = vala_ccode_identifier_new (_tmp22_);
779
 
                                _tmp24_ = _tmp23_;
780
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp24_);
781
 
                                _vala_ccode_node_unref0 (_tmp24_);
782
 
                                _g_free0 (_tmp22_);
783
 
                                _tmp25_ = g_strdup_printf ("&%s", iface_info_name);
784
 
                                _tmp26_ = _tmp25_;
785
 
                                _tmp27_ = vala_ccode_identifier_new (_tmp26_);
786
 
                                _tmp28_ = _tmp27_;
787
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp28_);
788
 
                                _vala_ccode_node_unref0 (_tmp28_);
789
 
                                _g_free0 (_tmp26_);
790
 
                                _tmp29_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) reg_call);
791
 
                                _tmp30_ = _tmp29_;
792
 
                                vala_ccode_fragment_append (frag, (ValaCCodeNode*) _tmp30_);
793
 
                                _vala_ccode_node_unref0 (_tmp30_);
 
756
                                gchar* _tmp14_ = NULL;
 
757
                                gchar* _tmp15_;
 
758
                                gchar* _tmp16_ = NULL;
 
759
                                gchar* _tmp17_;
 
760
                                ValaCCodeIdentifier* _tmp18_ = NULL;
 
761
                                ValaCCodeIdentifier* _tmp19_;
 
762
                                gchar* _tmp20_ = NULL;
 
763
                                gchar* _tmp21_;
 
764
                                ValaCCodeIdentifier* _tmp22_ = NULL;
 
765
                                ValaCCodeIdentifier* _tmp23_;
 
766
                                gchar* _tmp24_ = NULL;
 
767
                                gchar* _tmp25_;
 
768
                                ValaCCodeIdentifier* _tmp26_ = NULL;
 
769
                                ValaCCodeIdentifier* _tmp27_;
 
770
                                ValaCCodeExpressionStatement* _tmp28_ = NULL;
 
771
                                ValaCCodeExpressionStatement* _tmp29_;
 
772
                                _tmp10_ = vala_ccode_identifier_new ("g_type_add_interface_static");
 
773
                                _tmp11_ = _tmp10_;
 
774
                                _tmp12_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp11_);
 
775
                                reg_call = (_tmp13_ = _tmp12_, _vala_ccode_node_unref0 (_tmp11_), _tmp13_);
 
776
                                _tmp14_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self->priv->_class_reference, NULL);
 
777
                                _tmp15_ = _tmp14_;
 
778
                                _tmp16_ = g_strdup_printf ("%s_type_id", _tmp15_);
 
779
                                _tmp17_ = _tmp16_;
 
780
                                _tmp18_ = vala_ccode_identifier_new (_tmp17_);
 
781
                                _tmp19_ = _tmp18_;
 
782
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp19_);
 
783
                                _vala_ccode_node_unref0 (_tmp19_);
 
784
                                _g_free0 (_tmp17_);
 
785
                                _g_free0 (_tmp15_);
 
786
                                _tmp20_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) iface);
 
787
                                _tmp21_ = _tmp20_;
 
788
                                _tmp22_ = vala_ccode_identifier_new (_tmp21_);
 
789
                                _tmp23_ = _tmp22_;
 
790
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp23_);
 
791
                                _vala_ccode_node_unref0 (_tmp23_);
 
792
                                _g_free0 (_tmp21_);
 
793
                                _tmp24_ = g_strdup_printf ("&%s", iface_info_name);
 
794
                                _tmp25_ = _tmp24_;
 
795
                                _tmp26_ = vala_ccode_identifier_new (_tmp25_);
 
796
                                _tmp27_ = _tmp26_;
 
797
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp27_);
 
798
                                _vala_ccode_node_unref0 (_tmp27_);
 
799
                                _g_free0 (_tmp25_);
 
800
                                _tmp28_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) reg_call);
 
801
                                _tmp29_ = _tmp28_;
 
802
                                vala_ccode_block_add_statement (block, (ValaCCodeNode*) _tmp29_);
 
803
                                _vala_ccode_node_unref0 (_tmp29_);
794
804
                                _vala_ccode_node_unref0 (reg_call);
795
805
                        } else {
796
 
                                ValaCCodeIdentifier* _tmp31_ = NULL;
797
 
                                ValaCCodeIdentifier* _tmp32_;
798
 
                                ValaCCodeFunctionCall* _tmp33_ = NULL;
799
 
                                ValaCCodeFunctionCall* _tmp34_;
 
806
                                ValaCCodeIdentifier* _tmp30_ = NULL;
 
807
                                ValaCCodeIdentifier* _tmp31_;
 
808
                                ValaCCodeFunctionCall* _tmp32_ = NULL;
 
809
                                ValaCCodeFunctionCall* _tmp33_;
800
810
                                ValaCCodeFunctionCall* reg_call;
801
 
                                ValaCCodeIdentifier* _tmp35_ = NULL;
802
 
                                ValaCCodeIdentifier* _tmp36_;
803
 
                                gchar* _tmp37_ = NULL;
804
 
                                gchar* _tmp38_;
805
 
                                gchar* _tmp39_ = NULL;
806
 
                                gchar* _tmp40_;
807
 
                                ValaCCodeIdentifier* _tmp41_ = NULL;
808
 
                                ValaCCodeIdentifier* _tmp42_;
809
 
                                gchar* _tmp43_ = NULL;
810
 
                                gchar* _tmp44_;
811
 
                                ValaCCodeIdentifier* _tmp45_ = NULL;
812
 
                                ValaCCodeIdentifier* _tmp46_;
813
 
                                gchar* _tmp47_ = NULL;
814
 
                                gchar* _tmp48_;
815
 
                                ValaCCodeIdentifier* _tmp49_ = NULL;
816
 
                                ValaCCodeIdentifier* _tmp50_;
817
 
                                ValaCCodeExpressionStatement* _tmp51_ = NULL;
818
 
                                ValaCCodeExpressionStatement* _tmp52_;
819
 
                                _tmp31_ = vala_ccode_identifier_new ("g_type_module_add_interface");
820
 
                                _tmp32_ = _tmp31_;
821
 
                                _tmp33_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp32_);
822
 
                                reg_call = (_tmp34_ = _tmp33_, _vala_ccode_node_unref0 (_tmp32_), _tmp34_);
823
 
                                _tmp35_ = vala_ccode_identifier_new ("module");
824
 
                                _tmp36_ = _tmp35_;
825
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp36_);
826
 
                                _vala_ccode_node_unref0 (_tmp36_);
827
 
                                _tmp37_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self->priv->_class_reference, NULL);
828
 
                                _tmp38_ = _tmp37_;
829
 
                                _tmp39_ = g_strdup_printf ("%s_type_id", _tmp38_);
830
 
                                _tmp40_ = _tmp39_;
831
 
                                _tmp41_ = vala_ccode_identifier_new (_tmp40_);
832
 
                                _tmp42_ = _tmp41_;
833
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp42_);
834
 
                                _vala_ccode_node_unref0 (_tmp42_);
835
 
                                _g_free0 (_tmp40_);
836
 
                                _g_free0 (_tmp38_);
837
 
                                _tmp43_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) iface);
838
 
                                _tmp44_ = _tmp43_;
839
 
                                _tmp45_ = vala_ccode_identifier_new (_tmp44_);
840
 
                                _tmp46_ = _tmp45_;
841
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp46_);
842
 
                                _vala_ccode_node_unref0 (_tmp46_);
843
 
                                _g_free0 (_tmp44_);
844
 
                                _tmp47_ = g_strdup_printf ("&%s", iface_info_name);
845
 
                                _tmp48_ = _tmp47_;
846
 
                                _tmp49_ = vala_ccode_identifier_new (_tmp48_);
847
 
                                _tmp50_ = _tmp49_;
848
 
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp50_);
849
 
                                _vala_ccode_node_unref0 (_tmp50_);
850
 
                                _g_free0 (_tmp48_);
851
 
                                _tmp51_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) reg_call);
852
 
                                _tmp52_ = _tmp51_;
853
 
                                vala_ccode_fragment_append (frag, (ValaCCodeNode*) _tmp52_);
854
 
                                _vala_ccode_node_unref0 (_tmp52_);
 
811
                                ValaCCodeIdentifier* _tmp34_ = NULL;
 
812
                                ValaCCodeIdentifier* _tmp35_;
 
813
                                gchar* _tmp36_ = NULL;
 
814
                                gchar* _tmp37_;
 
815
                                gchar* _tmp38_ = NULL;
 
816
                                gchar* _tmp39_;
 
817
                                ValaCCodeIdentifier* _tmp40_ = NULL;
 
818
                                ValaCCodeIdentifier* _tmp41_;
 
819
                                gchar* _tmp42_ = NULL;
 
820
                                gchar* _tmp43_;
 
821
                                ValaCCodeIdentifier* _tmp44_ = NULL;
 
822
                                ValaCCodeIdentifier* _tmp45_;
 
823
                                gchar* _tmp46_ = NULL;
 
824
                                gchar* _tmp47_;
 
825
                                ValaCCodeIdentifier* _tmp48_ = NULL;
 
826
                                ValaCCodeIdentifier* _tmp49_;
 
827
                                ValaCCodeExpressionStatement* _tmp50_ = NULL;
 
828
                                ValaCCodeExpressionStatement* _tmp51_;
 
829
                                _tmp30_ = vala_ccode_identifier_new ("g_type_module_add_interface");
 
830
                                _tmp31_ = _tmp30_;
 
831
                                _tmp32_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp31_);
 
832
                                reg_call = (_tmp33_ = _tmp32_, _vala_ccode_node_unref0 (_tmp31_), _tmp33_);
 
833
                                _tmp34_ = vala_ccode_identifier_new ("module");
 
834
                                _tmp35_ = _tmp34_;
 
835
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp35_);
 
836
                                _vala_ccode_node_unref0 (_tmp35_);
 
837
                                _tmp36_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self->priv->_class_reference, NULL);
 
838
                                _tmp37_ = _tmp36_;
 
839
                                _tmp38_ = g_strdup_printf ("%s_type_id", _tmp37_);
 
840
                                _tmp39_ = _tmp38_;
 
841
                                _tmp40_ = vala_ccode_identifier_new (_tmp39_);
 
842
                                _tmp41_ = _tmp40_;
 
843
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp41_);
 
844
                                _vala_ccode_node_unref0 (_tmp41_);
 
845
                                _g_free0 (_tmp39_);
 
846
                                _g_free0 (_tmp37_);
 
847
                                _tmp42_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) iface);
 
848
                                _tmp43_ = _tmp42_;
 
849
                                _tmp44_ = vala_ccode_identifier_new (_tmp43_);
 
850
                                _tmp45_ = _tmp44_;
 
851
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp45_);
 
852
                                _vala_ccode_node_unref0 (_tmp45_);
 
853
                                _g_free0 (_tmp43_);
 
854
                                _tmp46_ = g_strdup_printf ("&%s", iface_info_name);
 
855
                                _tmp47_ = _tmp46_;
 
856
                                _tmp48_ = vala_ccode_identifier_new (_tmp47_);
 
857
                                _tmp49_ = _tmp48_;
 
858
                                vala_ccode_function_call_add_argument (reg_call, (ValaCCodeExpression*) _tmp49_);
 
859
                                _vala_ccode_node_unref0 (_tmp49_);
 
860
                                _g_free0 (_tmp47_);
 
861
                                _tmp50_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) reg_call);
 
862
                                _tmp51_ = _tmp50_;
 
863
                                vala_ccode_block_add_statement (block, (ValaCCodeNode*) _tmp51_);
 
864
                                _vala_ccode_node_unref0 (_tmp51_);
855
865
                                _vala_ccode_node_unref0 (reg_call);
856
866
                        }
857
867
                        _g_free0 (iface_info_name);
860
870
                }
861
871
                _vala_iterable_unref0 (_base_type_list);
862
872
        }
863
 
        result = frag;
864
 
        return result;
 
873
        _tmp52_ = vala_typeregister_function_get_context ((ValaTypeRegisterFunction*) self);
 
874
        _tmp53_ = vala_code_context_get_codegen (_tmp52_);
 
875
        vala_ccode_base_module_register_dbus_info (VALA_CCODE_BASE_MODULE (_tmp53_), block, (ValaObjectTypeSymbol*) self->priv->_class_reference);
865
876
}
866
877
 
867
878