/* valagdbusservermodule.c generated by valac, the Vala compiler * generated from valagdbusservermodule.vala, do not modify */ /* valagdbusservermodule.vala * * Copyright (C) 2010-2011 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Author: * Jürg Billeter */ #include #include #include #include #include #include #include #define VALA_TYPE_CCODE_BASE_MODULE (vala_ccode_base_module_get_type ()) #define VALA_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule)) #define VALA_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass)) #define VALA_IS_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_BASE_MODULE)) #define VALA_IS_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_BASE_MODULE)) #define VALA_CCODE_BASE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass)) typedef struct _ValaCCodeBaseModule ValaCCodeBaseModule; typedef struct _ValaCCodeBaseModuleClass ValaCCodeBaseModuleClass; typedef struct _ValaCCodeBaseModulePrivate ValaCCodeBaseModulePrivate; #define VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT (vala_ccode_base_module_emit_context_get_type ()) #define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContext)) #define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass)) #define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT)) #define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT)) #define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass)) typedef struct _ValaCCodeBaseModuleEmitContext ValaCCodeBaseModuleEmitContext; typedef struct _ValaCCodeBaseModuleEmitContextClass ValaCCodeBaseModuleEmitContextClass; #define VALA_TYPE_CCODE_STRUCT_MODULE (vala_ccode_struct_module_get_type ()) #define VALA_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModule)) #define VALA_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass)) #define VALA_IS_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_STRUCT_MODULE)) #define VALA_IS_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_STRUCT_MODULE)) #define VALA_CCODE_STRUCT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass)) typedef struct _ValaCCodeStructModule ValaCCodeStructModule; typedef struct _ValaCCodeStructModuleClass ValaCCodeStructModuleClass; typedef struct _ValaCCodeStructModulePrivate ValaCCodeStructModulePrivate; #define VALA_TYPE_CCODE_METHOD_MODULE (vala_ccode_method_module_get_type ()) #define VALA_CCODE_METHOD_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModule)) #define VALA_CCODE_METHOD_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModuleClass)) #define VALA_IS_CCODE_METHOD_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_METHOD_MODULE)) #define VALA_IS_CCODE_METHOD_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_METHOD_MODULE)) #define VALA_CCODE_METHOD_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModuleClass)) typedef struct _ValaCCodeMethodModule ValaCCodeMethodModule; typedef struct _ValaCCodeMethodModuleClass ValaCCodeMethodModuleClass; typedef struct _ValaCCodeMethodModulePrivate ValaCCodeMethodModulePrivate; #define VALA_TYPE_CCODE_CONTROL_FLOW_MODULE (vala_ccode_control_flow_module_get_type ()) #define VALA_CCODE_CONTROL_FLOW_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModule)) #define VALA_CCODE_CONTROL_FLOW_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModuleClass)) #define VALA_IS_CCODE_CONTROL_FLOW_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE)) #define VALA_IS_CCODE_CONTROL_FLOW_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE)) #define VALA_CCODE_CONTROL_FLOW_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModuleClass)) typedef struct _ValaCCodeControlFlowModule ValaCCodeControlFlowModule; typedef struct _ValaCCodeControlFlowModuleClass ValaCCodeControlFlowModuleClass; typedef struct _ValaCCodeControlFlowModulePrivate ValaCCodeControlFlowModulePrivate; #define VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE (vala_ccode_member_access_module_get_type ()) #define VALA_CCODE_MEMBER_ACCESS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModule)) #define VALA_CCODE_MEMBER_ACCESS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModuleClass)) #define VALA_IS_CCODE_MEMBER_ACCESS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE)) #define VALA_IS_CCODE_MEMBER_ACCESS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE)) #define VALA_CCODE_MEMBER_ACCESS_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModuleClass)) typedef struct _ValaCCodeMemberAccessModule ValaCCodeMemberAccessModule; typedef struct _ValaCCodeMemberAccessModuleClass ValaCCodeMemberAccessModuleClass; typedef struct _ValaCCodeMemberAccessModulePrivate ValaCCodeMemberAccessModulePrivate; #define VALA_TYPE_CCODE_ASSIGNMENT_MODULE (vala_ccode_assignment_module_get_type ()) #define VALA_CCODE_ASSIGNMENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModule)) #define VALA_CCODE_ASSIGNMENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModuleClass)) #define VALA_IS_CCODE_ASSIGNMENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE)) #define VALA_IS_CCODE_ASSIGNMENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_ASSIGNMENT_MODULE)) #define VALA_CCODE_ASSIGNMENT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModuleClass)) typedef struct _ValaCCodeAssignmentModule ValaCCodeAssignmentModule; typedef struct _ValaCCodeAssignmentModuleClass ValaCCodeAssignmentModuleClass; typedef struct _ValaCCodeAssignmentModulePrivate ValaCCodeAssignmentModulePrivate; #define VALA_TYPE_CCODE_METHOD_CALL_MODULE (vala_ccode_method_call_module_get_type ()) #define VALA_CCODE_METHOD_CALL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModule)) #define VALA_CCODE_METHOD_CALL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModuleClass)) #define VALA_IS_CCODE_METHOD_CALL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE)) #define VALA_IS_CCODE_METHOD_CALL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_METHOD_CALL_MODULE)) #define VALA_CCODE_METHOD_CALL_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModuleClass)) typedef struct _ValaCCodeMethodCallModule ValaCCodeMethodCallModule; typedef struct _ValaCCodeMethodCallModuleClass ValaCCodeMethodCallModuleClass; typedef struct _ValaCCodeMethodCallModulePrivate ValaCCodeMethodCallModulePrivate; #define VALA_TYPE_CCODE_ARRAY_MODULE (vala_ccode_array_module_get_type ()) #define VALA_CCODE_ARRAY_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModule)) #define VALA_CCODE_ARRAY_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModuleClass)) #define VALA_IS_CCODE_ARRAY_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_ARRAY_MODULE)) #define VALA_IS_CCODE_ARRAY_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_ARRAY_MODULE)) #define VALA_CCODE_ARRAY_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModuleClass)) typedef struct _ValaCCodeArrayModule ValaCCodeArrayModule; typedef struct _ValaCCodeArrayModuleClass ValaCCodeArrayModuleClass; typedef struct _ValaCCodeArrayModulePrivate ValaCCodeArrayModulePrivate; #define VALA_TYPE_CCODE_DELEGATE_MODULE (vala_ccode_delegate_module_get_type ()) #define VALA_CCODE_DELEGATE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModule)) #define VALA_CCODE_DELEGATE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModuleClass)) #define VALA_IS_CCODE_DELEGATE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE)) #define VALA_IS_CCODE_DELEGATE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_DELEGATE_MODULE)) #define VALA_CCODE_DELEGATE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModuleClass)) typedef struct _ValaCCodeDelegateModule ValaCCodeDelegateModule; typedef struct _ValaCCodeDelegateModuleClass ValaCCodeDelegateModuleClass; typedef struct _ValaCCodeDelegateModulePrivate ValaCCodeDelegateModulePrivate; #define VALA_TYPE_GERROR_MODULE (vala_gerror_module_get_type ()) #define VALA_GERROR_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GERROR_MODULE, ValaGErrorModule)) #define VALA_GERROR_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GERROR_MODULE, ValaGErrorModuleClass)) #define VALA_IS_GERROR_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GERROR_MODULE)) #define VALA_IS_GERROR_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GERROR_MODULE)) #define VALA_GERROR_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GERROR_MODULE, ValaGErrorModuleClass)) typedef struct _ValaGErrorModule ValaGErrorModule; typedef struct _ValaGErrorModuleClass ValaGErrorModuleClass; typedef struct _ValaGErrorModulePrivate ValaGErrorModulePrivate; #define VALA_TYPE_GTYPE_MODULE (vala_gtype_module_get_type ()) #define VALA_GTYPE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GTYPE_MODULE, ValaGTypeModule)) #define VALA_GTYPE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GTYPE_MODULE, ValaGTypeModuleClass)) #define VALA_IS_GTYPE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GTYPE_MODULE)) #define VALA_IS_GTYPE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GTYPE_MODULE)) #define VALA_GTYPE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GTYPE_MODULE, ValaGTypeModuleClass)) typedef struct _ValaGTypeModule ValaGTypeModule; typedef struct _ValaGTypeModuleClass ValaGTypeModuleClass; typedef struct _ValaGTypeModulePrivate ValaGTypeModulePrivate; #define VALA_TYPE_GOBJECT_MODULE (vala_gobject_module_get_type ()) #define VALA_GOBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModule)) #define VALA_GOBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModuleClass)) #define VALA_IS_GOBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GOBJECT_MODULE)) #define VALA_IS_GOBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GOBJECT_MODULE)) #define VALA_GOBJECT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModuleClass)) typedef struct _ValaGObjectModule ValaGObjectModule; typedef struct _ValaGObjectModuleClass ValaGObjectModuleClass; typedef struct _ValaGObjectModulePrivate ValaGObjectModulePrivate; #define VALA_TYPE_GSIGNAL_MODULE (vala_gsignal_module_get_type ()) #define VALA_GSIGNAL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModule)) #define VALA_GSIGNAL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModuleClass)) #define VALA_IS_GSIGNAL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GSIGNAL_MODULE)) #define VALA_IS_GSIGNAL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GSIGNAL_MODULE)) #define VALA_GSIGNAL_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModuleClass)) typedef struct _ValaGSignalModule ValaGSignalModule; typedef struct _ValaGSignalModuleClass ValaGSignalModuleClass; typedef struct _ValaGSignalModulePrivate ValaGSignalModulePrivate; #define VALA_TYPE_GASYNC_MODULE (vala_gasync_module_get_type ()) #define VALA_GASYNC_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModule)) #define VALA_GASYNC_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModuleClass)) #define VALA_IS_GASYNC_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GASYNC_MODULE)) #define VALA_IS_GASYNC_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GASYNC_MODULE)) #define VALA_GASYNC_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModuleClass)) typedef struct _ValaGAsyncModule ValaGAsyncModule; typedef struct _ValaGAsyncModuleClass ValaGAsyncModuleClass; typedef struct _ValaGAsyncModulePrivate ValaGAsyncModulePrivate; #define VALA_TYPE_GVARIANT_MODULE (vala_gvariant_module_get_type ()) #define VALA_GVARIANT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModule)) #define VALA_GVARIANT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModuleClass)) #define VALA_IS_GVARIANT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GVARIANT_MODULE)) #define VALA_IS_GVARIANT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GVARIANT_MODULE)) #define VALA_GVARIANT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModuleClass)) typedef struct _ValaGVariantModule ValaGVariantModule; typedef struct _ValaGVariantModuleClass ValaGVariantModuleClass; typedef struct _ValaGVariantModulePrivate ValaGVariantModulePrivate; #define VALA_TYPE_GD_BUS_MODULE (vala_gd_bus_module_get_type ()) #define VALA_GD_BUS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GD_BUS_MODULE, ValaGDBusModule)) #define VALA_GD_BUS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GD_BUS_MODULE, ValaGDBusModuleClass)) #define VALA_IS_GD_BUS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GD_BUS_MODULE)) #define VALA_IS_GD_BUS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GD_BUS_MODULE)) #define VALA_GD_BUS_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GD_BUS_MODULE, ValaGDBusModuleClass)) typedef struct _ValaGDBusModule ValaGDBusModule; typedef struct _ValaGDBusModuleClass ValaGDBusModuleClass; typedef struct _ValaGDBusModulePrivate ValaGDBusModulePrivate; #define VALA_TYPE_GD_BUS_CLIENT_MODULE (vala_gd_bus_client_module_get_type ()) #define VALA_GD_BUS_CLIENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GD_BUS_CLIENT_MODULE, ValaGDBusClientModule)) #define VALA_GD_BUS_CLIENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GD_BUS_CLIENT_MODULE, ValaGDBusClientModuleClass)) #define VALA_IS_GD_BUS_CLIENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GD_BUS_CLIENT_MODULE)) #define VALA_IS_GD_BUS_CLIENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GD_BUS_CLIENT_MODULE)) #define VALA_GD_BUS_CLIENT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GD_BUS_CLIENT_MODULE, ValaGDBusClientModuleClass)) typedef struct _ValaGDBusClientModule ValaGDBusClientModule; typedef struct _ValaGDBusClientModuleClass ValaGDBusClientModuleClass; typedef struct _ValaGDBusClientModulePrivate ValaGDBusClientModulePrivate; #define VALA_TYPE_GD_BUS_SERVER_MODULE (vala_gd_bus_server_module_get_type ()) #define VALA_GD_BUS_SERVER_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GD_BUS_SERVER_MODULE, ValaGDBusServerModule)) #define VALA_GD_BUS_SERVER_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GD_BUS_SERVER_MODULE, ValaGDBusServerModuleClass)) #define VALA_IS_GD_BUS_SERVER_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GD_BUS_SERVER_MODULE)) #define VALA_IS_GD_BUS_SERVER_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GD_BUS_SERVER_MODULE)) #define VALA_GD_BUS_SERVER_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GD_BUS_SERVER_MODULE, ValaGDBusServerModuleClass)) typedef struct _ValaGDBusServerModule ValaGDBusServerModule; typedef struct _ValaGDBusServerModuleClass ValaGDBusServerModuleClass; typedef struct _ValaGDBusServerModulePrivate ValaGDBusServerModulePrivate; #define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL))) #define _g_free0(var) (var = (g_free (var), NULL)) #define _vala_ccode_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_node_unref (var), NULL))) #define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL))) #define _vala_map_unref0(var) ((var == NULL) ? NULL : (var = (vala_map_unref (var), NULL))) struct _ValaCCodeBaseModule { ValaCodeGenerator parent_instance; ValaCCodeBaseModulePrivate * priv; ValaSymbol* root_symbol; ValaCCodeBaseModuleEmitContext* emit_context; ValaCCodeLineDirective* current_line; ValaCCodeFile* header_file; ValaCCodeFile* internal_header_file; ValaCCodeFile* cfile; ValaCCodeBaseModuleEmitContext* class_init_context; ValaCCodeBaseModuleEmitContext* base_init_context; ValaCCodeBaseModuleEmitContext* class_finalize_context; ValaCCodeBaseModuleEmitContext* base_finalize_context; ValaCCodeBaseModuleEmitContext* instance_init_context; ValaCCodeBaseModuleEmitContext* instance_finalize_context; ValaCCodeStruct* param_spec_struct; ValaCCodeStruct* closure_struct; ValaCCodeEnum* prop_enum; ValaSet* user_marshal_set; ValaSet* predefined_marshal_set; gint next_regex_id; gint next_coroutine_state; ValaDataType* void_type; ValaDataType* bool_type; ValaDataType* char_type; ValaDataType* uchar_type; ValaDataType* unichar_type; ValaDataType* short_type; ValaDataType* ushort_type; ValaDataType* int_type; ValaDataType* uint_type; ValaDataType* long_type; ValaDataType* ulong_type; ValaDataType* int8_type; ValaDataType* uint8_type; ValaDataType* int16_type; ValaDataType* uint16_type; ValaDataType* int32_type; ValaDataType* uint32_type; ValaDataType* int64_type; ValaDataType* uint64_type; ValaDataType* string_type; ValaDataType* regex_type; ValaDataType* float_type; ValaDataType* double_type; ValaTypeSymbol* gtype_type; ValaTypeSymbol* gobject_type; ValaErrorType* gerror_type; ValaClass* glist_type; ValaClass* gslist_type; ValaClass* gnode_type; ValaClass* gqueue_type; ValaClass* gvaluearray_type; ValaTypeSymbol* gstringbuilder_type; ValaTypeSymbol* garray_type; ValaTypeSymbol* gbytearray_type; ValaTypeSymbol* gptrarray_type; ValaTypeSymbol* gthreadpool_type; ValaDataType* gdestroynotify_type; ValaDataType* gquark_type; ValaStruct* gvalue_type; ValaClass* gvariant_type; ValaStruct* mutex_type; ValaTypeSymbol* type_module_type; ValaTypeSymbol* dbus_proxy_type; gboolean in_plugin; gchar* module_init_param_name; gboolean gvaluecollector_h_needed; gboolean requires_array_free; gboolean requires_array_move; gboolean requires_array_length; ValaSet* wrappers; }; struct _ValaCCodeBaseModuleClass { ValaCodeGeneratorClass parent_class; void (*append_vala_array_free) (ValaCCodeBaseModule* self); void (*append_vala_array_move) (ValaCCodeBaseModule* self); void (*append_vala_array_length) (ValaCCodeBaseModule* self); gboolean (*generate_enum_declaration) (ValaCCodeBaseModule* self, ValaEnum* en, ValaCCodeFile* decl_space); void (*generate_class_struct_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space); void (*generate_struct_declaration) (ValaCCodeBaseModule* self, ValaStruct* st, ValaCCodeFile* decl_space); void (*generate_delegate_declaration) (ValaCCodeBaseModule* self, ValaDelegate* d, ValaCCodeFile* decl_space); void (*generate_cparameters) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaCCodeFunction* func, ValaCCodeFunctionDeclarator* vdeclarator, ValaMap* carg_map, ValaCCodeFunctionCall* vcall, gint direction); ValaCCodeExpression* (*get_dup_func_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaSourceReference* source_reference, gboolean is_chainup); gchar* (*append_struct_array_free) (ValaCCodeBaseModule* self, ValaStruct* st); ValaCCodeExpression* (*destroy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, gboolean is_macro_definition); void (*append_scope_free) (ValaCCodeBaseModule* self, ValaSymbol* sym, ValaCodeNode* stop_at); ValaTargetValue* (*get_local_cvalue) (ValaCCodeBaseModule* self, ValaLocalVariable* local); ValaTargetValue* (*get_parameter_cvalue) (ValaCCodeBaseModule* self, ValaParameter* param); ValaTargetValue* (*get_field_cvalue) (ValaCCodeBaseModule* self, ValaField* field, ValaTargetValue* instance); ValaTargetValue* (*load_variable) (ValaCCodeBaseModule* self, ValaVariable* variable, ValaTargetValue* value); ValaTargetValue* (*load_this_parameter) (ValaCCodeBaseModule* self, ValaTypeSymbol* sym); void (*store_value) (ValaCCodeBaseModule* self, ValaTargetValue* lvalue, ValaTargetValue* value); gchar* (*get_delegate_target_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname); ValaCCodeExpression* (*get_delegate_target_cexpression) (ValaCCodeBaseModule* self, ValaExpression* delegate_expr, ValaCCodeExpression** delegate_target_destroy_notify); ValaCCodeExpression* (*get_delegate_target_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value); ValaCCodeExpression* (*get_delegate_target_destroy_notify_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value); gchar* (*get_delegate_target_destroy_notify_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname); ValaTargetValue* (*copy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, ValaCodeNode* node); void (*generate_class_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space); void (*generate_interface_declaration) (ValaCCodeBaseModule* self, ValaInterface* iface, ValaCCodeFile* decl_space); void (*generate_method_declaration) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space); void (*generate_error_domain_declaration) (ValaCCodeBaseModule* self, ValaErrorDomain* edomain, ValaCCodeFile* decl_space); ValaCCodeExpression* (*deserialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail); ValaCCodeExpression* (*serialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* expr); ValaCCodeExpression* (*get_implicit_cast_expression) (ValaCCodeBaseModule* self, ValaCCodeExpression* source_cexpr, ValaDataType* expression_type, ValaDataType* target_type, ValaCodeNode* node); void (*create_type_check_statement) (ValaCCodeBaseModule* self, ValaCodeNode* method_node, ValaDataType* ret_type, ValaTypeSymbol* t, gboolean non_null, const gchar* var_name); gboolean (*is_gobject_property) (ValaCCodeBaseModule* self, ValaProperty* prop); void (*generate_dynamic_method_wrapper) (ValaCCodeBaseModule* self, ValaDynamicMethod* method); gboolean (*method_has_wrapper) (ValaCCodeBaseModule* self, ValaMethod* method); ValaCCodeFunctionCall* (*get_param_spec) (ValaCCodeBaseModule* self, ValaProperty* prop); ValaCCodeFunctionCall* (*get_signal_creation) (ValaCCodeBaseModule* self, ValaSignal* sig, ValaTypeSymbol* type); void (*register_dbus_info) (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable); gchar* (*get_dynamic_property_getter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node); gchar* (*get_dynamic_property_setter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node); gchar* (*get_dynamic_signal_cname) (ValaCCodeBaseModule* self, ValaDynamicSignal* node); gchar* (*get_dynamic_signal_connect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node); gchar* (*get_dynamic_signal_connect_after_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node); gchar* (*get_dynamic_signal_disconnect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node); gchar* (*get_array_length_cname) (ValaCCodeBaseModule* self, const gchar* array_cname, gint dim); gchar* (*get_parameter_array_length_cname) (ValaCCodeBaseModule* self, ValaParameter* param, gint dim); ValaCCodeExpression* (*get_array_length_cexpression) (ValaCCodeBaseModule* self, ValaExpression* array_expr, gint dim); ValaCCodeExpression* (*get_array_length_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value, gint dim); gchar* (*get_array_size_cname) (ValaCCodeBaseModule* self, const gchar* array_cname); void (*add_simple_check) (ValaCCodeBaseModule* self, ValaCodeNode* node, gboolean always_fails); gchar* (*generate_ready_function) (ValaCCodeBaseModule* self, ValaMethod* m); }; struct _ValaCCodeStructModule { ValaCCodeBaseModule parent_instance; ValaCCodeStructModulePrivate * priv; }; struct _ValaCCodeStructModuleClass { ValaCCodeBaseModuleClass parent_class; }; struct _ValaCCodeMethodModule { ValaCCodeStructModule parent_instance; ValaCCodeMethodModulePrivate * priv; }; struct _ValaCCodeMethodModuleClass { ValaCCodeStructModuleClass parent_class; void (*generate_method_result_declaration) (ValaCCodeMethodModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaCCodeFunction* cfunc, ValaMap* cparam_map, ValaMap* carg_map); ValaCCodeParameter* (*generate_parameter) (ValaCCodeMethodModule* self, ValaParameter* param, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaMap* carg_map); }; struct _ValaCCodeControlFlowModule { ValaCCodeMethodModule parent_instance; ValaCCodeControlFlowModulePrivate * priv; }; struct _ValaCCodeControlFlowModuleClass { ValaCCodeMethodModuleClass parent_class; }; struct _ValaCCodeMemberAccessModule { ValaCCodeControlFlowModule parent_instance; ValaCCodeMemberAccessModulePrivate * priv; }; struct _ValaCCodeMemberAccessModuleClass { ValaCCodeControlFlowModuleClass parent_class; }; struct _ValaCCodeAssignmentModule { ValaCCodeMemberAccessModule parent_instance; ValaCCodeAssignmentModulePrivate * priv; }; struct _ValaCCodeAssignmentModuleClass { ValaCCodeMemberAccessModuleClass parent_class; }; struct _ValaCCodeMethodCallModule { ValaCCodeAssignmentModule parent_instance; ValaCCodeMethodCallModulePrivate * priv; }; struct _ValaCCodeMethodCallModuleClass { ValaCCodeAssignmentModuleClass parent_class; }; struct _ValaCCodeArrayModule { ValaCCodeMethodCallModule parent_instance; ValaCCodeArrayModulePrivate * priv; }; struct _ValaCCodeArrayModuleClass { ValaCCodeMethodCallModuleClass parent_class; }; struct _ValaCCodeDelegateModule { ValaCCodeArrayModule parent_instance; ValaCCodeDelegateModulePrivate * priv; }; struct _ValaCCodeDelegateModuleClass { ValaCCodeArrayModuleClass parent_class; }; struct _ValaGErrorModule { ValaCCodeDelegateModule parent_instance; ValaGErrorModulePrivate * priv; }; struct _ValaGErrorModuleClass { ValaCCodeDelegateModuleClass parent_class; void (*return_with_exception) (ValaGErrorModule* self, ValaCCodeExpression* error_expr); }; struct _ValaGTypeModule { ValaGErrorModule parent_instance; ValaGTypeModulePrivate * priv; }; struct _ValaGTypeModuleClass { ValaGErrorModuleClass parent_class; void (*generate_virtual_method_declaration) (ValaGTypeModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaCCodeStruct* type_struct); void (*generate_class_init) (ValaGTypeModule* self, ValaClass* cl); }; struct _ValaGObjectModule { ValaGTypeModule parent_instance; ValaGObjectModulePrivate * priv; }; struct _ValaGObjectModuleClass { ValaGTypeModuleClass parent_class; }; struct _ValaGSignalModule { ValaGObjectModule parent_instance; ValaGSignalModulePrivate * priv; }; struct _ValaGSignalModuleClass { ValaGObjectModuleClass parent_class; }; struct _ValaGAsyncModule { ValaGSignalModule parent_instance; ValaGAsyncModulePrivate * priv; }; struct _ValaGAsyncModuleClass { ValaGSignalModuleClass parent_class; }; struct _ValaGVariantModule { ValaGAsyncModule parent_instance; ValaGVariantModulePrivate * priv; }; struct _ValaGVariantModuleClass { ValaGAsyncModuleClass parent_class; }; struct _ValaGDBusModule { ValaGVariantModule parent_instance; ValaGDBusModulePrivate * priv; }; struct _ValaGDBusModuleClass { ValaGVariantModuleClass parent_class; }; struct _ValaGDBusClientModule { ValaGDBusModule parent_instance; ValaGDBusClientModulePrivate * priv; }; struct _ValaGDBusClientModuleClass { ValaGDBusModuleClass parent_class; }; struct _ValaGDBusServerModule { ValaGDBusClientModule parent_instance; ValaGDBusServerModulePrivate * priv; }; struct _ValaGDBusServerModuleClass { ValaGDBusClientModuleClass parent_class; }; static gpointer vala_gd_bus_server_module_parent_class = NULL; GType vala_ccode_base_module_get_type (void) G_GNUC_CONST; gpointer vala_ccode_base_module_emit_context_ref (gpointer instance); void vala_ccode_base_module_emit_context_unref (gpointer instance); GParamSpec* vala_ccode_base_module_param_spec_emit_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); void vala_ccode_base_module_value_set_emit_context (GValue* value, gpointer v_object); void vala_ccode_base_module_value_take_emit_context (GValue* value, gpointer v_object); gpointer vala_ccode_base_module_value_get_emit_context (const GValue* value); GType vala_ccode_base_module_emit_context_get_type (void) G_GNUC_CONST; GType vala_ccode_struct_module_get_type (void) G_GNUC_CONST; GType vala_ccode_method_module_get_type (void) G_GNUC_CONST; GType vala_ccode_control_flow_module_get_type (void) G_GNUC_CONST; GType vala_ccode_member_access_module_get_type (void) G_GNUC_CONST; GType vala_ccode_assignment_module_get_type (void) G_GNUC_CONST; GType vala_ccode_method_call_module_get_type (void) G_GNUC_CONST; GType vala_ccode_array_module_get_type (void) G_GNUC_CONST; GType vala_ccode_delegate_module_get_type (void) G_GNUC_CONST; GType vala_gerror_module_get_type (void) G_GNUC_CONST; GType vala_gtype_module_get_type (void) G_GNUC_CONST; GType vala_gobject_module_get_type (void) G_GNUC_CONST; GType vala_gsignal_module_get_type (void) G_GNUC_CONST; GType vala_gasync_module_get_type (void) G_GNUC_CONST; GType vala_gvariant_module_get_type (void) G_GNUC_CONST; GType vala_gd_bus_module_get_type (void) G_GNUC_CONST; GType vala_gd_bus_client_module_get_type (void) G_GNUC_CONST; GType vala_gd_bus_server_module_get_type (void) G_GNUC_CONST; enum { VALA_GD_BUS_SERVER_MODULE_DUMMY_PROPERTY }; gboolean vala_gd_bus_server_module_is_dbus_visible (ValaCodeNode* node); gchar* vala_gd_bus_server_module_dbus_result_name (ValaMethod* m); static gchar* vala_gd_bus_server_module_generate_dbus_wrapper (ValaGDBusServerModule* self, ValaMethod* m, ValaObjectTypeSymbol* sym, gboolean ready); gchar* vala_ccode_base_module_get_ccode_name (ValaCodeNode* node); void vala_ccode_base_module_push_function (ValaCCodeBaseModule* self, ValaCCodeFunction* func); ValaCCodeFunction* vala_ccode_base_module_get_ccode (ValaCCodeBaseModule* self); gboolean vala_gd_bus_module_is_dbus_no_reply (ValaMethod* m); gboolean vala_gd_bus_module_dbus_method_uses_file_descriptor (ValaGDBusModule* self, ValaMethod* method); gchar* vala_ccode_base_module_get_ccode_finish_name (ValaMethod* m); gchar* vala_ccode_base_module_get_variable_cname (ValaCCodeBaseModule* self, const gchar* name); ValaCCodeExpression* vala_ccode_base_module_default_value_for_type (ValaCCodeBaseModule* self, ValaDataType* type, gboolean initializer_expression); gchar* vala_ccode_base_module_get_parameter_array_length_cname (ValaCCodeBaseModule* self, ValaParameter* param, gint dim); void vala_gd_bus_module_receive_dbus_value (ValaGDBusModule* self, ValaDataType* type, ValaCCodeExpression* message_expr, ValaCCodeExpression* iter_expr, ValaCCodeExpression* target_expr, ValaSymbol* sym, ValaCCodeExpression* error_expr, gboolean* may_fail); gchar* vala_ccode_base_module_get_array_length_cname (ValaCCodeBaseModule* self, const gchar* array_cname, gint dim); void vala_gd_bus_module_send_dbus_value (ValaGDBusModule* self, ValaDataType* type, ValaCCodeExpression* builder_expr, ValaCCodeExpression* expr, ValaSymbol* sym); gboolean vala_ccode_base_module_requires_destroy (ValaCCodeBaseModule* self, ValaDataType* type); ValaCCodeExpression* vala_ccode_base_module_destroy_local (ValaCCodeBaseModule* self, ValaLocalVariable* local); void vala_ccode_base_module_pop_function (ValaCCodeBaseModule* self); static gchar* vala_gd_bus_server_module_generate_dbus_signal_wrapper (ValaGDBusServerModule* self, ValaSignal* sig, ValaObjectTypeSymbol* sym, const gchar* dbus_iface_name); gchar* vala_ccode_base_module_get_ccode_lower_case_name (ValaCodeNode* node, const gchar* infix); ValaCCodeParameter* vala_ccode_method_module_generate_parameter (ValaCCodeMethodModule* self, ValaParameter* param, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaMap* carg_map); void vala_gvariant_module_write_expression (ValaGVariantModule* self, ValaDataType* type, ValaCCodeExpression* builder_expr, ValaCCodeExpression* expr, ValaSymbol* sym); gchar* vala_gd_bus_module_get_dbus_name_for_member (ValaSymbol* symbol); static gchar* vala_gd_bus_server_module_generate_dbus_property_get_wrapper (ValaGDBusServerModule* self, ValaProperty* prop, ValaObjectTypeSymbol* sym); ValaCCodeExpression* vala_ccode_base_module_serialize_expression (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* expr); static gchar* vala_gd_bus_server_module_generate_dbus_property_set_wrapper (ValaGDBusServerModule* self, ValaProperty* prop, ValaObjectTypeSymbol* sym); ValaCCodeExpression* vala_ccode_base_module_deserialize_expression (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail); static void vala_gd_bus_server_module_handle_signals (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym, gboolean connect); gchar* vala_gd_bus_module_get_dbus_name (ValaTypeSymbol* symbol); ValaCCodeConstant* vala_ccode_base_module_get_signal_canonical_constant (ValaCCodeBaseModule* self, ValaSignal* sig, const gchar* detail); static void vala_gd_bus_server_module_generate_interface_method_call_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); gchar* vala_ccode_base_module_get_ccode_lower_case_prefix (ValaSymbol* sym); static void vala_gd_bus_server_module_generate_interface_get_property_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static void vala_gd_bus_server_module_generate_interface_set_property_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static ValaCCodeExpression* vala_gd_bus_server_module_get_method_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); gchar* vala_gvariant_module_get_type_signature (ValaDataType* datatype, ValaSymbol* symbol); static ValaCCodeExpression* vala_gd_bus_server_module_get_signal_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static ValaCCodeExpression* vala_gd_bus_server_module_get_property_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static ValaCCodeExpression* vala_gd_bus_server_module_get_interface_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static ValaCCodeExpression* vala_gd_bus_server_module_get_interface_vtable (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static gchar* vala_gd_bus_server_module_generate_register_object_function (ValaGDBusServerModule* self); gboolean vala_ccode_base_module_add_wrapper (ValaCCodeBaseModule* self, const gchar* wrapper_name); static void vala_gd_bus_server_module_real_visit_method_call (ValaCodeVisitor* base, ValaMethodCall* expr); ValaCCodeExpression* vala_ccode_base_module_get_type_id_expression (ValaCCodeBaseModule* self, ValaDataType* type, gboolean is_chainup); void vala_ccode_base_module_set_current_method_inner_error (ValaCCodeBaseModule* self, gboolean value); ValaCCodeExpression* vala_ccode_base_module_get_cvalue (ValaCCodeBaseModule* self, ValaExpression* expr); ValaCCodeExpression* vala_ccode_base_module_get_variable_cexpression (ValaCCodeBaseModule* self, const gchar* name); ValaLocalVariable* vala_ccode_base_module_get_temp_variable (ValaCCodeBaseModule* self, ValaDataType* type, gboolean value_owned, ValaCodeNode* node_reference, gboolean init); void vala_ccode_base_module_emit_temp_var (ValaCCodeBaseModule* self, ValaLocalVariable* local); void vala_ccode_base_module_set_cvalue (ValaCCodeBaseModule* self, ValaExpression* expr, ValaCCodeExpression* cvalue); static void vala_gd_bus_server_module_real_generate_class_declaration (ValaCCodeBaseModule* base, ValaClass* cl, ValaCCodeFile* decl_space); void vala_ccode_base_module_generate_class_declaration (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space); static void vala_gd_bus_server_module_generate_object_type_symbol_declaration (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym, ValaCCodeFile* decl_space); static void vala_gd_bus_server_module_real_generate_interface_declaration (ValaCCodeBaseModule* base, ValaInterface* iface, ValaCCodeFile* decl_space); void vala_ccode_base_module_generate_interface_declaration (ValaCCodeBaseModule* self, ValaInterface* iface, ValaCCodeFile* decl_space); static void vala_gd_bus_server_module_real_visit_class (ValaCodeVisitor* base, ValaClass* cl); static void vala_gd_bus_server_module_visit_object_type_symbol (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym); static void vala_gd_bus_server_module_real_visit_interface (ValaCodeVisitor* base, ValaInterface* iface); gboolean vala_ccode_base_module_add_symbol_declaration (ValaCCodeBaseModule* self, ValaCCodeFile* decl_space, ValaSymbol* sym, const gchar* name); gchar* vala_ccode_base_module_get_ccode_ref_function (ValaTypeSymbol* sym); gchar* vala_ccode_base_module_get_ccode_unref_function (ValaObjectTypeSymbol* sym); static void vala_gd_bus_server_module_real_register_dbus_info (ValaCCodeBaseModule* base, ValaCCodeBlock* block, ValaObjectTypeSymbol* sym); void vala_ccode_base_module_register_dbus_info (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable); ValaGDBusServerModule* vala_gd_bus_server_module_new (void); ValaGDBusServerModule* vala_gd_bus_server_module_construct (GType object_type); ValaGDBusClientModule* vala_gd_bus_client_module_new (void); ValaGDBusClientModule* vala_gd_bus_client_module_construct (GType object_type); gboolean vala_gd_bus_server_module_is_dbus_visible (ValaCodeNode* node) { gboolean result = FALSE; ValaCodeNode* _tmp0_; ValaAttribute* _tmp1_ = NULL; ValaAttribute* dbus_attribute; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; ValaAttribute* _tmp4_; gboolean _tmp7_; gboolean _tmp10_; g_return_val_if_fail (node != NULL, FALSE); _tmp0_ = node; _tmp1_ = vala_code_node_get_attribute (_tmp0_, "DBus"); dbus_attribute = _tmp1_; _tmp4_ = dbus_attribute; if (_tmp4_ != NULL) { ValaAttribute* _tmp5_; gboolean _tmp6_ = FALSE; _tmp5_ = dbus_attribute; _tmp6_ = vala_attribute_has_argument (_tmp5_, "visible"); _tmp3_ = _tmp6_; } else { _tmp3_ = FALSE; } _tmp7_ = _tmp3_; if (_tmp7_) { ValaAttribute* _tmp8_; gboolean _tmp9_ = FALSE; _tmp8_ = dbus_attribute; _tmp9_ = vala_attribute_get_bool (_tmp8_, "visible", FALSE); _tmp2_ = !_tmp9_; } else { _tmp2_ = FALSE; } _tmp10_ = _tmp2_; if (_tmp10_) { result = FALSE; _vala_code_node_unref0 (dbus_attribute); return result; } result = TRUE; _vala_code_node_unref0 (dbus_attribute); return result; } gchar* vala_gd_bus_server_module_dbus_result_name (ValaMethod* m) { gchar* result = NULL; ValaMethod* _tmp0_; gchar* _tmp1_ = NULL; gchar* dbus_name; gboolean _tmp2_ = FALSE; const gchar* _tmp3_; gboolean _tmp5_; gchar* _tmp6_; g_return_val_if_fail (m != NULL, NULL); _tmp0_ = m; _tmp1_ = vala_code_node_get_attribute_string ((ValaCodeNode*) _tmp0_, "DBus", "result"); dbus_name = _tmp1_; _tmp3_ = dbus_name; if (_tmp3_ != NULL) { const gchar* _tmp4_; _tmp4_ = dbus_name; _tmp2_ = g_strcmp0 (_tmp4_, "") != 0; } else { _tmp2_ = FALSE; } _tmp5_ = _tmp2_; if (_tmp5_) { result = dbus_name; return result; } _tmp6_ = g_strdup ("result"); result = _tmp6_; _g_free0 (dbus_name); return result; } static gpointer _vala_code_node_ref0 (gpointer self) { return self ? vala_code_node_ref (self) : NULL; } static gchar* vala_gd_bus_server_module_generate_dbus_wrapper (ValaGDBusServerModule* self, ValaMethod* m, ValaObjectTypeSymbol* sym, gboolean ready) { gchar* result = NULL; ValaMethod* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; gchar* _tmp3_ = NULL; gchar* _tmp4_; gchar* wrapper_name; ValaMethod* _tmp5_; ValaMethod* _tmp6_; ValaMethod* _tmp7_; gboolean _tmp17_; const gchar* _tmp20_; ValaCCodeFunction* _tmp21_; ValaCCodeFunction* function; ValaCCodeFunction* _tmp22_; gboolean _tmp23_; ValaCCodeFunction* _tmp47_; gboolean _tmp48_; ValaCCodeIdentifier* _tmp55_; ValaCCodeIdentifier* _tmp56_; ValaCCodeFunctionCall* _tmp57_; ValaCCodeFunctionCall* _tmp58_; ValaCCodeFunctionCall* connection; ValaCCodeFunctionCall* _tmp59_; ValaCCodeIdentifier* _tmp60_; ValaCCodeIdentifier* _tmp61_; ValaMethod* _tmp62_; gboolean _tmp63_ = FALSE; gboolean no_reply; ValaMethod* _tmp64_; gboolean _tmp65_ = FALSE; gboolean uses_fd; gboolean _tmp66_; gboolean uses_error; gboolean _tmp68_ = FALSE; ValaMethod* _tmp69_; gboolean _tmp70_; gboolean _tmp71_; gboolean _tmp73_; gboolean _tmp80_; ValaCCodeFunctionCall* ccall = NULL; gboolean _tmp100_; gboolean _tmp129_; gboolean _tmp410_ = FALSE; ValaMethod* _tmp411_; gboolean _tmp412_; gboolean _tmp413_; gboolean _tmp415_; gboolean _tmp448_ = FALSE; ValaMethod* _tmp449_; gboolean _tmp450_; gboolean _tmp451_; gboolean _tmp453_; gboolean _tmp465_ = FALSE; ValaMethod* _tmp466_; gboolean _tmp467_; gboolean _tmp468_; gboolean _tmp470_; gboolean _tmp482_ = FALSE; gboolean _tmp483_; gboolean _tmp490_; gboolean _tmp881_ = FALSE; gboolean _tmp882_; gboolean _tmp889_; ValaCCodeFile* _tmp930_; ValaCCodeFunction* _tmp931_; ValaCCodeFile* _tmp932_; ValaCCodeFunction* _tmp933_; gboolean _tmp934_ = FALSE; ValaMethod* _tmp935_; gboolean _tmp936_; gboolean _tmp937_; gboolean _tmp939_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (m != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = m; _tmp1_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp0_); _tmp2_ = _tmp1_; _tmp3_ = g_strdup_printf ("_dbus_%s", _tmp2_); _tmp4_ = _tmp3_; _g_free0 (_tmp2_); wrapper_name = _tmp4_; _tmp5_ = m; _tmp6_ = vala_method_get_base_method (_tmp5_); _tmp7_ = _tmp6_; if (_tmp7_ != NULL) { ValaMethod* _tmp8_; ValaMethod* _tmp9_; ValaMethod* _tmp10_; _tmp8_ = m; _tmp9_ = vala_method_get_base_method (_tmp8_); _tmp10_ = _tmp9_; m = _tmp10_; } else { ValaMethod* _tmp11_; ValaMethod* _tmp12_; ValaMethod* _tmp13_; _tmp11_ = m; _tmp12_ = vala_method_get_base_interface_method (_tmp11_); _tmp13_ = _tmp12_; if (_tmp13_ != NULL) { ValaMethod* _tmp14_; ValaMethod* _tmp15_; ValaMethod* _tmp16_; _tmp14_ = m; _tmp15_ = vala_method_get_base_interface_method (_tmp14_); _tmp16_ = _tmp15_; m = _tmp16_; } } _tmp17_ = ready; if (_tmp17_) { const gchar* _tmp18_; gchar* _tmp19_; _tmp18_ = wrapper_name; _tmp19_ = g_strconcat (_tmp18_, "_ready", NULL); _g_free0 (wrapper_name); wrapper_name = _tmp19_; } _tmp20_ = wrapper_name; _tmp21_ = vala_ccode_function_new (_tmp20_, "void"); function = _tmp21_; _tmp22_ = function; vala_ccode_function_set_modifiers (_tmp22_, VALA_CCODE_MODIFIERS_STATIC); _tmp23_ = ready; if (!_tmp23_) { ValaCCodeFunction* _tmp24_; ValaObjectTypeSymbol* _tmp25_; gchar* _tmp26_ = NULL; gchar* _tmp27_; gchar* _tmp28_; gchar* _tmp29_; ValaCCodeParameter* _tmp30_; ValaCCodeParameter* _tmp31_; ValaCCodeFunction* _tmp32_; ValaCCodeParameter* _tmp33_; ValaCCodeParameter* _tmp34_; ValaCCodeFunction* _tmp35_; ValaCCodeParameter* _tmp36_; ValaCCodeParameter* _tmp37_; _tmp24_ = function; _tmp25_ = sym; _tmp26_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp25_); _tmp27_ = _tmp26_; _tmp28_ = g_strconcat (_tmp27_, "*", NULL); _tmp29_ = _tmp28_; _tmp30_ = vala_ccode_parameter_new ("self", _tmp29_); _tmp31_ = _tmp30_; vala_ccode_function_add_parameter (_tmp24_, _tmp31_); _vala_ccode_node_unref0 (_tmp31_); _g_free0 (_tmp29_); _g_free0 (_tmp27_); _tmp32_ = function; _tmp33_ = vala_ccode_parameter_new ("parameters", "GVariant*"); _tmp34_ = _tmp33_; vala_ccode_function_add_parameter (_tmp32_, _tmp34_); _vala_ccode_node_unref0 (_tmp34_); _tmp35_ = function; _tmp36_ = vala_ccode_parameter_new ("invocation", "GDBusMethodInvocation*"); _tmp37_ = _tmp36_; vala_ccode_function_add_parameter (_tmp35_, _tmp37_); _vala_ccode_node_unref0 (_tmp37_); } else { ValaCCodeFunction* _tmp38_; ValaCCodeParameter* _tmp39_; ValaCCodeParameter* _tmp40_; ValaCCodeFunction* _tmp41_; ValaCCodeParameter* _tmp42_; ValaCCodeParameter* _tmp43_; ValaCCodeFunction* _tmp44_; ValaCCodeParameter* _tmp45_; ValaCCodeParameter* _tmp46_; _tmp38_ = function; _tmp39_ = vala_ccode_parameter_new ("source_object", "GObject *"); _tmp40_ = _tmp39_; vala_ccode_function_add_parameter (_tmp38_, _tmp40_); _vala_ccode_node_unref0 (_tmp40_); _tmp41_ = function; _tmp42_ = vala_ccode_parameter_new ("_res_", "GAsyncResult *"); _tmp43_ = _tmp42_; vala_ccode_function_add_parameter (_tmp41_, _tmp43_); _vala_ccode_node_unref0 (_tmp43_); _tmp44_ = function; _tmp45_ = vala_ccode_parameter_new ("_user_data_", "gpointer"); _tmp46_ = _tmp45_; vala_ccode_function_add_parameter (_tmp44_, _tmp46_); _vala_ccode_node_unref0 (_tmp46_); } _tmp47_ = function; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp47_); _tmp48_ = ready; if (_tmp48_) { ValaCCodeFunction* _tmp49_; ValaCCodeFunction* _tmp50_; ValaCCodeIdentifier* _tmp51_; ValaCCodeIdentifier* _tmp52_; ValaCCodeVariableDeclarator* _tmp53_; ValaCCodeVariableDeclarator* _tmp54_; _tmp49_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp50_ = _tmp49_; _tmp51_ = vala_ccode_identifier_new ("_user_data_"); _tmp52_ = _tmp51_; _tmp53_ = vala_ccode_variable_declarator_new ("invocation", (ValaCCodeExpression*) _tmp52_, NULL); _tmp54_ = _tmp53_; vala_ccode_function_add_declaration (_tmp50_, "GDBusMethodInvocation *", (ValaCCodeDeclarator*) _tmp54_, 0); _vala_ccode_node_unref0 (_tmp54_); _vala_ccode_node_unref0 (_tmp52_); } _tmp55_ = vala_ccode_identifier_new ("g_dbus_method_invocation_get_connection"); _tmp56_ = _tmp55_; _tmp57_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp56_); _tmp58_ = _tmp57_; _vala_ccode_node_unref0 (_tmp56_); connection = _tmp58_; _tmp59_ = connection; _tmp60_ = vala_ccode_identifier_new ("invocation"); _tmp61_ = _tmp60_; vala_ccode_function_call_add_argument (_tmp59_, (ValaCCodeExpression*) _tmp61_); _vala_ccode_node_unref0 (_tmp61_); _tmp62_ = m; _tmp63_ = vala_gd_bus_module_is_dbus_no_reply (_tmp62_); no_reply = _tmp63_; _tmp64_ = m; _tmp65_ = vala_gd_bus_module_dbus_method_uses_file_descriptor ((ValaGDBusModule*) self, _tmp64_); uses_fd = _tmp65_; _tmp66_ = uses_fd; if (_tmp66_) { ValaCCodeFile* _tmp67_; _tmp67_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp67_, "gio/gunixfdlist.h", FALSE); } uses_error = FALSE; _tmp69_ = m; _tmp70_ = vala_method_get_coroutine (_tmp69_); _tmp71_ = _tmp70_; if (!_tmp71_) { _tmp68_ = TRUE; } else { gboolean _tmp72_; _tmp72_ = ready; _tmp68_ = _tmp72_; } _tmp73_ = _tmp68_; if (_tmp73_) { ValaCCodeFunction* _tmp74_; ValaCCodeFunction* _tmp75_; ValaCCodeConstant* _tmp76_; ValaCCodeConstant* _tmp77_; ValaCCodeVariableDeclarator* _tmp78_; ValaCCodeVariableDeclarator* _tmp79_; _tmp74_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp75_ = _tmp74_; _tmp76_ = vala_ccode_constant_new ("NULL"); _tmp77_ = _tmp76_; _tmp78_ = vala_ccode_variable_declarator_new_zero ("error", (ValaCCodeExpression*) _tmp77_, NULL); _tmp79_ = _tmp78_; vala_ccode_function_add_declaration (_tmp75_, "GError*", (ValaCCodeDeclarator*) _tmp79_, 0); _vala_ccode_node_unref0 (_tmp79_); _vala_ccode_node_unref0 (_tmp77_); uses_error = TRUE; } _tmp80_ = ready; if (!_tmp80_) { ValaCCodeFunction* _tmp81_; ValaCCodeFunction* _tmp82_; ValaCCodeVariableDeclarator* _tmp83_; ValaCCodeVariableDeclarator* _tmp84_; ValaCCodeIdentifier* _tmp85_; ValaCCodeIdentifier* _tmp86_; ValaCCodeFunctionCall* _tmp87_; ValaCCodeFunctionCall* _tmp88_; ValaCCodeFunctionCall* iter_init; ValaCCodeFunctionCall* _tmp89_; ValaCCodeIdentifier* _tmp90_; ValaCCodeIdentifier* _tmp91_; ValaCCodeUnaryExpression* _tmp92_; ValaCCodeUnaryExpression* _tmp93_; ValaCCodeFunctionCall* _tmp94_; ValaCCodeIdentifier* _tmp95_; ValaCCodeIdentifier* _tmp96_; ValaCCodeFunction* _tmp97_; ValaCCodeFunction* _tmp98_; ValaCCodeFunctionCall* _tmp99_; _tmp81_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp82_ = _tmp81_; _tmp83_ = vala_ccode_variable_declarator_new ("_arguments_iter", NULL, NULL); _tmp84_ = _tmp83_; vala_ccode_function_add_declaration (_tmp82_, "GVariantIter", (ValaCCodeDeclarator*) _tmp84_, 0); _vala_ccode_node_unref0 (_tmp84_); _tmp85_ = vala_ccode_identifier_new ("g_variant_iter_init"); _tmp86_ = _tmp85_; _tmp87_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp86_); _tmp88_ = _tmp87_; _vala_ccode_node_unref0 (_tmp86_); iter_init = _tmp88_; _tmp89_ = iter_init; _tmp90_ = vala_ccode_identifier_new ("_arguments_iter"); _tmp91_ = _tmp90_; _tmp92_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp91_); _tmp93_ = _tmp92_; vala_ccode_function_call_add_argument (_tmp89_, (ValaCCodeExpression*) _tmp93_); _vala_ccode_node_unref0 (_tmp93_); _vala_ccode_node_unref0 (_tmp91_); _tmp94_ = iter_init; _tmp95_ = vala_ccode_identifier_new ("parameters"); _tmp96_ = _tmp95_; vala_ccode_function_call_add_argument (_tmp94_, (ValaCCodeExpression*) _tmp96_); _vala_ccode_node_unref0 (_tmp96_); _tmp97_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp98_ = _tmp97_; _tmp99_ = iter_init; vala_ccode_function_add_expression (_tmp98_, (ValaCCodeExpression*) _tmp99_); _vala_ccode_node_unref0 (iter_init); } _tmp100_ = ready; if (!_tmp100_) { ValaMethod* _tmp101_; gchar* _tmp102_ = NULL; gchar* _tmp103_; ValaCCodeIdentifier* _tmp104_; ValaCCodeIdentifier* _tmp105_; ValaCCodeFunctionCall* _tmp106_; ValaCCodeFunctionCall* _tmp107_; ValaCCodeIdentifier* _tmp108_; ValaCCodeIdentifier* _tmp109_; _tmp101_ = m; _tmp102_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp101_); _tmp103_ = _tmp102_; _tmp104_ = vala_ccode_identifier_new (_tmp103_); _tmp105_ = _tmp104_; _tmp106_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp105_); _vala_ccode_node_unref0 (ccall); ccall = _tmp106_; _vala_ccode_node_unref0 (_tmp105_); _g_free0 (_tmp103_); _tmp107_ = ccall; _tmp108_ = vala_ccode_identifier_new ("self"); _tmp109_ = _tmp108_; vala_ccode_function_call_add_argument (_tmp107_, (ValaCCodeExpression*) _tmp109_); _vala_ccode_node_unref0 (_tmp109_); } else { ValaMethod* _tmp110_; gchar* _tmp111_ = NULL; gchar* _tmp112_; ValaCCodeIdentifier* _tmp113_; ValaCCodeIdentifier* _tmp114_; ValaCCodeFunctionCall* _tmp115_; ValaCCodeFunctionCall* _tmp116_; ValaCCodeIdentifier* _tmp117_; ValaCCodeIdentifier* _tmp118_; ValaObjectTypeSymbol* _tmp119_; gchar* _tmp120_ = NULL; gchar* _tmp121_; gchar* _tmp122_; gchar* _tmp123_; ValaCCodeCastExpression* _tmp124_; ValaCCodeCastExpression* _tmp125_; ValaCCodeFunctionCall* _tmp126_; ValaCCodeIdentifier* _tmp127_; ValaCCodeIdentifier* _tmp128_; _tmp110_ = m; _tmp111_ = vala_ccode_base_module_get_ccode_finish_name (_tmp110_); _tmp112_ = _tmp111_; _tmp113_ = vala_ccode_identifier_new (_tmp112_); _tmp114_ = _tmp113_; _tmp115_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp114_); _vala_ccode_node_unref0 (ccall); ccall = _tmp115_; _vala_ccode_node_unref0 (_tmp114_); _g_free0 (_tmp112_); _tmp116_ = ccall; _tmp117_ = vala_ccode_identifier_new ("source_object"); _tmp118_ = _tmp117_; _tmp119_ = sym; _tmp120_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp119_); _tmp121_ = _tmp120_; _tmp122_ = g_strconcat (_tmp121_, "*", NULL); _tmp123_ = _tmp122_; _tmp124_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp118_, _tmp123_); _tmp125_ = _tmp124_; vala_ccode_function_call_add_argument (_tmp116_, (ValaCCodeExpression*) _tmp125_); _vala_ccode_node_unref0 (_tmp125_); _g_free0 (_tmp123_); _g_free0 (_tmp121_); _vala_ccode_node_unref0 (_tmp118_); _tmp126_ = ccall; _tmp127_ = vala_ccode_identifier_new ("_res_"); _tmp128_ = _tmp127_; vala_ccode_function_call_add_argument (_tmp126_, (ValaCCodeExpression*) _tmp128_); _vala_ccode_node_unref0 (_tmp128_); } _tmp129_ = ready; if (!_tmp129_) { gboolean _tmp130_; _tmp130_ = uses_fd; if (_tmp130_) { ValaCCodeFunction* _tmp131_; ValaCCodeFunction* _tmp132_; ValaCCodeConstant* _tmp133_; ValaCCodeConstant* _tmp134_; ValaCCodeVariableDeclarator* _tmp135_; ValaCCodeVariableDeclarator* _tmp136_; _tmp131_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp132_ = _tmp131_; _tmp133_ = vala_ccode_constant_new ("0"); _tmp134_ = _tmp133_; _tmp135_ = vala_ccode_variable_declarator_new_zero ("_fd_index", (ValaCCodeExpression*) _tmp134_, NULL); _tmp136_ = _tmp135_; vala_ccode_function_add_declaration (_tmp132_, "gint", (ValaCCodeDeclarator*) _tmp136_, 0); _vala_ccode_node_unref0 (_tmp136_); _vala_ccode_node_unref0 (_tmp134_); } { ValaMethod* _tmp137_; ValaList* _tmp138_ = NULL; ValaList* _param_list; ValaList* _tmp139_; gint _tmp140_; gint _tmp141_; gint _param_size; gint _param_index; _tmp137_ = m; _tmp138_ = vala_method_get_parameters (_tmp137_); _param_list = _tmp138_; _tmp139_ = _param_list; _tmp140_ = vala_collection_get_size ((ValaCollection*) _tmp139_); _tmp141_ = _tmp140_; _param_size = _tmp141_; _param_index = -1; while (TRUE) { gint _tmp142_; gint _tmp143_; gint _tmp144_; ValaList* _tmp145_; gint _tmp146_; gpointer _tmp147_ = NULL; ValaParameter* param; ValaParameter* _tmp148_; const gchar* _tmp149_; const gchar* _tmp150_; gchar* _tmp151_ = NULL; gchar* param_name; ValaParameter* _tmp152_; ValaParameterDirection _tmp153_; ValaParameterDirection _tmp154_; gboolean _tmp155_ = FALSE; ValaParameter* _tmp156_; ValaDataType* _tmp157_; ValaDataType* _tmp158_; gboolean _tmp166_; gboolean _tmp167_ = FALSE; ValaParameter* _tmp168_; ValaDataType* _tmp169_; ValaDataType* _tmp170_; gboolean _tmp178_; ValaParameter* _tmp179_; ValaDataType* _tmp180_; ValaDataType* _tmp181_; ValaDataType* _tmp182_ = NULL; ValaDataType* owned_type; ValaDataType* _tmp183_; ValaCCodeFunction* _tmp184_; ValaCCodeFunction* _tmp185_; ValaDataType* _tmp186_; gchar* _tmp187_ = NULL; gchar* _tmp188_; const gchar* _tmp189_; ValaParameter* _tmp190_; ValaDataType* _tmp191_; ValaDataType* _tmp192_; ValaCCodeExpression* _tmp193_ = NULL; ValaCCodeExpression* _tmp194_; ValaCCodeVariableDeclarator* _tmp195_; ValaCCodeVariableDeclarator* _tmp196_; ValaParameter* _tmp197_; ValaDataType* _tmp198_; ValaDataType* _tmp199_; ValaArrayType* _tmp200_; ValaArrayType* array_type; ValaArrayType* _tmp201_; ValaCCodeIdentifier* _tmp219_; ValaCCodeIdentifier* _tmp220_; ValaCCodeFunctionCall* _tmp221_; ValaCCodeFunctionCall* _tmp222_; ValaCCodeFunctionCall* message_expr; ValaCCodeFunctionCall* _tmp223_; ValaCCodeIdentifier* _tmp224_; ValaCCodeIdentifier* _tmp225_; gboolean may_fail = FALSE; ValaParameter* _tmp226_; ValaDataType* _tmp227_; ValaDataType* _tmp228_; ValaCCodeFunctionCall* _tmp229_; ValaCCodeIdentifier* _tmp230_; ValaCCodeIdentifier* _tmp231_; const gchar* _tmp232_; ValaCCodeIdentifier* _tmp233_; ValaCCodeIdentifier* _tmp234_; ValaParameter* _tmp235_; ValaCCodeIdentifier* _tmp236_; ValaCCodeIdentifier* _tmp237_; ValaCCodeUnaryExpression* _tmp238_; ValaCCodeUnaryExpression* _tmp239_; gboolean _tmp240_ = FALSE; gboolean _tmp241_; _tmp142_ = _param_index; _param_index = _tmp142_ + 1; _tmp143_ = _param_index; _tmp144_ = _param_size; if (!(_tmp143_ < _tmp144_)) { break; } _tmp145_ = _param_list; _tmp146_ = _param_index; _tmp147_ = vala_list_get (_tmp145_, _tmp146_); param = (ValaParameter*) _tmp147_; _tmp148_ = param; _tmp149_ = vala_symbol_get_name ((ValaSymbol*) _tmp148_); _tmp150_ = _tmp149_; _tmp151_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, _tmp150_); param_name = _tmp151_; _tmp152_ = param; _tmp153_ = vala_parameter_get_direction (_tmp152_); _tmp154_ = _tmp153_; if (_tmp154_ != VALA_PARAMETER_DIRECTION_IN) { _g_free0 (param_name); _vala_code_node_unref0 (param); continue; } _tmp156_ = param; _tmp157_ = vala_variable_get_variable_type ((ValaVariable*) _tmp156_); _tmp158_ = _tmp157_; if (VALA_IS_OBJECT_TYPE (_tmp158_)) { ValaParameter* _tmp159_; ValaDataType* _tmp160_; ValaDataType* _tmp161_; ValaTypeSymbol* _tmp162_; ValaTypeSymbol* _tmp163_; gchar* _tmp164_ = NULL; gchar* _tmp165_; _tmp159_ = param; _tmp160_ = vala_variable_get_variable_type ((ValaVariable*) _tmp159_); _tmp161_ = _tmp160_; _tmp162_ = vala_data_type_get_data_type (_tmp161_); _tmp163_ = _tmp162_; _tmp164_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp163_); _tmp165_ = _tmp164_; _tmp155_ = g_strcmp0 (_tmp165_, "GLib.Cancellable") == 0; _g_free0 (_tmp165_); } else { _tmp155_ = FALSE; } _tmp166_ = _tmp155_; if (_tmp166_) { _g_free0 (param_name); _vala_code_node_unref0 (param); continue; } _tmp168_ = param; _tmp169_ = vala_variable_get_variable_type ((ValaVariable*) _tmp168_); _tmp170_ = _tmp169_; if (VALA_IS_OBJECT_TYPE (_tmp170_)) { ValaParameter* _tmp171_; ValaDataType* _tmp172_; ValaDataType* _tmp173_; ValaTypeSymbol* _tmp174_; ValaTypeSymbol* _tmp175_; gchar* _tmp176_ = NULL; gchar* _tmp177_; _tmp171_ = param; _tmp172_ = vala_variable_get_variable_type ((ValaVariable*) _tmp171_); _tmp173_ = _tmp172_; _tmp174_ = vala_data_type_get_data_type (_tmp173_); _tmp175_ = _tmp174_; _tmp176_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp175_); _tmp177_ = _tmp176_; _tmp167_ = g_strcmp0 (_tmp177_, "GLib.BusName") == 0; _g_free0 (_tmp177_); } else { _tmp167_ = FALSE; } _tmp178_ = _tmp167_; if (_tmp178_) { _g_free0 (param_name); _vala_code_node_unref0 (param); continue; } _tmp179_ = param; _tmp180_ = vala_variable_get_variable_type ((ValaVariable*) _tmp179_); _tmp181_ = _tmp180_; _tmp182_ = vala_data_type_copy (_tmp181_); owned_type = _tmp182_; _tmp183_ = owned_type; vala_data_type_set_value_owned (_tmp183_, TRUE); _tmp184_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp185_ = _tmp184_; _tmp186_ = owned_type; _tmp187_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp186_); _tmp188_ = _tmp187_; _tmp189_ = param_name; _tmp190_ = param; _tmp191_ = vala_variable_get_variable_type ((ValaVariable*) _tmp190_); _tmp192_ = _tmp191_; _tmp193_ = vala_ccode_base_module_default_value_for_type ((ValaCCodeBaseModule*) self, _tmp192_, TRUE); _tmp194_ = _tmp193_; _tmp195_ = vala_ccode_variable_declarator_new_zero (_tmp189_, _tmp194_, NULL); _tmp196_ = _tmp195_; vala_ccode_function_add_declaration (_tmp185_, _tmp188_, (ValaCCodeDeclarator*) _tmp196_, 0); _vala_ccode_node_unref0 (_tmp196_); _vala_ccode_node_unref0 (_tmp194_); _g_free0 (_tmp188_); _tmp197_ = param; _tmp198_ = vala_variable_get_variable_type ((ValaVariable*) _tmp197_); _tmp199_ = _tmp198_; _tmp200_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp199_) ? ((ValaArrayType*) _tmp199_) : NULL); array_type = _tmp200_; _tmp201_ = array_type; if (_tmp201_ != NULL) { { gint dim; dim = 1; { gboolean _tmp202_; _tmp202_ = TRUE; while (TRUE) { gboolean _tmp203_; gint _tmp205_; ValaArrayType* _tmp206_; gint _tmp207_; gint _tmp208_; ValaParameter* _tmp209_; gint _tmp210_; gchar* _tmp211_ = NULL; gchar* length_cname; ValaCCodeFunction* _tmp212_; ValaCCodeFunction* _tmp213_; const gchar* _tmp214_; ValaCCodeConstant* _tmp215_; ValaCCodeConstant* _tmp216_; ValaCCodeVariableDeclarator* _tmp217_; ValaCCodeVariableDeclarator* _tmp218_; _tmp203_ = _tmp202_; if (!_tmp203_) { gint _tmp204_; _tmp204_ = dim; dim = _tmp204_ + 1; } _tmp202_ = FALSE; _tmp205_ = dim; _tmp206_ = array_type; _tmp207_ = vala_array_type_get_rank (_tmp206_); _tmp208_ = _tmp207_; if (!(_tmp205_ <= _tmp208_)) { break; } _tmp209_ = param; _tmp210_ = dim; _tmp211_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, _tmp209_, _tmp210_); length_cname = _tmp211_; _tmp212_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp213_ = _tmp212_; _tmp214_ = length_cname; _tmp215_ = vala_ccode_constant_new ("0"); _tmp216_ = _tmp215_; _tmp217_ = vala_ccode_variable_declarator_new_zero (_tmp214_, (ValaCCodeExpression*) _tmp216_, NULL); _tmp218_ = _tmp217_; vala_ccode_function_add_declaration (_tmp213_, "int", (ValaCCodeDeclarator*) _tmp218_, 0); _vala_ccode_node_unref0 (_tmp218_); _vala_ccode_node_unref0 (_tmp216_); _g_free0 (length_cname); } } } } _tmp219_ = vala_ccode_identifier_new ("g_dbus_method_invocation_get_message"); _tmp220_ = _tmp219_; _tmp221_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp220_); _tmp222_ = _tmp221_; _vala_ccode_node_unref0 (_tmp220_); message_expr = _tmp222_; _tmp223_ = message_expr; _tmp224_ = vala_ccode_identifier_new ("invocation"); _tmp225_ = _tmp224_; vala_ccode_function_call_add_argument (_tmp223_, (ValaCCodeExpression*) _tmp225_); _vala_ccode_node_unref0 (_tmp225_); _tmp226_ = param; _tmp227_ = vala_variable_get_variable_type ((ValaVariable*) _tmp226_); _tmp228_ = _tmp227_; _tmp229_ = message_expr; _tmp230_ = vala_ccode_identifier_new ("_arguments_iter"); _tmp231_ = _tmp230_; _tmp232_ = param_name; _tmp233_ = vala_ccode_identifier_new (_tmp232_); _tmp234_ = _tmp233_; _tmp235_ = param; _tmp236_ = vala_ccode_identifier_new ("error"); _tmp237_ = _tmp236_; _tmp238_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp237_); _tmp239_ = _tmp238_; vala_gd_bus_module_receive_dbus_value ((ValaGDBusModule*) self, _tmp228_, (ValaCCodeExpression*) _tmp229_, (ValaCCodeExpression*) _tmp231_, (ValaCCodeExpression*) _tmp234_, (ValaSymbol*) _tmp235_, (ValaCCodeExpression*) _tmp239_, &_tmp240_); may_fail = _tmp240_; _vala_ccode_node_unref0 (_tmp239_); _vala_ccode_node_unref0 (_tmp237_); _vala_ccode_node_unref0 (_tmp234_); _vala_ccode_node_unref0 (_tmp231_); _tmp241_ = may_fail; if (_tmp241_) { gboolean _tmp242_; ValaCCodeFunction* _tmp249_; ValaCCodeFunction* _tmp250_; ValaCCodeIdentifier* _tmp251_; ValaCCodeIdentifier* _tmp252_; ValaCCodeIdentifier* _tmp253_; ValaCCodeIdentifier* _tmp254_; ValaCCodeFunctionCall* _tmp255_; ValaCCodeFunctionCall* _tmp256_; ValaCCodeFunctionCall* return_error; ValaCCodeFunctionCall* _tmp257_; ValaCCodeIdentifier* _tmp258_; ValaCCodeIdentifier* _tmp259_; ValaCCodeFunctionCall* _tmp260_; ValaCCodeIdentifier* _tmp261_; ValaCCodeIdentifier* _tmp262_; ValaCCodeFunction* _tmp263_; ValaCCodeFunction* _tmp264_; ValaCCodeFunctionCall* _tmp265_; ValaCCodeFunction* _tmp266_; ValaCCodeFunction* _tmp267_; ValaCCodeFunction* _tmp268_; ValaCCodeFunction* _tmp269_; _tmp242_ = uses_error; if (!_tmp242_) { ValaCCodeFunction* _tmp243_; ValaCCodeFunction* _tmp244_; ValaCCodeConstant* _tmp245_; ValaCCodeConstant* _tmp246_; ValaCCodeVariableDeclarator* _tmp247_; ValaCCodeVariableDeclarator* _tmp248_; _tmp243_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp244_ = _tmp243_; _tmp245_ = vala_ccode_constant_new ("NULL"); _tmp246_ = _tmp245_; _tmp247_ = vala_ccode_variable_declarator_new_zero ("error", (ValaCCodeExpression*) _tmp246_, NULL); _tmp248_ = _tmp247_; vala_ccode_function_add_declaration (_tmp244_, "GError*", (ValaCCodeDeclarator*) _tmp248_, 0); _vala_ccode_node_unref0 (_tmp248_); _vala_ccode_node_unref0 (_tmp246_); uses_error = TRUE; } _tmp249_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp250_ = _tmp249_; _tmp251_ = vala_ccode_identifier_new ("error"); _tmp252_ = _tmp251_; vala_ccode_function_open_if (_tmp250_, (ValaCCodeExpression*) _tmp252_); _vala_ccode_node_unref0 (_tmp252_); _tmp253_ = vala_ccode_identifier_new ("g_dbus_method_invocation_return_gerror"); _tmp254_ = _tmp253_; _tmp255_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp254_); _tmp256_ = _tmp255_; _vala_ccode_node_unref0 (_tmp254_); return_error = _tmp256_; _tmp257_ = return_error; _tmp258_ = vala_ccode_identifier_new ("invocation"); _tmp259_ = _tmp258_; vala_ccode_function_call_add_argument (_tmp257_, (ValaCCodeExpression*) _tmp259_); _vala_ccode_node_unref0 (_tmp259_); _tmp260_ = return_error; _tmp261_ = vala_ccode_identifier_new ("error"); _tmp262_ = _tmp261_; vala_ccode_function_call_add_argument (_tmp260_, (ValaCCodeExpression*) _tmp262_); _vala_ccode_node_unref0 (_tmp262_); _tmp263_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp264_ = _tmp263_; _tmp265_ = return_error; vala_ccode_function_add_expression (_tmp264_, (ValaCCodeExpression*) _tmp265_); _tmp266_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp267_ = _tmp266_; vala_ccode_function_add_return (_tmp267_, NULL); _tmp268_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp269_ = _tmp268_; vala_ccode_function_close (_tmp269_); _vala_ccode_node_unref0 (return_error); } _vala_ccode_node_unref0 (message_expr); _vala_code_node_unref0 (array_type); _vala_code_node_unref0 (owned_type); _g_free0 (param_name); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } } { ValaMethod* _tmp270_; ValaList* _tmp271_ = NULL; ValaList* _param_list; ValaList* _tmp272_; gint _tmp273_; gint _tmp274_; gint _param_size; gint _param_index; _tmp270_ = m; _tmp271_ = vala_method_get_parameters (_tmp270_); _param_list = _tmp271_; _tmp272_ = _param_list; _tmp273_ = vala_collection_get_size ((ValaCollection*) _tmp272_); _tmp274_ = _tmp273_; _param_size = _tmp274_; _param_index = -1; while (TRUE) { gint _tmp275_; gint _tmp276_; gint _tmp277_; ValaList* _tmp278_; gint _tmp279_; gpointer _tmp280_ = NULL; ValaParameter* param; ValaParameter* _tmp281_; const gchar* _tmp282_; const gchar* _tmp283_; gchar* _tmp284_ = NULL; gchar* param_name; gboolean _tmp285_ = FALSE; ValaParameter* _tmp286_; ValaParameterDirection _tmp287_; ValaParameterDirection _tmp288_; gboolean _tmp290_; ValaParameter* _tmp365_; ValaDataType* _tmp366_; ValaDataType* _tmp367_; ValaArrayType* _tmp368_; ValaArrayType* array_type; ValaArrayType* _tmp369_; _tmp275_ = _param_index; _param_index = _tmp275_ + 1; _tmp276_ = _param_index; _tmp277_ = _param_size; if (!(_tmp276_ < _tmp277_)) { break; } _tmp278_ = _param_list; _tmp279_ = _param_index; _tmp280_ = vala_list_get (_tmp278_, _tmp279_); param = (ValaParameter*) _tmp280_; _tmp281_ = param; _tmp282_ = vala_symbol_get_name ((ValaSymbol*) _tmp281_); _tmp283_ = _tmp282_; _tmp284_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, _tmp283_); param_name = _tmp284_; _tmp286_ = param; _tmp287_ = vala_parameter_get_direction (_tmp286_); _tmp288_ = _tmp287_; if (_tmp288_ == VALA_PARAMETER_DIRECTION_IN) { gboolean _tmp289_; _tmp289_ = ready; _tmp285_ = !_tmp289_; } else { _tmp285_ = FALSE; } _tmp290_ = _tmp285_; if (_tmp290_) { gboolean _tmp291_ = FALSE; ValaParameter* _tmp292_; ValaDataType* _tmp293_; ValaDataType* _tmp294_; gboolean _tmp302_; gboolean _tmp306_ = FALSE; ValaParameter* _tmp307_; ValaDataType* _tmp308_; ValaDataType* _tmp309_; gboolean _tmp317_; ValaParameter* _tmp327_; ValaDataType* _tmp328_; ValaDataType* _tmp329_; ValaTypeSymbol* _tmp330_; ValaTypeSymbol* _tmp331_; ValaStruct* _tmp332_; ValaStruct* st; gboolean _tmp333_ = FALSE; ValaStruct* _tmp334_; gboolean _tmp337_; _tmp292_ = param; _tmp293_ = vala_variable_get_variable_type ((ValaVariable*) _tmp292_); _tmp294_ = _tmp293_; if (VALA_IS_OBJECT_TYPE (_tmp294_)) { ValaParameter* _tmp295_; ValaDataType* _tmp296_; ValaDataType* _tmp297_; ValaTypeSymbol* _tmp298_; ValaTypeSymbol* _tmp299_; gchar* _tmp300_ = NULL; gchar* _tmp301_; _tmp295_ = param; _tmp296_ = vala_variable_get_variable_type ((ValaVariable*) _tmp295_); _tmp297_ = _tmp296_; _tmp298_ = vala_data_type_get_data_type (_tmp297_); _tmp299_ = _tmp298_; _tmp300_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp299_); _tmp301_ = _tmp300_; _tmp291_ = g_strcmp0 (_tmp301_, "GLib.Cancellable") == 0; _g_free0 (_tmp301_); } else { _tmp291_ = FALSE; } _tmp302_ = _tmp291_; if (_tmp302_) { ValaCCodeFunctionCall* _tmp303_; ValaCCodeConstant* _tmp304_; ValaCCodeConstant* _tmp305_; _tmp303_ = ccall; _tmp304_ = vala_ccode_constant_new ("NULL"); _tmp305_ = _tmp304_; vala_ccode_function_call_add_argument (_tmp303_, (ValaCCodeExpression*) _tmp305_); _vala_ccode_node_unref0 (_tmp305_); _g_free0 (param_name); _vala_code_node_unref0 (param); continue; } _tmp307_ = param; _tmp308_ = vala_variable_get_variable_type ((ValaVariable*) _tmp307_); _tmp309_ = _tmp308_; if (VALA_IS_OBJECT_TYPE (_tmp309_)) { ValaParameter* _tmp310_; ValaDataType* _tmp311_; ValaDataType* _tmp312_; ValaTypeSymbol* _tmp313_; ValaTypeSymbol* _tmp314_; gchar* _tmp315_ = NULL; gchar* _tmp316_; _tmp310_ = param; _tmp311_ = vala_variable_get_variable_type ((ValaVariable*) _tmp310_); _tmp312_ = _tmp311_; _tmp313_ = vala_data_type_get_data_type (_tmp312_); _tmp314_ = _tmp313_; _tmp315_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp314_); _tmp316_ = _tmp315_; _tmp306_ = g_strcmp0 (_tmp316_, "GLib.BusName") == 0; _g_free0 (_tmp316_); } else { _tmp306_ = FALSE; } _tmp317_ = _tmp306_; if (_tmp317_) { ValaCCodeIdentifier* _tmp318_; ValaCCodeIdentifier* _tmp319_; ValaCCodeFunctionCall* _tmp320_; ValaCCodeFunctionCall* _tmp321_; ValaCCodeFunctionCall* sender; ValaCCodeFunctionCall* _tmp322_; ValaCCodeIdentifier* _tmp323_; ValaCCodeIdentifier* _tmp324_; ValaCCodeFunctionCall* _tmp325_; ValaCCodeFunctionCall* _tmp326_; _tmp318_ = vala_ccode_identifier_new ("g_dbus_method_invocation_get_sender"); _tmp319_ = _tmp318_; _tmp320_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp319_); _tmp321_ = _tmp320_; _vala_ccode_node_unref0 (_tmp319_); sender = _tmp321_; _tmp322_ = sender; _tmp323_ = vala_ccode_identifier_new ("invocation"); _tmp324_ = _tmp323_; vala_ccode_function_call_add_argument (_tmp322_, (ValaCCodeExpression*) _tmp324_); _vala_ccode_node_unref0 (_tmp324_); _tmp325_ = ccall; _tmp326_ = sender; vala_ccode_function_call_add_argument (_tmp325_, (ValaCCodeExpression*) _tmp326_); _vala_ccode_node_unref0 (sender); _g_free0 (param_name); _vala_code_node_unref0 (param); continue; } _tmp327_ = param; _tmp328_ = vala_variable_get_variable_type ((ValaVariable*) _tmp327_); _tmp329_ = _tmp328_; _tmp330_ = vala_data_type_get_data_type (_tmp329_); _tmp331_ = _tmp330_; _tmp332_ = _vala_code_node_ref0 (VALA_IS_STRUCT (_tmp331_) ? ((ValaStruct*) _tmp331_) : NULL); st = _tmp332_; _tmp334_ = st; if (_tmp334_ != NULL) { ValaStruct* _tmp335_; gboolean _tmp336_ = FALSE; _tmp335_ = st; _tmp336_ = vala_struct_is_simple_type (_tmp335_); _tmp333_ = !_tmp336_; } else { _tmp333_ = FALSE; } _tmp337_ = _tmp333_; if (_tmp337_) { ValaCCodeFunctionCall* _tmp338_; const gchar* _tmp339_; ValaCCodeIdentifier* _tmp340_; ValaCCodeIdentifier* _tmp341_; ValaCCodeUnaryExpression* _tmp342_; ValaCCodeUnaryExpression* _tmp343_; _tmp338_ = ccall; _tmp339_ = param_name; _tmp340_ = vala_ccode_identifier_new (_tmp339_); _tmp341_ = _tmp340_; _tmp342_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp341_); _tmp343_ = _tmp342_; vala_ccode_function_call_add_argument (_tmp338_, (ValaCCodeExpression*) _tmp343_); _vala_ccode_node_unref0 (_tmp343_); _vala_ccode_node_unref0 (_tmp341_); } else { ValaCCodeFunctionCall* _tmp344_; const gchar* _tmp345_; ValaCCodeIdentifier* _tmp346_; ValaCCodeIdentifier* _tmp347_; _tmp344_ = ccall; _tmp345_ = param_name; _tmp346_ = vala_ccode_identifier_new (_tmp345_); _tmp347_ = _tmp346_; vala_ccode_function_call_add_argument (_tmp344_, (ValaCCodeExpression*) _tmp347_); _vala_ccode_node_unref0 (_tmp347_); } _vala_code_node_unref0 (st); } else { gboolean _tmp348_ = FALSE; ValaParameter* _tmp349_; ValaParameterDirection _tmp350_; ValaParameterDirection _tmp351_; gboolean _tmp358_; _tmp349_ = param; _tmp350_ = vala_parameter_get_direction (_tmp349_); _tmp351_ = _tmp350_; if (_tmp351_ == VALA_PARAMETER_DIRECTION_OUT) { gboolean _tmp352_ = FALSE; ValaMethod* _tmp353_; gboolean _tmp354_; gboolean _tmp355_; gboolean _tmp357_; _tmp353_ = m; _tmp354_ = vala_method_get_coroutine (_tmp353_); _tmp355_ = _tmp354_; if (!_tmp355_) { _tmp352_ = TRUE; } else { gboolean _tmp356_; _tmp356_ = ready; _tmp352_ = _tmp356_; } _tmp357_ = _tmp352_; _tmp348_ = _tmp357_; } else { _tmp348_ = FALSE; } _tmp358_ = _tmp348_; if (_tmp358_) { ValaCCodeFunctionCall* _tmp359_; const gchar* _tmp360_; ValaCCodeIdentifier* _tmp361_; ValaCCodeIdentifier* _tmp362_; ValaCCodeUnaryExpression* _tmp363_; ValaCCodeUnaryExpression* _tmp364_; _tmp359_ = ccall; _tmp360_ = param_name; _tmp361_ = vala_ccode_identifier_new (_tmp360_); _tmp362_ = _tmp361_; _tmp363_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp362_); _tmp364_ = _tmp363_; vala_ccode_function_call_add_argument (_tmp359_, (ValaCCodeExpression*) _tmp364_); _vala_ccode_node_unref0 (_tmp364_); _vala_ccode_node_unref0 (_tmp362_); } } _tmp365_ = param; _tmp366_ = vala_variable_get_variable_type ((ValaVariable*) _tmp365_); _tmp367_ = _tmp366_; _tmp368_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp367_) ? ((ValaArrayType*) _tmp367_) : NULL); array_type = _tmp368_; _tmp369_ = array_type; if (_tmp369_ != NULL) { { gint dim; dim = 1; { gboolean _tmp370_; _tmp370_ = TRUE; while (TRUE) { gboolean _tmp371_; gint _tmp373_; ValaArrayType* _tmp374_; gint _tmp375_; gint _tmp376_; ValaParameter* _tmp377_; gint _tmp378_; gchar* _tmp379_ = NULL; gchar* length_cname; gboolean _tmp380_ = FALSE; ValaParameter* _tmp381_; ValaParameterDirection _tmp382_; ValaParameterDirection _tmp383_; gboolean _tmp385_; _tmp371_ = _tmp370_; if (!_tmp371_) { gint _tmp372_; _tmp372_ = dim; dim = _tmp372_ + 1; } _tmp370_ = FALSE; _tmp373_ = dim; _tmp374_ = array_type; _tmp375_ = vala_array_type_get_rank (_tmp374_); _tmp376_ = _tmp375_; if (!(_tmp373_ <= _tmp376_)) { break; } _tmp377_ = param; _tmp378_ = dim; _tmp379_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, _tmp377_, _tmp378_); length_cname = _tmp379_; _tmp381_ = param; _tmp382_ = vala_parameter_get_direction (_tmp381_); _tmp383_ = _tmp382_; if (_tmp383_ == VALA_PARAMETER_DIRECTION_IN) { gboolean _tmp384_; _tmp384_ = ready; _tmp380_ = !_tmp384_; } else { _tmp380_ = FALSE; } _tmp385_ = _tmp380_; if (_tmp385_) { ValaCCodeFunctionCall* _tmp386_; const gchar* _tmp387_; ValaCCodeIdentifier* _tmp388_; ValaCCodeIdentifier* _tmp389_; _tmp386_ = ccall; _tmp387_ = length_cname; _tmp388_ = vala_ccode_identifier_new (_tmp387_); _tmp389_ = _tmp388_; vala_ccode_function_call_add_argument (_tmp386_, (ValaCCodeExpression*) _tmp389_); _vala_ccode_node_unref0 (_tmp389_); } else { gboolean _tmp390_ = FALSE; gboolean _tmp391_ = FALSE; ValaParameter* _tmp392_; ValaParameterDirection _tmp393_; ValaParameterDirection _tmp394_; gboolean _tmp396_; gboolean _tmp403_; _tmp392_ = param; _tmp393_ = vala_parameter_get_direction (_tmp392_); _tmp394_ = _tmp393_; if (_tmp394_ == VALA_PARAMETER_DIRECTION_OUT) { gboolean _tmp395_; _tmp395_ = no_reply; _tmp391_ = !_tmp395_; } else { _tmp391_ = FALSE; } _tmp396_ = _tmp391_; if (_tmp396_) { gboolean _tmp397_ = FALSE; ValaMethod* _tmp398_; gboolean _tmp399_; gboolean _tmp400_; gboolean _tmp402_; _tmp398_ = m; _tmp399_ = vala_method_get_coroutine (_tmp398_); _tmp400_ = _tmp399_; if (!_tmp400_) { _tmp397_ = TRUE; } else { gboolean _tmp401_; _tmp401_ = ready; _tmp397_ = _tmp401_; } _tmp402_ = _tmp397_; _tmp390_ = _tmp402_; } else { _tmp390_ = FALSE; } _tmp403_ = _tmp390_; if (_tmp403_) { ValaCCodeFunctionCall* _tmp404_; const gchar* _tmp405_; ValaCCodeIdentifier* _tmp406_; ValaCCodeIdentifier* _tmp407_; ValaCCodeUnaryExpression* _tmp408_; ValaCCodeUnaryExpression* _tmp409_; _tmp404_ = ccall; _tmp405_ = length_cname; _tmp406_ = vala_ccode_identifier_new (_tmp405_); _tmp407_ = _tmp406_; _tmp408_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp407_); _tmp409_ = _tmp408_; vala_ccode_function_call_add_argument (_tmp404_, (ValaCCodeExpression*) _tmp409_); _vala_ccode_node_unref0 (_tmp409_); _vala_ccode_node_unref0 (_tmp407_); } } _g_free0 (length_cname); } } } } _vala_code_node_unref0 (array_type); _g_free0 (param_name); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp411_ = m; _tmp412_ = vala_method_get_coroutine (_tmp411_); _tmp413_ = _tmp412_; if (!_tmp413_) { _tmp410_ = TRUE; } else { gboolean _tmp414_; _tmp414_ = ready; _tmp410_ = _tmp414_; } _tmp415_ = _tmp410_; if (_tmp415_) { ValaMethod* _tmp416_; ValaDataType* _tmp417_; ValaDataType* _tmp418_; _tmp416_ = m; _tmp417_ = vala_method_get_return_type (_tmp416_); _tmp418_ = _tmp417_; if (!VALA_IS_VOID_TYPE (_tmp418_)) { ValaMethod* _tmp419_; ValaDataType* _tmp420_; ValaDataType* _tmp421_; gboolean _tmp422_ = FALSE; _tmp419_ = m; _tmp420_ = vala_method_get_return_type (_tmp419_); _tmp421_ = _tmp420_; _tmp422_ = vala_data_type_is_real_non_null_struct_type (_tmp421_); if (_tmp422_) { ValaCCodeFunctionCall* _tmp423_; ValaCCodeIdentifier* _tmp424_; ValaCCodeIdentifier* _tmp425_; ValaCCodeUnaryExpression* _tmp426_; ValaCCodeUnaryExpression* _tmp427_; _tmp423_ = ccall; _tmp424_ = vala_ccode_identifier_new ("result"); _tmp425_ = _tmp424_; _tmp426_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp425_); _tmp427_ = _tmp426_; vala_ccode_function_call_add_argument (_tmp423_, (ValaCCodeExpression*) _tmp427_); _vala_ccode_node_unref0 (_tmp427_); _vala_ccode_node_unref0 (_tmp425_); } else { ValaMethod* _tmp428_; ValaDataType* _tmp429_; ValaDataType* _tmp430_; ValaArrayType* _tmp431_; ValaArrayType* array_type; ValaArrayType* _tmp432_; _tmp428_ = m; _tmp429_ = vala_method_get_return_type (_tmp428_); _tmp430_ = _tmp429_; _tmp431_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp430_) ? ((ValaArrayType*) _tmp430_) : NULL); array_type = _tmp431_; _tmp432_ = array_type; if (_tmp432_ != NULL) { { gint dim; dim = 1; { gboolean _tmp433_; _tmp433_ = TRUE; while (TRUE) { gboolean _tmp434_; gint _tmp436_; ValaArrayType* _tmp437_; gint _tmp438_; gint _tmp439_; gint _tmp440_; gchar* _tmp441_ = NULL; gchar* length_cname; ValaCCodeFunctionCall* _tmp442_; const gchar* _tmp443_; ValaCCodeIdentifier* _tmp444_; ValaCCodeIdentifier* _tmp445_; ValaCCodeUnaryExpression* _tmp446_; ValaCCodeUnaryExpression* _tmp447_; _tmp434_ = _tmp433_; if (!_tmp434_) { gint _tmp435_; _tmp435_ = dim; dim = _tmp435_ + 1; } _tmp433_ = FALSE; _tmp436_ = dim; _tmp437_ = array_type; _tmp438_ = vala_array_type_get_rank (_tmp437_); _tmp439_ = _tmp438_; if (!(_tmp436_ <= _tmp439_)) { break; } _tmp440_ = dim; _tmp441_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "result", _tmp440_); length_cname = _tmp441_; _tmp442_ = ccall; _tmp443_ = length_cname; _tmp444_ = vala_ccode_identifier_new (_tmp443_); _tmp445_ = _tmp444_; _tmp446_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp445_); _tmp447_ = _tmp446_; vala_ccode_function_call_add_argument (_tmp442_, (ValaCCodeExpression*) _tmp447_); _vala_ccode_node_unref0 (_tmp447_); _vala_ccode_node_unref0 (_tmp445_); _g_free0 (length_cname); } } } } _vala_code_node_unref0 (array_type); } } } _tmp449_ = m; _tmp450_ = vala_method_get_coroutine (_tmp449_); _tmp451_ = _tmp450_; if (_tmp451_) { gboolean _tmp452_; _tmp452_ = ready; _tmp448_ = !_tmp452_; } else { _tmp448_ = FALSE; } _tmp453_ = _tmp448_; if (_tmp453_) { ValaCCodeFunctionCall* _tmp454_; const gchar* _tmp455_; gchar* _tmp456_; gchar* _tmp457_; ValaCCodeIdentifier* _tmp458_; ValaCCodeIdentifier* _tmp459_; ValaCCodeCastExpression* _tmp460_; ValaCCodeCastExpression* _tmp461_; ValaCCodeFunctionCall* _tmp462_; ValaCCodeIdentifier* _tmp463_; ValaCCodeIdentifier* _tmp464_; _tmp454_ = ccall; _tmp455_ = wrapper_name; _tmp456_ = g_strconcat (_tmp455_, "_ready", NULL); _tmp457_ = _tmp456_; _tmp458_ = vala_ccode_identifier_new (_tmp457_); _tmp459_ = _tmp458_; _tmp460_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp459_, "GAsyncReadyCallback"); _tmp461_ = _tmp460_; vala_ccode_function_call_add_argument (_tmp454_, (ValaCCodeExpression*) _tmp461_); _vala_ccode_node_unref0 (_tmp461_); _vala_ccode_node_unref0 (_tmp459_); _g_free0 (_tmp457_); _tmp462_ = ccall; _tmp463_ = vala_ccode_identifier_new ("invocation"); _tmp464_ = _tmp463_; vala_ccode_function_call_add_argument (_tmp462_, (ValaCCodeExpression*) _tmp464_); _vala_ccode_node_unref0 (_tmp464_); } _tmp466_ = m; _tmp467_ = vala_method_get_coroutine (_tmp466_); _tmp468_ = _tmp467_; if (!_tmp468_) { _tmp465_ = TRUE; } else { gboolean _tmp469_; _tmp469_ = ready; _tmp465_ = _tmp469_; } _tmp470_ = _tmp465_; if (_tmp470_) { ValaMethod* _tmp471_; ValaList* _tmp472_ = NULL; ValaList* _tmp473_; gint _tmp474_; gint _tmp475_; gboolean _tmp476_; _tmp471_ = m; _tmp472_ = vala_code_node_get_error_types ((ValaCodeNode*) _tmp471_); _tmp473_ = _tmp472_; _tmp474_ = vala_collection_get_size ((ValaCollection*) _tmp473_); _tmp475_ = _tmp474_; _tmp476_ = _tmp475_ > 0; _vala_iterable_unref0 (_tmp473_); if (_tmp476_) { ValaCCodeFunctionCall* _tmp477_; ValaCCodeIdentifier* _tmp478_; ValaCCodeIdentifier* _tmp479_; ValaCCodeUnaryExpression* _tmp480_; ValaCCodeUnaryExpression* _tmp481_; _tmp477_ = ccall; _tmp478_ = vala_ccode_identifier_new ("error"); _tmp479_ = _tmp478_; _tmp480_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp479_); _tmp481_ = _tmp480_; vala_ccode_function_call_add_argument (_tmp477_, (ValaCCodeExpression*) _tmp481_); _vala_ccode_node_unref0 (_tmp481_); _vala_ccode_node_unref0 (_tmp479_); } } _tmp483_ = no_reply; if (!_tmp483_) { gboolean _tmp484_ = FALSE; ValaMethod* _tmp485_; gboolean _tmp486_; gboolean _tmp487_; gboolean _tmp489_; _tmp485_ = m; _tmp486_ = vala_method_get_coroutine (_tmp485_); _tmp487_ = _tmp486_; if (!_tmp487_) { _tmp484_ = TRUE; } else { gboolean _tmp488_; _tmp488_ = ready; _tmp484_ = _tmp488_; } _tmp489_ = _tmp484_; _tmp482_ = _tmp489_; } else { _tmp482_ = FALSE; } _tmp490_ = _tmp482_; if (_tmp490_) { gboolean _tmp491_ = FALSE; ValaMethod* _tmp492_; ValaDataType* _tmp493_; ValaDataType* _tmp494_; gboolean _tmp499_; ValaMethod* _tmp508_; ValaList* _tmp509_ = NULL; ValaList* _tmp510_; gint _tmp511_; gint _tmp512_; gboolean _tmp513_; ValaCCodeFunction* _tmp535_; ValaCCodeFunction* _tmp536_; ValaCCodeVariableDeclarator* _tmp537_; ValaCCodeVariableDeclarator* _tmp538_; ValaCCodeIdentifier* _tmp539_; ValaCCodeIdentifier* _tmp540_; ValaCCodeFunctionCall* _tmp541_; ValaCCodeFunctionCall* _tmp542_; ValaCCodeFunctionCall* message_expr; ValaCCodeFunctionCall* _tmp543_; ValaCCodeIdentifier* _tmp544_; ValaCCodeIdentifier* _tmp545_; ValaCCodeIdentifier* _tmp546_; ValaCCodeIdentifier* _tmp547_; ValaCCodeFunctionCall* _tmp548_; ValaCCodeFunctionCall* _tmp549_; ValaCCodeFunctionCall* _tmp550_; ValaCCodeFunction* _tmp551_; ValaCCodeFunction* _tmp552_; ValaCCodeIdentifier* _tmp553_; ValaCCodeIdentifier* _tmp554_; ValaCCodeFunctionCall* _tmp555_; ValaCCodeFunction* _tmp556_; ValaCCodeFunction* _tmp557_; ValaCCodeVariableDeclarator* _tmp558_; ValaCCodeVariableDeclarator* _tmp559_; ValaCCodeFunction* _tmp560_; ValaCCodeFunction* _tmp561_; ValaCCodeVariableDeclarator* _tmp562_; ValaCCodeVariableDeclarator* _tmp563_; ValaCCodeIdentifier* _tmp564_; ValaCCodeIdentifier* _tmp565_; ValaCCodeFunctionCall* _tmp566_; ValaCCodeFunctionCall* _tmp567_; ValaCCodeFunctionCall* builder_init; ValaCCodeFunctionCall* _tmp568_; ValaCCodeIdentifier* _tmp569_; ValaCCodeIdentifier* _tmp570_; ValaCCodeUnaryExpression* _tmp571_; ValaCCodeUnaryExpression* _tmp572_; ValaCCodeFunctionCall* _tmp573_; ValaCCodeIdentifier* _tmp574_; ValaCCodeIdentifier* _tmp575_; ValaCCodeFunction* _tmp576_; ValaCCodeFunction* _tmp577_; ValaCCodeFunctionCall* _tmp578_; gboolean _tmp579_; ValaMethod* _tmp659_; ValaDataType* _tmp660_; ValaDataType* _tmp661_; ValaCCodeIdentifier* _tmp752_; ValaCCodeIdentifier* _tmp753_; ValaCCodeFunctionCall* _tmp754_; ValaCCodeFunctionCall* _tmp755_; ValaCCodeFunctionCall* builder_end; ValaCCodeFunctionCall* _tmp756_; ValaCCodeIdentifier* _tmp757_; ValaCCodeIdentifier* _tmp758_; ValaCCodeUnaryExpression* _tmp759_; ValaCCodeUnaryExpression* _tmp760_; ValaCCodeFunction* _tmp761_; ValaCCodeFunction* _tmp762_; ValaCCodeIdentifier* _tmp763_; ValaCCodeIdentifier* _tmp764_; ValaCCodeFunctionCall* _tmp765_; ValaCCodeIdentifier* _tmp766_; ValaCCodeIdentifier* _tmp767_; ValaCCodeFunctionCall* _tmp768_; ValaCCodeFunctionCall* _tmp769_; ValaCCodeFunctionCall* set_body; ValaCCodeFunctionCall* _tmp770_; ValaCCodeIdentifier* _tmp771_; ValaCCodeIdentifier* _tmp772_; ValaCCodeFunctionCall* _tmp773_; ValaCCodeIdentifier* _tmp774_; ValaCCodeIdentifier* _tmp775_; ValaCCodeFunction* _tmp776_; ValaCCodeFunction* _tmp777_; ValaCCodeFunctionCall* _tmp778_; gboolean _tmp779_; _tmp492_ = m; _tmp493_ = vala_method_get_return_type (_tmp492_); _tmp494_ = _tmp493_; if (VALA_IS_VOID_TYPE (_tmp494_)) { _tmp491_ = TRUE; } else { ValaMethod* _tmp495_; ValaDataType* _tmp496_; ValaDataType* _tmp497_; gboolean _tmp498_ = FALSE; _tmp495_ = m; _tmp496_ = vala_method_get_return_type (_tmp495_); _tmp497_ = _tmp496_; _tmp498_ = vala_data_type_is_real_non_null_struct_type (_tmp497_); _tmp491_ = _tmp498_; } _tmp499_ = _tmp491_; if (_tmp499_) { ValaCCodeFunction* _tmp500_; ValaCCodeFunction* _tmp501_; ValaCCodeFunctionCall* _tmp502_; _tmp500_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp501_ = _tmp500_; _tmp502_ = ccall; vala_ccode_function_add_expression (_tmp501_, (ValaCCodeExpression*) _tmp502_); } else { ValaCCodeFunction* _tmp503_; ValaCCodeFunction* _tmp504_; ValaCCodeIdentifier* _tmp505_; ValaCCodeIdentifier* _tmp506_; ValaCCodeFunctionCall* _tmp507_; _tmp503_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp504_ = _tmp503_; _tmp505_ = vala_ccode_identifier_new ("result"); _tmp506_ = _tmp505_; _tmp507_ = ccall; vala_ccode_function_add_assignment (_tmp504_, (ValaCCodeExpression*) _tmp506_, (ValaCCodeExpression*) _tmp507_); _vala_ccode_node_unref0 (_tmp506_); } _tmp508_ = m; _tmp509_ = vala_code_node_get_error_types ((ValaCodeNode*) _tmp508_); _tmp510_ = _tmp509_; _tmp511_ = vala_collection_get_size ((ValaCollection*) _tmp510_); _tmp512_ = _tmp511_; _tmp513_ = _tmp512_ > 0; _vala_iterable_unref0 (_tmp510_); if (_tmp513_) { ValaCCodeFunction* _tmp514_; ValaCCodeFunction* _tmp515_; ValaCCodeIdentifier* _tmp516_; ValaCCodeIdentifier* _tmp517_; ValaCCodeIdentifier* _tmp518_; ValaCCodeIdentifier* _tmp519_; ValaCCodeFunctionCall* _tmp520_; ValaCCodeFunctionCall* _tmp521_; ValaCCodeFunctionCall* return_error; ValaCCodeFunctionCall* _tmp522_; ValaCCodeIdentifier* _tmp523_; ValaCCodeIdentifier* _tmp524_; ValaCCodeFunctionCall* _tmp525_; ValaCCodeIdentifier* _tmp526_; ValaCCodeIdentifier* _tmp527_; ValaCCodeFunction* _tmp528_; ValaCCodeFunction* _tmp529_; ValaCCodeFunctionCall* _tmp530_; ValaCCodeFunction* _tmp531_; ValaCCodeFunction* _tmp532_; ValaCCodeFunction* _tmp533_; ValaCCodeFunction* _tmp534_; _tmp514_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp515_ = _tmp514_; _tmp516_ = vala_ccode_identifier_new ("error"); _tmp517_ = _tmp516_; vala_ccode_function_open_if (_tmp515_, (ValaCCodeExpression*) _tmp517_); _vala_ccode_node_unref0 (_tmp517_); _tmp518_ = vala_ccode_identifier_new ("g_dbus_method_invocation_return_gerror"); _tmp519_ = _tmp518_; _tmp520_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp519_); _tmp521_ = _tmp520_; _vala_ccode_node_unref0 (_tmp519_); return_error = _tmp521_; _tmp522_ = return_error; _tmp523_ = vala_ccode_identifier_new ("invocation"); _tmp524_ = _tmp523_; vala_ccode_function_call_add_argument (_tmp522_, (ValaCCodeExpression*) _tmp524_); _vala_ccode_node_unref0 (_tmp524_); _tmp525_ = return_error; _tmp526_ = vala_ccode_identifier_new ("error"); _tmp527_ = _tmp526_; vala_ccode_function_call_add_argument (_tmp525_, (ValaCCodeExpression*) _tmp527_); _vala_ccode_node_unref0 (_tmp527_); _tmp528_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp529_ = _tmp528_; _tmp530_ = return_error; vala_ccode_function_add_expression (_tmp529_, (ValaCCodeExpression*) _tmp530_); _tmp531_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp532_ = _tmp531_; vala_ccode_function_add_return (_tmp532_, NULL); _tmp533_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp534_ = _tmp533_; vala_ccode_function_close (_tmp534_); _vala_ccode_node_unref0 (return_error); } _tmp535_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp536_ = _tmp535_; _tmp537_ = vala_ccode_variable_declarator_new ("_reply_message", NULL, NULL); _tmp538_ = _tmp537_; vala_ccode_function_add_declaration (_tmp536_, "GDBusMessage*", (ValaCCodeDeclarator*) _tmp538_, 0); _vala_ccode_node_unref0 (_tmp538_); _tmp539_ = vala_ccode_identifier_new ("g_dbus_method_invocation_get_message"); _tmp540_ = _tmp539_; _tmp541_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp540_); _tmp542_ = _tmp541_; _vala_ccode_node_unref0 (_tmp540_); message_expr = _tmp542_; _tmp543_ = message_expr; _tmp544_ = vala_ccode_identifier_new ("invocation"); _tmp545_ = _tmp544_; vala_ccode_function_call_add_argument (_tmp543_, (ValaCCodeExpression*) _tmp545_); _vala_ccode_node_unref0 (_tmp545_); _tmp546_ = vala_ccode_identifier_new ("g_dbus_message_new_method_reply"); _tmp547_ = _tmp546_; _tmp548_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp547_); _vala_ccode_node_unref0 (ccall); ccall = _tmp548_; _vala_ccode_node_unref0 (_tmp547_); _tmp549_ = ccall; _tmp550_ = message_expr; vala_ccode_function_call_add_argument (_tmp549_, (ValaCCodeExpression*) _tmp550_); _tmp551_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp552_ = _tmp551_; _tmp553_ = vala_ccode_identifier_new ("_reply_message"); _tmp554_ = _tmp553_; _tmp555_ = ccall; vala_ccode_function_add_assignment (_tmp552_, (ValaCCodeExpression*) _tmp554_, (ValaCCodeExpression*) _tmp555_); _vala_ccode_node_unref0 (_tmp554_); _tmp556_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp557_ = _tmp556_; _tmp558_ = vala_ccode_variable_declarator_new ("_reply", NULL, NULL); _tmp559_ = _tmp558_; vala_ccode_function_add_declaration (_tmp557_, "GVariant*", (ValaCCodeDeclarator*) _tmp559_, 0); _vala_ccode_node_unref0 (_tmp559_); _tmp560_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp561_ = _tmp560_; _tmp562_ = vala_ccode_variable_declarator_new ("_reply_builder", NULL, NULL); _tmp563_ = _tmp562_; vala_ccode_function_add_declaration (_tmp561_, "GVariantBuilder", (ValaCCodeDeclarator*) _tmp563_, 0); _vala_ccode_node_unref0 (_tmp563_); _tmp564_ = vala_ccode_identifier_new ("g_variant_builder_init"); _tmp565_ = _tmp564_; _tmp566_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp565_); _tmp567_ = _tmp566_; _vala_ccode_node_unref0 (_tmp565_); builder_init = _tmp567_; _tmp568_ = builder_init; _tmp569_ = vala_ccode_identifier_new ("_reply_builder"); _tmp570_ = _tmp569_; _tmp571_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp570_); _tmp572_ = _tmp571_; vala_ccode_function_call_add_argument (_tmp568_, (ValaCCodeExpression*) _tmp572_); _vala_ccode_node_unref0 (_tmp572_); _vala_ccode_node_unref0 (_tmp570_); _tmp573_ = builder_init; _tmp574_ = vala_ccode_identifier_new ("G_VARIANT_TYPE_TUPLE"); _tmp575_ = _tmp574_; vala_ccode_function_call_add_argument (_tmp573_, (ValaCCodeExpression*) _tmp575_); _vala_ccode_node_unref0 (_tmp575_); _tmp576_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp577_ = _tmp576_; _tmp578_ = builder_init; vala_ccode_function_add_expression (_tmp577_, (ValaCCodeExpression*) _tmp578_); _tmp579_ = uses_fd; if (_tmp579_) { ValaCCodeFunction* _tmp580_; ValaCCodeFunction* _tmp581_; ValaCCodeVariableDeclarator* _tmp582_; ValaCCodeVariableDeclarator* _tmp583_; ValaCCodeFunction* _tmp584_; ValaCCodeFunction* _tmp585_; ValaCCodeIdentifier* _tmp586_; ValaCCodeIdentifier* _tmp587_; ValaCCodeIdentifier* _tmp588_; ValaCCodeIdentifier* _tmp589_; ValaCCodeFunctionCall* _tmp590_; ValaCCodeFunctionCall* _tmp591_; _tmp580_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp581_ = _tmp580_; _tmp582_ = vala_ccode_variable_declarator_new ("*_fd_list", NULL, NULL); _tmp583_ = _tmp582_; vala_ccode_function_add_declaration (_tmp581_, "GUnixFDList", (ValaCCodeDeclarator*) _tmp583_, 0); _vala_ccode_node_unref0 (_tmp583_); _tmp584_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp585_ = _tmp584_; _tmp586_ = vala_ccode_identifier_new ("_fd_list"); _tmp587_ = _tmp586_; _tmp588_ = vala_ccode_identifier_new ("g_unix_fd_list_new"); _tmp589_ = _tmp588_; _tmp590_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp589_); _tmp591_ = _tmp590_; vala_ccode_function_add_assignment (_tmp585_, (ValaCCodeExpression*) _tmp587_, (ValaCCodeExpression*) _tmp591_); _vala_ccode_node_unref0 (_tmp591_); _vala_ccode_node_unref0 (_tmp589_); _vala_ccode_node_unref0 (_tmp587_); } { ValaMethod* _tmp592_; ValaList* _tmp593_ = NULL; ValaList* _param_list; ValaList* _tmp594_; gint _tmp595_; gint _tmp596_; gint _param_size; gint _param_index; _tmp592_ = m; _tmp593_ = vala_method_get_parameters (_tmp592_); _param_list = _tmp593_; _tmp594_ = _param_list; _tmp595_ = vala_collection_get_size ((ValaCollection*) _tmp594_); _tmp596_ = _tmp595_; _param_size = _tmp596_; _param_index = -1; while (TRUE) { gint _tmp597_; gint _tmp598_; gint _tmp599_; ValaList* _tmp600_; gint _tmp601_; gpointer _tmp602_ = NULL; ValaParameter* param; ValaParameter* _tmp603_; ValaParameterDirection _tmp604_; ValaParameterDirection _tmp605_; ValaParameter* _tmp606_; const gchar* _tmp607_; const gchar* _tmp608_; gchar* _tmp609_ = NULL; gchar* param_name; ValaParameter* _tmp610_; ValaDataType* _tmp611_; ValaDataType* _tmp612_; ValaDataType* _tmp613_ = NULL; ValaDataType* owned_type; ValaDataType* _tmp614_; ValaCCodeFunction* _tmp615_; ValaCCodeFunction* _tmp616_; ValaDataType* _tmp617_; gchar* _tmp618_ = NULL; gchar* _tmp619_; const gchar* _tmp620_; ValaParameter* _tmp621_; ValaDataType* _tmp622_; ValaDataType* _tmp623_; ValaCCodeExpression* _tmp624_ = NULL; ValaCCodeExpression* _tmp625_; ValaCCodeVariableDeclarator* _tmp626_; ValaCCodeVariableDeclarator* _tmp627_; ValaParameter* _tmp628_; ValaDataType* _tmp629_; ValaDataType* _tmp630_; ValaArrayType* _tmp631_; ValaArrayType* array_type; ValaArrayType* _tmp632_; ValaParameter* _tmp650_; ValaDataType* _tmp651_; ValaDataType* _tmp652_; ValaCCodeIdentifier* _tmp653_; ValaCCodeIdentifier* _tmp654_; const gchar* _tmp655_; ValaCCodeIdentifier* _tmp656_; ValaCCodeIdentifier* _tmp657_; ValaParameter* _tmp658_; _tmp597_ = _param_index; _param_index = _tmp597_ + 1; _tmp598_ = _param_index; _tmp599_ = _param_size; if (!(_tmp598_ < _tmp599_)) { break; } _tmp600_ = _param_list; _tmp601_ = _param_index; _tmp602_ = vala_list_get (_tmp600_, _tmp601_); param = (ValaParameter*) _tmp602_; _tmp603_ = param; _tmp604_ = vala_parameter_get_direction (_tmp603_); _tmp605_ = _tmp604_; if (_tmp605_ != VALA_PARAMETER_DIRECTION_OUT) { _vala_code_node_unref0 (param); continue; } _tmp606_ = param; _tmp607_ = vala_symbol_get_name ((ValaSymbol*) _tmp606_); _tmp608_ = _tmp607_; _tmp609_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, _tmp608_); param_name = _tmp609_; _tmp610_ = param; _tmp611_ = vala_variable_get_variable_type ((ValaVariable*) _tmp610_); _tmp612_ = _tmp611_; _tmp613_ = vala_data_type_copy (_tmp612_); owned_type = _tmp613_; _tmp614_ = owned_type; vala_data_type_set_value_owned (_tmp614_, TRUE); _tmp615_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp616_ = _tmp615_; _tmp617_ = owned_type; _tmp618_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp617_); _tmp619_ = _tmp618_; _tmp620_ = param_name; _tmp621_ = param; _tmp622_ = vala_variable_get_variable_type ((ValaVariable*) _tmp621_); _tmp623_ = _tmp622_; _tmp624_ = vala_ccode_base_module_default_value_for_type ((ValaCCodeBaseModule*) self, _tmp623_, TRUE); _tmp625_ = _tmp624_; _tmp626_ = vala_ccode_variable_declarator_new_zero (_tmp620_, _tmp625_, NULL); _tmp627_ = _tmp626_; vala_ccode_function_add_declaration (_tmp616_, _tmp619_, (ValaCCodeDeclarator*) _tmp627_, 0); _vala_ccode_node_unref0 (_tmp627_); _vala_ccode_node_unref0 (_tmp625_); _g_free0 (_tmp619_); _tmp628_ = param; _tmp629_ = vala_variable_get_variable_type ((ValaVariable*) _tmp628_); _tmp630_ = _tmp629_; _tmp631_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp630_) ? ((ValaArrayType*) _tmp630_) : NULL); array_type = _tmp631_; _tmp632_ = array_type; if (_tmp632_ != NULL) { { gint dim; dim = 1; { gboolean _tmp633_; _tmp633_ = TRUE; while (TRUE) { gboolean _tmp634_; gint _tmp636_; ValaArrayType* _tmp637_; gint _tmp638_; gint _tmp639_; ValaParameter* _tmp640_; gint _tmp641_; gchar* _tmp642_ = NULL; gchar* length_cname; ValaCCodeFunction* _tmp643_; ValaCCodeFunction* _tmp644_; const gchar* _tmp645_; ValaCCodeConstant* _tmp646_; ValaCCodeConstant* _tmp647_; ValaCCodeVariableDeclarator* _tmp648_; ValaCCodeVariableDeclarator* _tmp649_; _tmp634_ = _tmp633_; if (!_tmp634_) { gint _tmp635_; _tmp635_ = dim; dim = _tmp635_ + 1; } _tmp633_ = FALSE; _tmp636_ = dim; _tmp637_ = array_type; _tmp638_ = vala_array_type_get_rank (_tmp637_); _tmp639_ = _tmp638_; if (!(_tmp636_ <= _tmp639_)) { break; } _tmp640_ = param; _tmp641_ = dim; _tmp642_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, _tmp640_, _tmp641_); length_cname = _tmp642_; _tmp643_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp644_ = _tmp643_; _tmp645_ = length_cname; _tmp646_ = vala_ccode_constant_new ("0"); _tmp647_ = _tmp646_; _tmp648_ = vala_ccode_variable_declarator_new_zero (_tmp645_, (ValaCCodeExpression*) _tmp647_, NULL); _tmp649_ = _tmp648_; vala_ccode_function_add_declaration (_tmp644_, "int", (ValaCCodeDeclarator*) _tmp649_, 0); _vala_ccode_node_unref0 (_tmp649_); _vala_ccode_node_unref0 (_tmp647_); _g_free0 (length_cname); } } } } _tmp650_ = param; _tmp651_ = vala_variable_get_variable_type ((ValaVariable*) _tmp650_); _tmp652_ = _tmp651_; _tmp653_ = vala_ccode_identifier_new ("_reply_builder"); _tmp654_ = _tmp653_; _tmp655_ = param_name; _tmp656_ = vala_ccode_identifier_new (_tmp655_); _tmp657_ = _tmp656_; _tmp658_ = param; vala_gd_bus_module_send_dbus_value ((ValaGDBusModule*) self, _tmp652_, (ValaCCodeExpression*) _tmp654_, (ValaCCodeExpression*) _tmp657_, (ValaSymbol*) _tmp658_); _vala_ccode_node_unref0 (_tmp657_); _vala_ccode_node_unref0 (_tmp654_); _vala_code_node_unref0 (array_type); _vala_code_node_unref0 (owned_type); _g_free0 (param_name); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp659_ = m; _tmp660_ = vala_method_get_return_type (_tmp659_); _tmp661_ = _tmp660_; if (!VALA_IS_VOID_TYPE (_tmp661_)) { ValaMethod* _tmp662_; ValaDataType* _tmp663_; ValaDataType* _tmp664_; gboolean _tmp665_ = FALSE; _tmp662_ = m; _tmp663_ = vala_method_get_return_type (_tmp662_); _tmp664_ = _tmp663_; _tmp665_ = vala_data_type_is_real_non_null_struct_type (_tmp664_); if (_tmp665_) { ValaCCodeFunction* _tmp666_; ValaCCodeFunction* _tmp667_; ValaMethod* _tmp668_; ValaDataType* _tmp669_; ValaDataType* _tmp670_; gchar* _tmp671_ = NULL; gchar* _tmp672_; ValaMethod* _tmp673_; ValaDataType* _tmp674_; ValaDataType* _tmp675_; ValaCCodeExpression* _tmp676_ = NULL; ValaCCodeExpression* _tmp677_; ValaCCodeVariableDeclarator* _tmp678_; ValaCCodeVariableDeclarator* _tmp679_; ValaMethod* _tmp680_; ValaDataType* _tmp681_; ValaDataType* _tmp682_; ValaCCodeIdentifier* _tmp683_; ValaCCodeIdentifier* _tmp684_; ValaCCodeIdentifier* _tmp685_; ValaCCodeIdentifier* _tmp686_; ValaMethod* _tmp687_; ValaMethod* _tmp688_; ValaDataType* _tmp689_; ValaDataType* _tmp690_; gboolean _tmp691_ = FALSE; _tmp666_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp667_ = _tmp666_; _tmp668_ = m; _tmp669_ = vala_method_get_return_type (_tmp668_); _tmp670_ = _tmp669_; _tmp671_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp670_); _tmp672_ = _tmp671_; _tmp673_ = m; _tmp674_ = vala_method_get_return_type (_tmp673_); _tmp675_ = _tmp674_; _tmp676_ = vala_ccode_base_module_default_value_for_type ((ValaCCodeBaseModule*) self, _tmp675_, TRUE); _tmp677_ = _tmp676_; _tmp678_ = vala_ccode_variable_declarator_new_zero ("result", _tmp677_, NULL); _tmp679_ = _tmp678_; vala_ccode_function_add_declaration (_tmp667_, _tmp672_, (ValaCCodeDeclarator*) _tmp679_, 0); _vala_ccode_node_unref0 (_tmp679_); _vala_ccode_node_unref0 (_tmp677_); _g_free0 (_tmp672_); _tmp680_ = m; _tmp681_ = vala_method_get_return_type (_tmp680_); _tmp682_ = _tmp681_; _tmp683_ = vala_ccode_identifier_new ("_reply_builder"); _tmp684_ = _tmp683_; _tmp685_ = vala_ccode_identifier_new ("result"); _tmp686_ = _tmp685_; _tmp687_ = m; vala_gd_bus_module_send_dbus_value ((ValaGDBusModule*) self, _tmp682_, (ValaCCodeExpression*) _tmp684_, (ValaCCodeExpression*) _tmp686_, (ValaSymbol*) _tmp687_); _vala_ccode_node_unref0 (_tmp686_); _vala_ccode_node_unref0 (_tmp684_); _tmp688_ = m; _tmp689_ = vala_method_get_return_type (_tmp688_); _tmp690_ = _tmp689_; _tmp691_ = vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, _tmp690_); if (_tmp691_) { ValaMethod* _tmp692_; ValaDataType* _tmp693_; ValaDataType* _tmp694_; ValaLocalVariable* _tmp695_; ValaLocalVariable* local; ValaCCodeFunction* _tmp696_; ValaCCodeFunction* _tmp697_; ValaLocalVariable* _tmp698_; ValaCCodeExpression* _tmp699_ = NULL; ValaCCodeExpression* _tmp700_; _tmp692_ = m; _tmp693_ = vala_method_get_return_type (_tmp692_); _tmp694_ = _tmp693_; _tmp695_ = vala_local_variable_new (_tmp694_, ".result", NULL, NULL); local = _tmp695_; _tmp696_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp697_ = _tmp696_; _tmp698_ = local; _tmp699_ = vala_ccode_base_module_destroy_local ((ValaCCodeBaseModule*) self, _tmp698_); _tmp700_ = _tmp699_; vala_ccode_function_add_expression (_tmp697_, _tmp700_); _vala_ccode_node_unref0 (_tmp700_); _vala_code_node_unref0 (local); } } else { ValaCCodeFunction* _tmp701_; ValaCCodeFunction* _tmp702_; ValaMethod* _tmp703_; ValaDataType* _tmp704_; ValaDataType* _tmp705_; gchar* _tmp706_ = NULL; gchar* _tmp707_; ValaCCodeVariableDeclarator* _tmp708_; ValaCCodeVariableDeclarator* _tmp709_; ValaMethod* _tmp710_; ValaDataType* _tmp711_; ValaDataType* _tmp712_; ValaArrayType* _tmp713_; ValaArrayType* array_type; ValaArrayType* _tmp714_; ValaMethod* _tmp731_; ValaDataType* _tmp732_; ValaDataType* _tmp733_; ValaCCodeIdentifier* _tmp734_; ValaCCodeIdentifier* _tmp735_; ValaCCodeIdentifier* _tmp736_; ValaCCodeIdentifier* _tmp737_; ValaMethod* _tmp738_; ValaMethod* _tmp739_; ValaDataType* _tmp740_; ValaDataType* _tmp741_; gboolean _tmp742_ = FALSE; _tmp701_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp702_ = _tmp701_; _tmp703_ = m; _tmp704_ = vala_method_get_return_type (_tmp703_); _tmp705_ = _tmp704_; _tmp706_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp705_); _tmp707_ = _tmp706_; _tmp708_ = vala_ccode_variable_declarator_new ("result", NULL, NULL); _tmp709_ = _tmp708_; vala_ccode_function_add_declaration (_tmp702_, _tmp707_, (ValaCCodeDeclarator*) _tmp709_, 0); _vala_ccode_node_unref0 (_tmp709_); _g_free0 (_tmp707_); _tmp710_ = m; _tmp711_ = vala_method_get_return_type (_tmp710_); _tmp712_ = _tmp711_; _tmp713_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp712_) ? ((ValaArrayType*) _tmp712_) : NULL); array_type = _tmp713_; _tmp714_ = array_type; if (_tmp714_ != NULL) { { gint dim; dim = 1; { gboolean _tmp715_; _tmp715_ = TRUE; while (TRUE) { gboolean _tmp716_; gint _tmp718_; ValaArrayType* _tmp719_; gint _tmp720_; gint _tmp721_; gint _tmp722_; gchar* _tmp723_ = NULL; gchar* length_cname; ValaCCodeFunction* _tmp724_; ValaCCodeFunction* _tmp725_; const gchar* _tmp726_; ValaCCodeConstant* _tmp727_; ValaCCodeConstant* _tmp728_; ValaCCodeVariableDeclarator* _tmp729_; ValaCCodeVariableDeclarator* _tmp730_; _tmp716_ = _tmp715_; if (!_tmp716_) { gint _tmp717_; _tmp717_ = dim; dim = _tmp717_ + 1; } _tmp715_ = FALSE; _tmp718_ = dim; _tmp719_ = array_type; _tmp720_ = vala_array_type_get_rank (_tmp719_); _tmp721_ = _tmp720_; if (!(_tmp718_ <= _tmp721_)) { break; } _tmp722_ = dim; _tmp723_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "result", _tmp722_); length_cname = _tmp723_; _tmp724_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp725_ = _tmp724_; _tmp726_ = length_cname; _tmp727_ = vala_ccode_constant_new ("0"); _tmp728_ = _tmp727_; _tmp729_ = vala_ccode_variable_declarator_new_zero (_tmp726_, (ValaCCodeExpression*) _tmp728_, NULL); _tmp730_ = _tmp729_; vala_ccode_function_add_declaration (_tmp725_, "int", (ValaCCodeDeclarator*) _tmp730_, 0); _vala_ccode_node_unref0 (_tmp730_); _vala_ccode_node_unref0 (_tmp728_); _g_free0 (length_cname); } } } } _tmp731_ = m; _tmp732_ = vala_method_get_return_type (_tmp731_); _tmp733_ = _tmp732_; _tmp734_ = vala_ccode_identifier_new ("_reply_builder"); _tmp735_ = _tmp734_; _tmp736_ = vala_ccode_identifier_new ("result"); _tmp737_ = _tmp736_; _tmp738_ = m; vala_gd_bus_module_send_dbus_value ((ValaGDBusModule*) self, _tmp733_, (ValaCCodeExpression*) _tmp735_, (ValaCCodeExpression*) _tmp737_, (ValaSymbol*) _tmp738_); _vala_ccode_node_unref0 (_tmp737_); _vala_ccode_node_unref0 (_tmp735_); _tmp739_ = m; _tmp740_ = vala_method_get_return_type (_tmp739_); _tmp741_ = _tmp740_; _tmp742_ = vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, _tmp741_); if (_tmp742_) { ValaMethod* _tmp743_; ValaDataType* _tmp744_; ValaDataType* _tmp745_; ValaLocalVariable* _tmp746_; ValaLocalVariable* local; ValaCCodeFunction* _tmp747_; ValaCCodeFunction* _tmp748_; ValaLocalVariable* _tmp749_; ValaCCodeExpression* _tmp750_ = NULL; ValaCCodeExpression* _tmp751_; _tmp743_ = m; _tmp744_ = vala_method_get_return_type (_tmp743_); _tmp745_ = _tmp744_; _tmp746_ = vala_local_variable_new (_tmp745_, ".result", NULL, NULL); local = _tmp746_; _tmp747_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp748_ = _tmp747_; _tmp749_ = local; _tmp750_ = vala_ccode_base_module_destroy_local ((ValaCCodeBaseModule*) self, _tmp749_); _tmp751_ = _tmp750_; vala_ccode_function_add_expression (_tmp748_, _tmp751_); _vala_ccode_node_unref0 (_tmp751_); _vala_code_node_unref0 (local); } _vala_code_node_unref0 (array_type); } } _tmp752_ = vala_ccode_identifier_new ("g_variant_builder_end"); _tmp753_ = _tmp752_; _tmp754_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp753_); _tmp755_ = _tmp754_; _vala_ccode_node_unref0 (_tmp753_); builder_end = _tmp755_; _tmp756_ = builder_end; _tmp757_ = vala_ccode_identifier_new ("_reply_builder"); _tmp758_ = _tmp757_; _tmp759_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp758_); _tmp760_ = _tmp759_; vala_ccode_function_call_add_argument (_tmp756_, (ValaCCodeExpression*) _tmp760_); _vala_ccode_node_unref0 (_tmp760_); _vala_ccode_node_unref0 (_tmp758_); _tmp761_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp762_ = _tmp761_; _tmp763_ = vala_ccode_identifier_new ("_reply"); _tmp764_ = _tmp763_; _tmp765_ = builder_end; vala_ccode_function_add_assignment (_tmp762_, (ValaCCodeExpression*) _tmp764_, (ValaCCodeExpression*) _tmp765_); _vala_ccode_node_unref0 (_tmp764_); _tmp766_ = vala_ccode_identifier_new ("g_dbus_message_set_body"); _tmp767_ = _tmp766_; _tmp768_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp767_); _tmp769_ = _tmp768_; _vala_ccode_node_unref0 (_tmp767_); set_body = _tmp769_; _tmp770_ = set_body; _tmp771_ = vala_ccode_identifier_new ("_reply_message"); _tmp772_ = _tmp771_; vala_ccode_function_call_add_argument (_tmp770_, (ValaCCodeExpression*) _tmp772_); _vala_ccode_node_unref0 (_tmp772_); _tmp773_ = set_body; _tmp774_ = vala_ccode_identifier_new ("_reply"); _tmp775_ = _tmp774_; vala_ccode_function_call_add_argument (_tmp773_, (ValaCCodeExpression*) _tmp775_); _vala_ccode_node_unref0 (_tmp775_); _tmp776_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp777_ = _tmp776_; _tmp778_ = set_body; vala_ccode_function_add_expression (_tmp777_, (ValaCCodeExpression*) _tmp778_); _tmp779_ = uses_fd; if (_tmp779_) { ValaCCodeIdentifier* _tmp780_; ValaCCodeIdentifier* _tmp781_; ValaCCodeFunctionCall* _tmp782_; ValaCCodeFunctionCall* _tmp783_; ValaCCodeIdentifier* _tmp784_; ValaCCodeIdentifier* _tmp785_; ValaCCodeFunctionCall* _tmp786_; ValaCCodeIdentifier* _tmp787_; ValaCCodeIdentifier* _tmp788_; ValaCCodeFunction* _tmp789_; ValaCCodeFunction* _tmp790_; ValaCCodeFunctionCall* _tmp791_; ValaCCodeIdentifier* _tmp792_; ValaCCodeIdentifier* _tmp793_; ValaCCodeFunctionCall* _tmp794_; ValaCCodeFunctionCall* _tmp795_; ValaCCodeIdentifier* _tmp796_; ValaCCodeIdentifier* _tmp797_; ValaCCodeFunction* _tmp798_; ValaCCodeFunction* _tmp799_; ValaCCodeFunctionCall* _tmp800_; _tmp780_ = vala_ccode_identifier_new ("g_dbus_message_set_unix_fd_list"); _tmp781_ = _tmp780_; _tmp782_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp781_); _vala_ccode_node_unref0 (ccall); ccall = _tmp782_; _vala_ccode_node_unref0 (_tmp781_); _tmp783_ = ccall; _tmp784_ = vala_ccode_identifier_new ("_reply_message"); _tmp785_ = _tmp784_; vala_ccode_function_call_add_argument (_tmp783_, (ValaCCodeExpression*) _tmp785_); _vala_ccode_node_unref0 (_tmp785_); _tmp786_ = ccall; _tmp787_ = vala_ccode_identifier_new ("_fd_list"); _tmp788_ = _tmp787_; vala_ccode_function_call_add_argument (_tmp786_, (ValaCCodeExpression*) _tmp788_); _vala_ccode_node_unref0 (_tmp788_); _tmp789_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp790_ = _tmp789_; _tmp791_ = ccall; vala_ccode_function_add_expression (_tmp790_, (ValaCCodeExpression*) _tmp791_); _tmp792_ = vala_ccode_identifier_new ("g_object_unref"); _tmp793_ = _tmp792_; _tmp794_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp793_); _vala_ccode_node_unref0 (ccall); ccall = _tmp794_; _vala_ccode_node_unref0 (_tmp793_); _tmp795_ = ccall; _tmp796_ = vala_ccode_identifier_new ("_fd_list"); _tmp797_ = _tmp796_; vala_ccode_function_call_add_argument (_tmp795_, (ValaCCodeExpression*) _tmp797_); _vala_ccode_node_unref0 (_tmp797_); _tmp798_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp799_ = _tmp798_; _tmp800_ = ccall; vala_ccode_function_add_expression (_tmp799_, (ValaCCodeExpression*) _tmp800_); } _vala_ccode_node_unref0 (set_body); _vala_ccode_node_unref0 (builder_end); _vala_ccode_node_unref0 (builder_init); _vala_ccode_node_unref0 (message_expr); } else { ValaCCodeFunction* _tmp801_; ValaCCodeFunction* _tmp802_; ValaCCodeFunctionCall* _tmp803_; _tmp801_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp802_ = _tmp801_; _tmp803_ = ccall; vala_ccode_function_add_expression (_tmp802_, (ValaCCodeExpression*) _tmp803_); } { ValaMethod* _tmp804_; ValaList* _tmp805_ = NULL; ValaList* _param_list; ValaList* _tmp806_; gint _tmp807_; gint _tmp808_; gint _param_size; gint _param_index; _tmp804_ = m; _tmp805_ = vala_method_get_parameters (_tmp804_); _param_list = _tmp805_; _tmp806_ = _param_list; _tmp807_ = vala_collection_get_size ((ValaCollection*) _tmp806_); _tmp808_ = _tmp807_; _param_size = _tmp808_; _param_index = -1; while (TRUE) { gint _tmp809_; gint _tmp810_; gint _tmp811_; ValaList* _tmp812_; gint _tmp813_; gpointer _tmp814_ = NULL; ValaParameter* param; gboolean _tmp815_ = FALSE; gboolean _tmp816_ = FALSE; ValaParameter* _tmp817_; ValaParameterDirection _tmp818_; ValaParameterDirection _tmp819_; gboolean _tmp821_; gboolean _tmp836_; _tmp809_ = _param_index; _param_index = _tmp809_ + 1; _tmp810_ = _param_index; _tmp811_ = _param_size; if (!(_tmp810_ < _tmp811_)) { break; } _tmp812_ = _param_list; _tmp813_ = _param_index; _tmp814_ = vala_list_get (_tmp812_, _tmp813_); param = (ValaParameter*) _tmp814_; _tmp817_ = param; _tmp818_ = vala_parameter_get_direction (_tmp817_); _tmp819_ = _tmp818_; if (_tmp819_ == VALA_PARAMETER_DIRECTION_IN) { gboolean _tmp820_; _tmp820_ = ready; _tmp816_ = !_tmp820_; } else { _tmp816_ = FALSE; } _tmp821_ = _tmp816_; if (_tmp821_) { _tmp815_ = TRUE; } else { gboolean _tmp822_ = FALSE; gboolean _tmp823_ = FALSE; ValaParameter* _tmp824_; ValaParameterDirection _tmp825_; ValaParameterDirection _tmp826_; gboolean _tmp828_; gboolean _tmp835_; _tmp824_ = param; _tmp825_ = vala_parameter_get_direction (_tmp824_); _tmp826_ = _tmp825_; if (_tmp826_ == VALA_PARAMETER_DIRECTION_OUT) { gboolean _tmp827_; _tmp827_ = no_reply; _tmp823_ = !_tmp827_; } else { _tmp823_ = FALSE; } _tmp828_ = _tmp823_; if (_tmp828_) { gboolean _tmp829_ = FALSE; ValaMethod* _tmp830_; gboolean _tmp831_; gboolean _tmp832_; gboolean _tmp834_; _tmp830_ = m; _tmp831_ = vala_method_get_coroutine (_tmp830_); _tmp832_ = _tmp831_; if (!_tmp832_) { _tmp829_ = TRUE; } else { gboolean _tmp833_; _tmp833_ = ready; _tmp829_ = _tmp833_; } _tmp834_ = _tmp829_; _tmp822_ = _tmp834_; } else { _tmp822_ = FALSE; } _tmp835_ = _tmp822_; _tmp815_ = _tmp835_; } _tmp836_ = _tmp815_; if (_tmp836_) { gboolean _tmp837_ = FALSE; ValaParameter* _tmp838_; ValaDataType* _tmp839_; ValaDataType* _tmp840_; gboolean _tmp848_; gboolean _tmp849_ = FALSE; ValaParameter* _tmp850_; ValaDataType* _tmp851_; ValaDataType* _tmp852_; gboolean _tmp860_; ValaParameter* _tmp861_; ValaDataType* _tmp862_; ValaDataType* _tmp863_; ValaDataType* _tmp864_ = NULL; ValaDataType* owned_type; ValaDataType* _tmp865_; ValaDataType* _tmp866_; gboolean _tmp867_ = FALSE; _tmp838_ = param; _tmp839_ = vala_variable_get_variable_type ((ValaVariable*) _tmp838_); _tmp840_ = _tmp839_; if (VALA_IS_OBJECT_TYPE (_tmp840_)) { ValaParameter* _tmp841_; ValaDataType* _tmp842_; ValaDataType* _tmp843_; ValaTypeSymbol* _tmp844_; ValaTypeSymbol* _tmp845_; gchar* _tmp846_ = NULL; gchar* _tmp847_; _tmp841_ = param; _tmp842_ = vala_variable_get_variable_type ((ValaVariable*) _tmp841_); _tmp843_ = _tmp842_; _tmp844_ = vala_data_type_get_data_type (_tmp843_); _tmp845_ = _tmp844_; _tmp846_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp845_); _tmp847_ = _tmp846_; _tmp837_ = g_strcmp0 (_tmp847_, "GLib.Cancellable") == 0; _g_free0 (_tmp847_); } else { _tmp837_ = FALSE; } _tmp848_ = _tmp837_; if (_tmp848_) { _vala_code_node_unref0 (param); continue; } _tmp850_ = param; _tmp851_ = vala_variable_get_variable_type ((ValaVariable*) _tmp850_); _tmp852_ = _tmp851_; if (VALA_IS_OBJECT_TYPE (_tmp852_)) { ValaParameter* _tmp853_; ValaDataType* _tmp854_; ValaDataType* _tmp855_; ValaTypeSymbol* _tmp856_; ValaTypeSymbol* _tmp857_; gchar* _tmp858_ = NULL; gchar* _tmp859_; _tmp853_ = param; _tmp854_ = vala_variable_get_variable_type ((ValaVariable*) _tmp853_); _tmp855_ = _tmp854_; _tmp856_ = vala_data_type_get_data_type (_tmp855_); _tmp857_ = _tmp856_; _tmp858_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp857_); _tmp859_ = _tmp858_; _tmp849_ = g_strcmp0 (_tmp859_, "GLib.BusName") == 0; _g_free0 (_tmp859_); } else { _tmp849_ = FALSE; } _tmp860_ = _tmp849_; if (_tmp860_) { _vala_code_node_unref0 (param); continue; } _tmp861_ = param; _tmp862_ = vala_variable_get_variable_type ((ValaVariable*) _tmp861_); _tmp863_ = _tmp862_; _tmp864_ = vala_data_type_copy (_tmp863_); owned_type = _tmp864_; _tmp865_ = owned_type; vala_data_type_set_value_owned (_tmp865_, TRUE); _tmp866_ = owned_type; _tmp867_ = vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, _tmp866_); if (_tmp867_) { ValaDataType* _tmp868_; ValaParameter* _tmp869_; const gchar* _tmp870_; const gchar* _tmp871_; gchar* _tmp872_ = NULL; gchar* _tmp873_; ValaLocalVariable* _tmp874_; ValaLocalVariable* _tmp875_; ValaLocalVariable* local; ValaCCodeFunction* _tmp876_; ValaCCodeFunction* _tmp877_; ValaLocalVariable* _tmp878_; ValaCCodeExpression* _tmp879_ = NULL; ValaCCodeExpression* _tmp880_; _tmp868_ = owned_type; _tmp869_ = param; _tmp870_ = vala_symbol_get_name ((ValaSymbol*) _tmp869_); _tmp871_ = _tmp870_; _tmp872_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, _tmp871_); _tmp873_ = _tmp872_; _tmp874_ = vala_local_variable_new (_tmp868_, _tmp873_, NULL, NULL); _tmp875_ = _tmp874_; _g_free0 (_tmp873_); local = _tmp875_; _tmp876_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp877_ = _tmp876_; _tmp878_ = local; _tmp879_ = vala_ccode_base_module_destroy_local ((ValaCCodeBaseModule*) self, _tmp878_); _tmp880_ = _tmp879_; vala_ccode_function_add_expression (_tmp877_, _tmp880_); _vala_ccode_node_unref0 (_tmp880_); _vala_code_node_unref0 (local); } _vala_code_node_unref0 (owned_type); } _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp882_ = no_reply; if (!_tmp882_) { gboolean _tmp883_ = FALSE; ValaMethod* _tmp884_; gboolean _tmp885_; gboolean _tmp886_; gboolean _tmp888_; _tmp884_ = m; _tmp885_ = vala_method_get_coroutine (_tmp884_); _tmp886_ = _tmp885_; if (!_tmp886_) { _tmp883_ = TRUE; } else { gboolean _tmp887_; _tmp887_ = ready; _tmp883_ = _tmp887_; } _tmp888_ = _tmp883_; _tmp881_ = _tmp888_; } else { _tmp881_ = FALSE; } _tmp889_ = _tmp881_; if (_tmp889_) { ValaCCodeIdentifier* _tmp890_; ValaCCodeIdentifier* _tmp891_; ValaCCodeFunctionCall* _tmp892_; ValaCCodeFunctionCall* _tmp893_; ValaCCodeFunctionCall* return_value; ValaCCodeFunctionCall* _tmp894_; ValaCCodeFunctionCall* _tmp895_; ValaCCodeFunctionCall* _tmp896_; ValaCCodeIdentifier* _tmp897_; ValaCCodeIdentifier* _tmp898_; ValaCCodeFunctionCall* _tmp899_; ValaCCodeConstant* _tmp900_; ValaCCodeConstant* _tmp901_; ValaCCodeFunctionCall* _tmp902_; ValaCCodeConstant* _tmp903_; ValaCCodeConstant* _tmp904_; ValaCCodeFunctionCall* _tmp905_; ValaCCodeConstant* _tmp906_; ValaCCodeConstant* _tmp907_; ValaCCodeFunction* _tmp908_; ValaCCodeFunction* _tmp909_; ValaCCodeFunctionCall* _tmp910_; ValaCCodeIdentifier* _tmp911_; ValaCCodeIdentifier* _tmp912_; ValaCCodeFunctionCall* _tmp913_; ValaCCodeFunctionCall* _tmp914_; ValaCCodeFunctionCall* unref_call; ValaCCodeFunctionCall* _tmp915_; ValaCCodeIdentifier* _tmp916_; ValaCCodeIdentifier* _tmp917_; ValaCCodeFunction* _tmp918_; ValaCCodeFunction* _tmp919_; ValaCCodeFunctionCall* _tmp920_; ValaCCodeIdentifier* _tmp921_; ValaCCodeIdentifier* _tmp922_; ValaCCodeFunctionCall* _tmp923_; ValaCCodeFunctionCall* _tmp924_; ValaCCodeIdentifier* _tmp925_; ValaCCodeIdentifier* _tmp926_; ValaCCodeFunction* _tmp927_; ValaCCodeFunction* _tmp928_; ValaCCodeFunctionCall* _tmp929_; _tmp890_ = vala_ccode_identifier_new ("g_dbus_connection_send_message"); _tmp891_ = _tmp890_; _tmp892_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp891_); _tmp893_ = _tmp892_; _vala_ccode_node_unref0 (_tmp891_); return_value = _tmp893_; _tmp894_ = return_value; _tmp895_ = connection; vala_ccode_function_call_add_argument (_tmp894_, (ValaCCodeExpression*) _tmp895_); _tmp896_ = return_value; _tmp897_ = vala_ccode_identifier_new ("_reply_message"); _tmp898_ = _tmp897_; vala_ccode_function_call_add_argument (_tmp896_, (ValaCCodeExpression*) _tmp898_); _vala_ccode_node_unref0 (_tmp898_); _tmp899_ = return_value; _tmp900_ = vala_ccode_constant_new ("G_DBUS_SEND_MESSAGE_FLAGS_NONE"); _tmp901_ = _tmp900_; vala_ccode_function_call_add_argument (_tmp899_, (ValaCCodeExpression*) _tmp901_); _vala_ccode_node_unref0 (_tmp901_); _tmp902_ = return_value; _tmp903_ = vala_ccode_constant_new ("NULL"); _tmp904_ = _tmp903_; vala_ccode_function_call_add_argument (_tmp902_, (ValaCCodeExpression*) _tmp904_); _vala_ccode_node_unref0 (_tmp904_); _tmp905_ = return_value; _tmp906_ = vala_ccode_constant_new ("NULL"); _tmp907_ = _tmp906_; vala_ccode_function_call_add_argument (_tmp905_, (ValaCCodeExpression*) _tmp907_); _vala_ccode_node_unref0 (_tmp907_); _tmp908_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp909_ = _tmp908_; _tmp910_ = return_value; vala_ccode_function_add_expression (_tmp909_, (ValaCCodeExpression*) _tmp910_); _tmp911_ = vala_ccode_identifier_new ("g_object_unref"); _tmp912_ = _tmp911_; _tmp913_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp912_); _tmp914_ = _tmp913_; _vala_ccode_node_unref0 (_tmp912_); unref_call = _tmp914_; _tmp915_ = unref_call; _tmp916_ = vala_ccode_identifier_new ("invocation"); _tmp917_ = _tmp916_; vala_ccode_function_call_add_argument (_tmp915_, (ValaCCodeExpression*) _tmp917_); _vala_ccode_node_unref0 (_tmp917_); _tmp918_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp919_ = _tmp918_; _tmp920_ = unref_call; vala_ccode_function_add_expression (_tmp919_, (ValaCCodeExpression*) _tmp920_); _tmp921_ = vala_ccode_identifier_new ("g_object_unref"); _tmp922_ = _tmp921_; _tmp923_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp922_); _vala_ccode_node_unref0 (unref_call); unref_call = _tmp923_; _vala_ccode_node_unref0 (_tmp922_); _tmp924_ = unref_call; _tmp925_ = vala_ccode_identifier_new ("_reply_message"); _tmp926_ = _tmp925_; vala_ccode_function_call_add_argument (_tmp924_, (ValaCCodeExpression*) _tmp926_); _vala_ccode_node_unref0 (_tmp926_); _tmp927_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp928_ = _tmp927_; _tmp929_ = unref_call; vala_ccode_function_add_expression (_tmp928_, (ValaCCodeExpression*) _tmp929_); _vala_ccode_node_unref0 (unref_call); _vala_ccode_node_unref0 (return_value); } vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp930_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp931_ = function; vala_ccode_file_add_function_declaration (_tmp930_, _tmp931_); _tmp932_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp933_ = function; vala_ccode_file_add_function (_tmp932_, _tmp933_); _tmp935_ = m; _tmp936_ = vala_method_get_coroutine (_tmp935_); _tmp937_ = _tmp936_; if (_tmp937_) { gboolean _tmp938_; _tmp938_ = ready; _tmp934_ = !_tmp938_; } else { _tmp934_ = FALSE; } _tmp939_ = _tmp934_; if (_tmp939_) { ValaMethod* _tmp940_; ValaObjectTypeSymbol* _tmp941_; gchar* _tmp942_ = NULL; gchar* _tmp943_; _tmp940_ = m; _tmp941_ = sym; _tmp942_ = vala_gd_bus_server_module_generate_dbus_wrapper (self, _tmp940_, _tmp941_, TRUE); _tmp943_ = _tmp942_; _g_free0 (_tmp943_); } result = wrapper_name; _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (connection); _vala_ccode_node_unref0 (function); return result; } static gchar* vala_gd_bus_server_module_generate_dbus_signal_wrapper (ValaGDBusServerModule* self, ValaSignal* sig, ValaObjectTypeSymbol* sym, const gchar* dbus_iface_name) { gchar* result = NULL; ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; ValaSignal* _tmp3_; gchar* _tmp4_ = NULL; gchar* _tmp5_; gchar* _tmp6_ = NULL; gchar* _tmp7_; gchar* wrapper_name; const gchar* _tmp8_; ValaCCodeFunction* _tmp9_; ValaCCodeFunction* function; ValaCCodeFunction* _tmp10_; ValaCCodeFunction* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeParameter* _tmp13_; ValaCCodeFunction* _tmp57_; ValaCCodeParameter* _tmp58_; ValaCCodeParameter* _tmp59_; ValaCCodeFunction* _tmp60_; ValaCCodeFunction* _tmp61_; ValaCCodeFunction* _tmp62_; ValaCCodeIdentifier* _tmp63_; ValaCCodeIdentifier* _tmp64_; ValaCCodeConstant* _tmp65_; ValaCCodeConstant* _tmp66_; ValaCCodeElementAccess* _tmp67_; ValaCCodeElementAccess* _tmp68_; ValaCCodeVariableDeclarator* _tmp69_; ValaCCodeVariableDeclarator* _tmp70_; ValaCCodeFunction* _tmp71_; ValaCCodeFunction* _tmp72_; ValaCCodeIdentifier* _tmp73_; ValaCCodeIdentifier* _tmp74_; ValaCCodeConstant* _tmp75_; ValaCCodeConstant* _tmp76_; ValaCCodeElementAccess* _tmp77_; ValaCCodeElementAccess* _tmp78_; ValaCCodeVariableDeclarator* _tmp79_; ValaCCodeVariableDeclarator* _tmp80_; ValaCCodeFunction* _tmp81_; ValaCCodeFunction* _tmp82_; ValaCCodeVariableDeclarator* _tmp83_; ValaCCodeVariableDeclarator* _tmp84_; ValaCCodeFunction* _tmp85_; ValaCCodeFunction* _tmp86_; ValaCCodeVariableDeclarator* _tmp87_; ValaCCodeVariableDeclarator* _tmp88_; ValaCCodeIdentifier* _tmp89_; ValaCCodeIdentifier* _tmp90_; ValaCCodeFunctionCall* _tmp91_; ValaCCodeFunctionCall* _tmp92_; ValaCCodeFunctionCall* builder_init; ValaCCodeFunctionCall* _tmp93_; ValaCCodeIdentifier* _tmp94_; ValaCCodeIdentifier* _tmp95_; ValaCCodeUnaryExpression* _tmp96_; ValaCCodeUnaryExpression* _tmp97_; ValaCCodeFunctionCall* _tmp98_; ValaCCodeIdentifier* _tmp99_; ValaCCodeIdentifier* _tmp100_; ValaCCodeFunction* _tmp101_; ValaCCodeFunction* _tmp102_; ValaCCodeFunctionCall* _tmp103_; ValaCCodeIdentifier* _tmp134_; ValaCCodeIdentifier* _tmp135_; ValaCCodeFunctionCall* _tmp136_; ValaCCodeFunctionCall* _tmp137_; ValaCCodeFunctionCall* builder_end; ValaCCodeIdentifier* _tmp138_; ValaCCodeIdentifier* _tmp139_; ValaCCodeUnaryExpression* _tmp140_; ValaCCodeUnaryExpression* _tmp141_; ValaCCodeFunction* _tmp142_; ValaCCodeFunction* _tmp143_; ValaCCodeIdentifier* _tmp144_; ValaCCodeIdentifier* _tmp145_; ValaCCodeIdentifier* _tmp146_; ValaCCodeIdentifier* _tmp147_; ValaCCodeFunctionCall* _tmp148_; ValaCCodeFunctionCall* _tmp149_; ValaCCodeFunctionCall* ccall; ValaCCodeIdentifier* _tmp150_; ValaCCodeIdentifier* _tmp151_; ValaCCodeConstant* _tmp152_; ValaCCodeConstant* _tmp153_; ValaCCodeIdentifier* _tmp154_; ValaCCodeIdentifier* _tmp155_; const gchar* _tmp156_; gchar* _tmp157_ = NULL; gchar* _tmp158_; ValaCCodeConstant* _tmp159_; ValaCCodeConstant* _tmp160_; ValaSignal* _tmp161_; gchar* _tmp162_ = NULL; gchar* _tmp163_; gchar* _tmp164_ = NULL; gchar* _tmp165_; ValaCCodeConstant* _tmp166_; ValaCCodeConstant* _tmp167_; ValaCCodeIdentifier* _tmp168_; ValaCCodeIdentifier* _tmp169_; ValaCCodeConstant* _tmp170_; ValaCCodeConstant* _tmp171_; ValaCCodeFunction* _tmp172_; ValaCCodeFunction* _tmp173_; ValaCCodeFile* _tmp174_; ValaCCodeFunction* _tmp175_; ValaCCodeFile* _tmp176_; ValaCCodeFunction* _tmp177_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sig != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); g_return_val_if_fail (dbus_iface_name != NULL, NULL); _tmp0_ = sym; _tmp1_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp0_, NULL); _tmp2_ = _tmp1_; _tmp3_ = sig; _tmp4_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp3_); _tmp5_ = _tmp4_; _tmp6_ = g_strdup_printf ("_dbus_%s_%s", _tmp2_, _tmp5_); _tmp7_ = _tmp6_; _g_free0 (_tmp5_); _g_free0 (_tmp2_); wrapper_name = _tmp7_; _tmp8_ = wrapper_name; _tmp9_ = vala_ccode_function_new (_tmp8_, "void"); function = _tmp9_; _tmp10_ = function; vala_ccode_function_set_modifiers (_tmp10_, VALA_CCODE_MODIFIERS_STATIC); _tmp11_ = function; _tmp12_ = vala_ccode_parameter_new ("_sender", "GObject*"); _tmp13_ = _tmp12_; vala_ccode_function_add_parameter (_tmp11_, _tmp13_); _vala_ccode_node_unref0 (_tmp13_); { ValaSignal* _tmp14_; ValaList* _tmp15_ = NULL; ValaList* _param_list; ValaList* _tmp16_; gint _tmp17_; gint _tmp18_; gint _param_size; gint _param_index; _tmp14_ = sig; _tmp15_ = vala_signal_get_parameters (_tmp14_); _param_list = _tmp15_; _tmp16_ = _param_list; _tmp17_ = vala_collection_get_size ((ValaCollection*) _tmp16_); _tmp18_ = _tmp17_; _param_size = _tmp18_; _param_index = -1; while (TRUE) { gint _tmp19_; gint _tmp20_; gint _tmp21_; ValaList* _tmp22_; gint _tmp23_; gpointer _tmp24_ = NULL; ValaParameter* param; ValaParameter* _tmp25_; ValaCCodeFile* _tmp26_; GHashFunc _tmp27_; GEqualFunc _tmp28_; GEqualFunc _tmp29_; ValaHashMap* _tmp30_; ValaHashMap* _tmp31_; ValaCCodeParameter* _tmp32_ = NULL; ValaCCodeParameter* _tmp33_; ValaCCodeParameter* cparam; ValaCCodeFunction* _tmp34_; ValaCCodeParameter* _tmp35_; ValaParameter* _tmp36_; ValaDataType* _tmp37_; ValaDataType* _tmp38_; _tmp19_ = _param_index; _param_index = _tmp19_ + 1; _tmp20_ = _param_index; _tmp21_ = _param_size; if (!(_tmp20_ < _tmp21_)) { break; } _tmp22_ = _param_list; _tmp23_ = _param_index; _tmp24_ = vala_list_get (_tmp22_, _tmp23_); param = (ValaParameter*) _tmp24_; _tmp25_ = param; _tmp26_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp27_ = g_direct_hash; _tmp28_ = g_direct_equal; _tmp29_ = g_direct_equal; _tmp30_ = vala_hash_map_new (G_TYPE_INT, NULL, NULL, VALA_TYPE_CCODE_PARAMETER, (GBoxedCopyFunc) vala_ccode_node_ref, vala_ccode_node_unref, _tmp27_, _tmp28_, _tmp29_); _tmp31_ = _tmp30_; _tmp32_ = vala_ccode_method_module_generate_parameter ((ValaCCodeMethodModule*) self, _tmp25_, _tmp26_, (ValaMap*) _tmp31_, NULL); _tmp33_ = _tmp32_; _vala_map_unref0 (_tmp31_); cparam = _tmp33_; _tmp34_ = function; _tmp35_ = cparam; vala_ccode_function_add_parameter (_tmp34_, _tmp35_); _tmp36_ = param; _tmp37_ = vala_variable_get_variable_type ((ValaVariable*) _tmp36_); _tmp38_ = _tmp37_; if (VALA_IS_ARRAY_TYPE (_tmp38_)) { ValaParameter* _tmp39_; ValaDataType* _tmp40_; ValaDataType* _tmp41_; ValaArrayType* _tmp42_; ValaArrayType* array_type; _tmp39_ = param; _tmp40_ = vala_variable_get_variable_type ((ValaVariable*) _tmp39_); _tmp41_ = _tmp40_; _tmp42_ = _vala_code_node_ref0 (VALA_ARRAY_TYPE (_tmp41_)); array_type = _tmp42_; { gint dim; dim = 1; { gboolean _tmp43_; _tmp43_ = TRUE; while (TRUE) { gboolean _tmp44_; gint _tmp46_; ValaArrayType* _tmp47_; gint _tmp48_; gint _tmp49_; ValaCCodeFunction* _tmp50_; ValaParameter* _tmp51_; gint _tmp52_; gchar* _tmp53_ = NULL; gchar* _tmp54_; ValaCCodeParameter* _tmp55_; ValaCCodeParameter* _tmp56_; _tmp44_ = _tmp43_; if (!_tmp44_) { gint _tmp45_; _tmp45_ = dim; dim = _tmp45_ + 1; } _tmp43_ = FALSE; _tmp46_ = dim; _tmp47_ = array_type; _tmp48_ = vala_array_type_get_rank (_tmp47_); _tmp49_ = _tmp48_; if (!(_tmp46_ <= _tmp49_)) { break; } _tmp50_ = function; _tmp51_ = param; _tmp52_ = dim; _tmp53_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, _tmp51_, _tmp52_); _tmp54_ = _tmp53_; _tmp55_ = vala_ccode_parameter_new (_tmp54_, "int"); _tmp56_ = _tmp55_; vala_ccode_function_add_parameter (_tmp50_, _tmp56_); _vala_ccode_node_unref0 (_tmp56_); _g_free0 (_tmp54_); } } } _vala_code_node_unref0 (array_type); } _vala_ccode_node_unref0 (cparam); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp57_ = function; _tmp58_ = vala_ccode_parameter_new ("_data", "gpointer*"); _tmp59_ = _tmp58_; vala_ccode_function_add_parameter (_tmp57_, _tmp59_); _vala_ccode_node_unref0 (_tmp59_); _tmp60_ = function; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp60_); _tmp61_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp62_ = _tmp61_; _tmp63_ = vala_ccode_identifier_new ("_data"); _tmp64_ = _tmp63_; _tmp65_ = vala_ccode_constant_new ("1"); _tmp66_ = _tmp65_; _tmp67_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp64_, (ValaCCodeExpression*) _tmp66_); _tmp68_ = _tmp67_; _tmp69_ = vala_ccode_variable_declarator_new ("_connection", (ValaCCodeExpression*) _tmp68_, NULL); _tmp70_ = _tmp69_; vala_ccode_function_add_declaration (_tmp62_, "GDBusConnection *", (ValaCCodeDeclarator*) _tmp70_, 0); _vala_ccode_node_unref0 (_tmp70_); _vala_ccode_node_unref0 (_tmp68_); _vala_ccode_node_unref0 (_tmp66_); _vala_ccode_node_unref0 (_tmp64_); _tmp71_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp72_ = _tmp71_; _tmp73_ = vala_ccode_identifier_new ("_data"); _tmp74_ = _tmp73_; _tmp75_ = vala_ccode_constant_new ("2"); _tmp76_ = _tmp75_; _tmp77_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp74_, (ValaCCodeExpression*) _tmp76_); _tmp78_ = _tmp77_; _tmp79_ = vala_ccode_variable_declarator_new ("_path", (ValaCCodeExpression*) _tmp78_, NULL); _tmp80_ = _tmp79_; vala_ccode_function_add_declaration (_tmp72_, "const gchar *", (ValaCCodeDeclarator*) _tmp80_, 0); _vala_ccode_node_unref0 (_tmp80_); _vala_ccode_node_unref0 (_tmp78_); _vala_ccode_node_unref0 (_tmp76_); _vala_ccode_node_unref0 (_tmp74_); _tmp81_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp82_ = _tmp81_; _tmp83_ = vala_ccode_variable_declarator_new ("*_arguments", NULL, NULL); _tmp84_ = _tmp83_; vala_ccode_function_add_declaration (_tmp82_, "GVariant", (ValaCCodeDeclarator*) _tmp84_, 0); _vala_ccode_node_unref0 (_tmp84_); _tmp85_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp86_ = _tmp85_; _tmp87_ = vala_ccode_variable_declarator_new ("_arguments_builder", NULL, NULL); _tmp88_ = _tmp87_; vala_ccode_function_add_declaration (_tmp86_, "GVariantBuilder", (ValaCCodeDeclarator*) _tmp88_, 0); _vala_ccode_node_unref0 (_tmp88_); _tmp89_ = vala_ccode_identifier_new ("g_variant_builder_init"); _tmp90_ = _tmp89_; _tmp91_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp90_); _tmp92_ = _tmp91_; _vala_ccode_node_unref0 (_tmp90_); builder_init = _tmp92_; _tmp93_ = builder_init; _tmp94_ = vala_ccode_identifier_new ("_arguments_builder"); _tmp95_ = _tmp94_; _tmp96_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp95_); _tmp97_ = _tmp96_; vala_ccode_function_call_add_argument (_tmp93_, (ValaCCodeExpression*) _tmp97_); _vala_ccode_node_unref0 (_tmp97_); _vala_ccode_node_unref0 (_tmp95_); _tmp98_ = builder_init; _tmp99_ = vala_ccode_identifier_new ("G_VARIANT_TYPE_TUPLE"); _tmp100_ = _tmp99_; vala_ccode_function_call_add_argument (_tmp98_, (ValaCCodeExpression*) _tmp100_); _vala_ccode_node_unref0 (_tmp100_); _tmp101_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp102_ = _tmp101_; _tmp103_ = builder_init; vala_ccode_function_add_expression (_tmp102_, (ValaCCodeExpression*) _tmp103_); { ValaSignal* _tmp104_; ValaList* _tmp105_ = NULL; ValaList* _param_list; ValaList* _tmp106_; gint _tmp107_; gint _tmp108_; gint _param_size; gint _param_index; _tmp104_ = sig; _tmp105_ = vala_signal_get_parameters (_tmp104_); _param_list = _tmp105_; _tmp106_ = _param_list; _tmp107_ = vala_collection_get_size ((ValaCollection*) _tmp106_); _tmp108_ = _tmp107_; _param_size = _tmp108_; _param_index = -1; while (TRUE) { gint _tmp109_; gint _tmp110_; gint _tmp111_; ValaList* _tmp112_; gint _tmp113_; gpointer _tmp114_ = NULL; ValaParameter* param; ValaParameter* _tmp115_; const gchar* _tmp116_; const gchar* _tmp117_; gchar* _tmp118_ = NULL; gchar* param_name; const gchar* _tmp119_; ValaCCodeIdentifier* _tmp120_; ValaCCodeExpression* expr; ValaParameter* _tmp121_; ValaDataType* _tmp122_; ValaDataType* _tmp123_; gboolean _tmp124_ = FALSE; ValaParameter* _tmp127_; ValaDataType* _tmp128_; ValaDataType* _tmp129_; ValaCCodeIdentifier* _tmp130_; ValaCCodeIdentifier* _tmp131_; ValaCCodeExpression* _tmp132_; ValaParameter* _tmp133_; _tmp109_ = _param_index; _param_index = _tmp109_ + 1; _tmp110_ = _param_index; _tmp111_ = _param_size; if (!(_tmp110_ < _tmp111_)) { break; } _tmp112_ = _param_list; _tmp113_ = _param_index; _tmp114_ = vala_list_get (_tmp112_, _tmp113_); param = (ValaParameter*) _tmp114_; _tmp115_ = param; _tmp116_ = vala_symbol_get_name ((ValaSymbol*) _tmp115_); _tmp117_ = _tmp116_; _tmp118_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, _tmp117_); param_name = _tmp118_; _tmp119_ = param_name; _tmp120_ = vala_ccode_identifier_new (_tmp119_); expr = (ValaCCodeExpression*) _tmp120_; _tmp121_ = param; _tmp122_ = vala_variable_get_variable_type ((ValaVariable*) _tmp121_); _tmp123_ = _tmp122_; _tmp124_ = vala_data_type_is_real_struct_type (_tmp123_); if (_tmp124_) { ValaCCodeExpression* _tmp125_; ValaCCodeUnaryExpression* _tmp126_; _tmp125_ = expr; _tmp126_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POINTER_INDIRECTION, _tmp125_); _vala_ccode_node_unref0 (expr); expr = (ValaCCodeExpression*) _tmp126_; } _tmp127_ = param; _tmp128_ = vala_variable_get_variable_type ((ValaVariable*) _tmp127_); _tmp129_ = _tmp128_; _tmp130_ = vala_ccode_identifier_new ("_arguments_builder"); _tmp131_ = _tmp130_; _tmp132_ = expr; _tmp133_ = param; vala_gvariant_module_write_expression ((ValaGVariantModule*) self, _tmp129_, (ValaCCodeExpression*) _tmp131_, _tmp132_, (ValaSymbol*) _tmp133_); _vala_ccode_node_unref0 (_tmp131_); _vala_ccode_node_unref0 (expr); _g_free0 (param_name); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp134_ = vala_ccode_identifier_new ("g_variant_builder_end"); _tmp135_ = _tmp134_; _tmp136_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp135_); _tmp137_ = _tmp136_; _vala_ccode_node_unref0 (_tmp135_); builder_end = _tmp137_; _tmp138_ = vala_ccode_identifier_new ("_arguments_builder"); _tmp139_ = _tmp138_; _tmp140_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp139_); _tmp141_ = _tmp140_; vala_ccode_function_call_add_argument (builder_end, (ValaCCodeExpression*) _tmp141_); _vala_ccode_node_unref0 (_tmp141_); _vala_ccode_node_unref0 (_tmp139_); _tmp142_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp143_ = _tmp142_; _tmp144_ = vala_ccode_identifier_new ("_arguments"); _tmp145_ = _tmp144_; vala_ccode_function_add_assignment (_tmp143_, (ValaCCodeExpression*) _tmp145_, (ValaCCodeExpression*) builder_end); _vala_ccode_node_unref0 (_tmp145_); _tmp146_ = vala_ccode_identifier_new ("g_dbus_connection_emit_signal"); _tmp147_ = _tmp146_; _tmp148_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp147_); _tmp149_ = _tmp148_; _vala_ccode_node_unref0 (_tmp147_); ccall = _tmp149_; _tmp150_ = vala_ccode_identifier_new ("_connection"); _tmp151_ = _tmp150_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp151_); _vala_ccode_node_unref0 (_tmp151_); _tmp152_ = vala_ccode_constant_new ("NULL"); _tmp153_ = _tmp152_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp153_); _vala_ccode_node_unref0 (_tmp153_); _tmp154_ = vala_ccode_identifier_new ("_path"); _tmp155_ = _tmp154_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp155_); _vala_ccode_node_unref0 (_tmp155_); _tmp156_ = dbus_iface_name; _tmp157_ = g_strdup_printf ("\"%s\"", _tmp156_); _tmp158_ = _tmp157_; _tmp159_ = vala_ccode_constant_new (_tmp158_); _tmp160_ = _tmp159_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp160_); _vala_ccode_node_unref0 (_tmp160_); _g_free0 (_tmp158_); _tmp161_ = sig; _tmp162_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp161_); _tmp163_ = _tmp162_; _tmp164_ = g_strdup_printf ("\"%s\"", _tmp163_); _tmp165_ = _tmp164_; _tmp166_ = vala_ccode_constant_new (_tmp165_); _tmp167_ = _tmp166_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp167_); _vala_ccode_node_unref0 (_tmp167_); _g_free0 (_tmp165_); _g_free0 (_tmp163_); _tmp168_ = vala_ccode_identifier_new ("_arguments"); _tmp169_ = _tmp168_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp169_); _vala_ccode_node_unref0 (_tmp169_); _tmp170_ = vala_ccode_constant_new ("NULL"); _tmp171_ = _tmp170_; vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) _tmp171_); _vala_ccode_node_unref0 (_tmp171_); _tmp172_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp173_ = _tmp172_; vala_ccode_function_add_expression (_tmp173_, (ValaCCodeExpression*) ccall); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp174_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp175_ = function; vala_ccode_file_add_function_declaration (_tmp174_, _tmp175_); _tmp176_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp177_ = function; vala_ccode_file_add_function (_tmp176_, _tmp177_); result = wrapper_name; _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (builder_end); _vala_ccode_node_unref0 (builder_init); _vala_ccode_node_unref0 (function); return result; } static gchar* vala_gd_bus_server_module_generate_dbus_property_get_wrapper (ValaGDBusServerModule* self, ValaProperty* prop, ValaObjectTypeSymbol* sym) { gchar* result = NULL; ValaProperty* _tmp0_; ValaPropertyAccessor* _tmp1_; ValaPropertyAccessor* _tmp2_; gchar* _tmp3_ = NULL; gchar* _tmp4_; gchar* _tmp5_ = NULL; gchar* _tmp6_; gchar* wrapper_name; const gchar* _tmp7_; ValaCCodeFunction* _tmp8_; ValaCCodeFunction* function; ValaCCodeFunction* _tmp9_; ValaCCodeFunction* _tmp10_; ValaObjectTypeSymbol* _tmp11_; gchar* _tmp12_ = NULL; gchar* _tmp13_; gchar* _tmp14_; gchar* _tmp15_; ValaCCodeParameter* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeFunction* _tmp18_; ValaProperty* _tmp19_; ValaPropertyAccessor* _tmp20_; ValaPropertyAccessor* _tmp21_; gchar* _tmp22_ = NULL; gchar* _tmp23_; ValaCCodeIdentifier* _tmp24_; ValaCCodeIdentifier* _tmp25_; ValaCCodeFunctionCall* _tmp26_; ValaCCodeFunctionCall* _tmp27_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp28_; ValaCCodeIdentifier* _tmp29_; ValaCCodeIdentifier* _tmp30_; ValaProperty* _tmp31_; ValaPropertyAccessor* _tmp32_; ValaPropertyAccessor* _tmp33_; ValaDataType* _tmp34_; ValaDataType* _tmp35_; gboolean _tmp36_ = FALSE; ValaProperty* _tmp106_; ValaPropertyAccessor* _tmp107_; ValaPropertyAccessor* _tmp108_; ValaDataType* _tmp109_; ValaDataType* _tmp110_; ValaCCodeIdentifier* _tmp111_; ValaCCodeIdentifier* _tmp112_; ValaCCodeExpression* _tmp113_ = NULL; ValaCCodeExpression* _tmp114_; ValaCCodeExpression* reply_expr; ValaCCodeFunction* _tmp115_; ValaCCodeFunction* _tmp116_; ValaCCodeVariableDeclarator* _tmp117_; ValaCCodeVariableDeclarator* _tmp118_; ValaCCodeFunction* _tmp119_; ValaCCodeFunction* _tmp120_; ValaCCodeIdentifier* _tmp121_; ValaCCodeIdentifier* _tmp122_; ValaCCodeExpression* _tmp123_; ValaProperty* _tmp124_; ValaPropertyAccessor* _tmp125_; ValaPropertyAccessor* _tmp126_; ValaDataType* _tmp127_; ValaDataType* _tmp128_; gboolean _tmp129_ = FALSE; ValaCCodeFunction* _tmp141_; ValaCCodeFunction* _tmp142_; ValaCCodeIdentifier* _tmp143_; ValaCCodeIdentifier* _tmp144_; ValaCCodeFile* _tmp145_; ValaCCodeFunction* _tmp146_; ValaCCodeFile* _tmp147_; ValaCCodeFunction* _tmp148_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (prop != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = prop; _tmp1_ = vala_property_get_get_accessor (_tmp0_); _tmp2_ = _tmp1_; _tmp3_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp2_); _tmp4_ = _tmp3_; _tmp5_ = g_strdup_printf ("_dbus_%s", _tmp4_); _tmp6_ = _tmp5_; _g_free0 (_tmp4_); wrapper_name = _tmp6_; _tmp7_ = wrapper_name; _tmp8_ = vala_ccode_function_new (_tmp7_, "GVariant*"); function = _tmp8_; _tmp9_ = function; vala_ccode_function_set_modifiers (_tmp9_, VALA_CCODE_MODIFIERS_STATIC); _tmp10_ = function; _tmp11_ = sym; _tmp12_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp11_); _tmp13_ = _tmp12_; _tmp14_ = g_strconcat (_tmp13_, "*", NULL); _tmp15_ = _tmp14_; _tmp16_ = vala_ccode_parameter_new ("self", _tmp15_); _tmp17_ = _tmp16_; vala_ccode_function_add_parameter (_tmp10_, _tmp17_); _vala_ccode_node_unref0 (_tmp17_); _g_free0 (_tmp15_); _g_free0 (_tmp13_); _tmp18_ = function; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp18_); _tmp19_ = prop; _tmp20_ = vala_property_get_get_accessor (_tmp19_); _tmp21_ = _tmp20_; _tmp22_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp21_); _tmp23_ = _tmp22_; _tmp24_ = vala_ccode_identifier_new (_tmp23_); _tmp25_ = _tmp24_; _tmp26_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp25_); _tmp27_ = _tmp26_; _vala_ccode_node_unref0 (_tmp25_); _g_free0 (_tmp23_); ccall = _tmp27_; _tmp28_ = ccall; _tmp29_ = vala_ccode_identifier_new ("self"); _tmp30_ = _tmp29_; vala_ccode_function_call_add_argument (_tmp28_, (ValaCCodeExpression*) _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _tmp31_ = prop; _tmp32_ = vala_property_get_get_accessor (_tmp31_); _tmp33_ = _tmp32_; _tmp34_ = vala_property_accessor_get_value_type (_tmp33_); _tmp35_ = _tmp34_; _tmp36_ = vala_data_type_is_real_non_null_struct_type (_tmp35_); if (_tmp36_) { ValaCCodeFunction* _tmp37_; ValaCCodeFunction* _tmp38_; ValaProperty* _tmp39_; ValaPropertyAccessor* _tmp40_; ValaPropertyAccessor* _tmp41_; ValaDataType* _tmp42_; ValaDataType* _tmp43_; gchar* _tmp44_ = NULL; gchar* _tmp45_; ValaProperty* _tmp46_; ValaPropertyAccessor* _tmp47_; ValaPropertyAccessor* _tmp48_; ValaDataType* _tmp49_; ValaDataType* _tmp50_; ValaCCodeExpression* _tmp51_ = NULL; ValaCCodeExpression* _tmp52_; ValaCCodeVariableDeclarator* _tmp53_; ValaCCodeVariableDeclarator* _tmp54_; ValaCCodeFunctionCall* _tmp55_; ValaCCodeIdentifier* _tmp56_; ValaCCodeIdentifier* _tmp57_; ValaCCodeUnaryExpression* _tmp58_; ValaCCodeUnaryExpression* _tmp59_; ValaCCodeFunction* _tmp60_; ValaCCodeFunction* _tmp61_; ValaCCodeFunctionCall* _tmp62_; _tmp37_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp38_ = _tmp37_; _tmp39_ = prop; _tmp40_ = vala_property_get_get_accessor (_tmp39_); _tmp41_ = _tmp40_; _tmp42_ = vala_property_accessor_get_value_type (_tmp41_); _tmp43_ = _tmp42_; _tmp44_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp43_); _tmp45_ = _tmp44_; _tmp46_ = prop; _tmp47_ = vala_property_get_get_accessor (_tmp46_); _tmp48_ = _tmp47_; _tmp49_ = vala_property_accessor_get_value_type (_tmp48_); _tmp50_ = _tmp49_; _tmp51_ = vala_ccode_base_module_default_value_for_type ((ValaCCodeBaseModule*) self, _tmp50_, TRUE); _tmp52_ = _tmp51_; _tmp53_ = vala_ccode_variable_declarator_new_zero ("result", _tmp52_, NULL); _tmp54_ = _tmp53_; vala_ccode_function_add_declaration (_tmp38_, _tmp45_, (ValaCCodeDeclarator*) _tmp54_, 0); _vala_ccode_node_unref0 (_tmp54_); _vala_ccode_node_unref0 (_tmp52_); _g_free0 (_tmp45_); _tmp55_ = ccall; _tmp56_ = vala_ccode_identifier_new ("result"); _tmp57_ = _tmp56_; _tmp58_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp57_); _tmp59_ = _tmp58_; vala_ccode_function_call_add_argument (_tmp55_, (ValaCCodeExpression*) _tmp59_); _vala_ccode_node_unref0 (_tmp59_); _vala_ccode_node_unref0 (_tmp57_); _tmp60_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp61_ = _tmp60_; _tmp62_ = ccall; vala_ccode_function_add_expression (_tmp61_, (ValaCCodeExpression*) _tmp62_); } else { ValaCCodeFunction* _tmp63_; ValaCCodeFunction* _tmp64_; ValaProperty* _tmp65_; ValaPropertyAccessor* _tmp66_; ValaPropertyAccessor* _tmp67_; ValaDataType* _tmp68_; ValaDataType* _tmp69_; gchar* _tmp70_ = NULL; gchar* _tmp71_; ValaCCodeVariableDeclarator* _tmp72_; ValaCCodeVariableDeclarator* _tmp73_; ValaCCodeFunction* _tmp74_; ValaCCodeFunction* _tmp75_; ValaCCodeIdentifier* _tmp76_; ValaCCodeIdentifier* _tmp77_; ValaCCodeFunctionCall* _tmp78_; ValaProperty* _tmp79_; ValaPropertyAccessor* _tmp80_; ValaPropertyAccessor* _tmp81_; ValaDataType* _tmp82_; ValaDataType* _tmp83_; ValaArrayType* _tmp84_; ValaArrayType* array_type; ValaArrayType* _tmp85_; _tmp63_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp64_ = _tmp63_; _tmp65_ = prop; _tmp66_ = vala_property_get_get_accessor (_tmp65_); _tmp67_ = _tmp66_; _tmp68_ = vala_property_accessor_get_value_type (_tmp67_); _tmp69_ = _tmp68_; _tmp70_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp69_); _tmp71_ = _tmp70_; _tmp72_ = vala_ccode_variable_declarator_new ("result", NULL, NULL); _tmp73_ = _tmp72_; vala_ccode_function_add_declaration (_tmp64_, _tmp71_, (ValaCCodeDeclarator*) _tmp73_, 0); _vala_ccode_node_unref0 (_tmp73_); _g_free0 (_tmp71_); _tmp74_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp75_ = _tmp74_; _tmp76_ = vala_ccode_identifier_new ("result"); _tmp77_ = _tmp76_; _tmp78_ = ccall; vala_ccode_function_add_assignment (_tmp75_, (ValaCCodeExpression*) _tmp77_, (ValaCCodeExpression*) _tmp78_); _vala_ccode_node_unref0 (_tmp77_); _tmp79_ = prop; _tmp80_ = vala_property_get_get_accessor (_tmp79_); _tmp81_ = _tmp80_; _tmp82_ = vala_property_accessor_get_value_type (_tmp81_); _tmp83_ = _tmp82_; _tmp84_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp83_) ? ((ValaArrayType*) _tmp83_) : NULL); array_type = _tmp84_; _tmp85_ = array_type; if (_tmp85_ != NULL) { { gint dim; dim = 1; { gboolean _tmp86_; _tmp86_ = TRUE; while (TRUE) { gboolean _tmp87_; gint _tmp89_; ValaArrayType* _tmp90_; gint _tmp91_; gint _tmp92_; gint _tmp93_; gchar* _tmp94_ = NULL; gchar* length_cname; ValaCCodeFunction* _tmp95_; ValaCCodeFunction* _tmp96_; const gchar* _tmp97_; ValaCCodeVariableDeclarator* _tmp98_; ValaCCodeVariableDeclarator* _tmp99_; ValaCCodeFunctionCall* _tmp100_; const gchar* _tmp101_; ValaCCodeIdentifier* _tmp102_; ValaCCodeIdentifier* _tmp103_; ValaCCodeUnaryExpression* _tmp104_; ValaCCodeUnaryExpression* _tmp105_; _tmp87_ = _tmp86_; if (!_tmp87_) { gint _tmp88_; _tmp88_ = dim; dim = _tmp88_ + 1; } _tmp86_ = FALSE; _tmp89_ = dim; _tmp90_ = array_type; _tmp91_ = vala_array_type_get_rank (_tmp90_); _tmp92_ = _tmp91_; if (!(_tmp89_ <= _tmp92_)) { break; } _tmp93_ = dim; _tmp94_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "result", _tmp93_); length_cname = _tmp94_; _tmp95_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp96_ = _tmp95_; _tmp97_ = length_cname; _tmp98_ = vala_ccode_variable_declarator_new (_tmp97_, NULL, NULL); _tmp99_ = _tmp98_; vala_ccode_function_add_declaration (_tmp96_, "int", (ValaCCodeDeclarator*) _tmp99_, 0); _vala_ccode_node_unref0 (_tmp99_); _tmp100_ = ccall; _tmp101_ = length_cname; _tmp102_ = vala_ccode_identifier_new (_tmp101_); _tmp103_ = _tmp102_; _tmp104_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp103_); _tmp105_ = _tmp104_; vala_ccode_function_call_add_argument (_tmp100_, (ValaCCodeExpression*) _tmp105_); _vala_ccode_node_unref0 (_tmp105_); _vala_ccode_node_unref0 (_tmp103_); _g_free0 (length_cname); } } } } _vala_code_node_unref0 (array_type); } _tmp106_ = prop; _tmp107_ = vala_property_get_get_accessor (_tmp106_); _tmp108_ = _tmp107_; _tmp109_ = vala_property_accessor_get_value_type (_tmp108_); _tmp110_ = _tmp109_; _tmp111_ = vala_ccode_identifier_new ("result"); _tmp112_ = _tmp111_; _tmp113_ = vala_ccode_base_module_serialize_expression ((ValaCCodeBaseModule*) self, _tmp110_, (ValaCCodeExpression*) _tmp112_); _tmp114_ = _tmp113_; _vala_ccode_node_unref0 (_tmp112_); reply_expr = _tmp114_; _tmp115_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp116_ = _tmp115_; _tmp117_ = vala_ccode_variable_declarator_new ("_reply", NULL, NULL); _tmp118_ = _tmp117_; vala_ccode_function_add_declaration (_tmp116_, "GVariant*", (ValaCCodeDeclarator*) _tmp118_, 0); _vala_ccode_node_unref0 (_tmp118_); _tmp119_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp120_ = _tmp119_; _tmp121_ = vala_ccode_identifier_new ("_reply"); _tmp122_ = _tmp121_; _tmp123_ = reply_expr; vala_ccode_function_add_assignment (_tmp120_, (ValaCCodeExpression*) _tmp122_, _tmp123_); _vala_ccode_node_unref0 (_tmp122_); _tmp124_ = prop; _tmp125_ = vala_property_get_get_accessor (_tmp124_); _tmp126_ = _tmp125_; _tmp127_ = vala_property_accessor_get_value_type (_tmp126_); _tmp128_ = _tmp127_; _tmp129_ = vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, _tmp128_); if (_tmp129_) { ValaProperty* _tmp130_; ValaPropertyAccessor* _tmp131_; ValaPropertyAccessor* _tmp132_; ValaDataType* _tmp133_; ValaDataType* _tmp134_; ValaLocalVariable* _tmp135_; ValaLocalVariable* local; ValaCCodeFunction* _tmp136_; ValaCCodeFunction* _tmp137_; ValaLocalVariable* _tmp138_; ValaCCodeExpression* _tmp139_ = NULL; ValaCCodeExpression* _tmp140_; _tmp130_ = prop; _tmp131_ = vala_property_get_get_accessor (_tmp130_); _tmp132_ = _tmp131_; _tmp133_ = vala_property_accessor_get_value_type (_tmp132_); _tmp134_ = _tmp133_; _tmp135_ = vala_local_variable_new (_tmp134_, ".result", NULL, NULL); local = _tmp135_; _tmp136_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp137_ = _tmp136_; _tmp138_ = local; _tmp139_ = vala_ccode_base_module_destroy_local ((ValaCCodeBaseModule*) self, _tmp138_); _tmp140_ = _tmp139_; vala_ccode_function_add_expression (_tmp137_, _tmp140_); _vala_ccode_node_unref0 (_tmp140_); _vala_code_node_unref0 (local); } _tmp141_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp142_ = _tmp141_; _tmp143_ = vala_ccode_identifier_new ("_reply"); _tmp144_ = _tmp143_; vala_ccode_function_add_return (_tmp142_, (ValaCCodeExpression*) _tmp144_); _vala_ccode_node_unref0 (_tmp144_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp145_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp146_ = function; vala_ccode_file_add_function_declaration (_tmp145_, _tmp146_); _tmp147_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp148_ = function; vala_ccode_file_add_function (_tmp147_, _tmp148_); result = wrapper_name; _vala_ccode_node_unref0 (reply_expr); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (function); return result; } static gchar* vala_gd_bus_server_module_generate_dbus_property_set_wrapper (ValaGDBusServerModule* self, ValaProperty* prop, ValaObjectTypeSymbol* sym) { gchar* result = NULL; ValaProperty* _tmp0_; ValaPropertyAccessor* _tmp1_; ValaPropertyAccessor* _tmp2_; gchar* _tmp3_ = NULL; gchar* _tmp4_; gchar* _tmp5_ = NULL; gchar* _tmp6_; gchar* wrapper_name; const gchar* _tmp7_; ValaCCodeFunction* _tmp8_; ValaCCodeFunction* function; ValaCCodeFunction* _tmp9_; ValaCCodeFunction* _tmp10_; ValaObjectTypeSymbol* _tmp11_; gchar* _tmp12_ = NULL; gchar* _tmp13_; gchar* _tmp14_; gchar* _tmp15_; ValaCCodeParameter* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeFunction* _tmp18_; ValaCCodeParameter* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeFunction* _tmp21_; ValaProperty* _tmp22_; ValaPropertyAccessor* _tmp23_; ValaPropertyAccessor* _tmp24_; gchar* _tmp25_ = NULL; gchar* _tmp26_; ValaCCodeIdentifier* _tmp27_; ValaCCodeIdentifier* _tmp28_; ValaCCodeFunctionCall* _tmp29_; ValaCCodeFunctionCall* _tmp30_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp31_; ValaCCodeIdentifier* _tmp32_; ValaCCodeIdentifier* _tmp33_; ValaProperty* _tmp34_; ValaDataType* _tmp35_; ValaDataType* _tmp36_; ValaDataType* _tmp37_ = NULL; ValaDataType* owned_type; ValaDataType* _tmp38_; ValaCCodeFunction* _tmp39_; ValaCCodeFunction* _tmp40_; ValaDataType* _tmp41_; gchar* _tmp42_ = NULL; gchar* _tmp43_; ValaProperty* _tmp44_; ValaDataType* _tmp45_; ValaDataType* _tmp46_; ValaCCodeExpression* _tmp47_ = NULL; ValaCCodeExpression* _tmp48_; ValaCCodeVariableDeclarator* _tmp49_; ValaCCodeVariableDeclarator* _tmp50_; ValaProperty* _tmp51_; ValaDataType* _tmp52_; ValaDataType* _tmp53_; ValaTypeSymbol* _tmp54_; ValaTypeSymbol* _tmp55_; ValaStruct* _tmp56_; ValaStruct* st; gboolean _tmp57_ = FALSE; ValaStruct* _tmp58_; gboolean _tmp61_; ValaCCodeIdentifier* _tmp95_; ValaCCodeIdentifier* target; ValaProperty* _tmp96_; ValaDataType* _tmp97_; ValaDataType* _tmp98_; ValaCCodeIdentifier* _tmp99_; ValaCCodeIdentifier* _tmp100_; ValaCCodeIdentifier* _tmp101_; ValaCCodeExpression* _tmp102_ = NULL; ValaCCodeExpression* _tmp103_; ValaCCodeExpression* expr; ValaCCodeFunction* _tmp104_; ValaCCodeFunction* _tmp105_; ValaCCodeIdentifier* _tmp106_; ValaCCodeExpression* _tmp107_; ValaCCodeFunction* _tmp108_; ValaCCodeFunction* _tmp109_; ValaCCodeFunctionCall* _tmp110_; ValaDataType* _tmp111_; gboolean _tmp112_ = FALSE; ValaCCodeFile* _tmp120_; ValaCCodeFunction* _tmp121_; ValaCCodeFile* _tmp122_; ValaCCodeFunction* _tmp123_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (prop != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = prop; _tmp1_ = vala_property_get_set_accessor (_tmp0_); _tmp2_ = _tmp1_; _tmp3_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp2_); _tmp4_ = _tmp3_; _tmp5_ = g_strdup_printf ("_dbus_%s", _tmp4_); _tmp6_ = _tmp5_; _g_free0 (_tmp4_); wrapper_name = _tmp6_; _tmp7_ = wrapper_name; _tmp8_ = vala_ccode_function_new (_tmp7_, "void"); function = _tmp8_; _tmp9_ = function; vala_ccode_function_set_modifiers (_tmp9_, VALA_CCODE_MODIFIERS_STATIC); _tmp10_ = function; _tmp11_ = sym; _tmp12_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp11_); _tmp13_ = _tmp12_; _tmp14_ = g_strconcat (_tmp13_, "*", NULL); _tmp15_ = _tmp14_; _tmp16_ = vala_ccode_parameter_new ("self", _tmp15_); _tmp17_ = _tmp16_; vala_ccode_function_add_parameter (_tmp10_, _tmp17_); _vala_ccode_node_unref0 (_tmp17_); _g_free0 (_tmp15_); _g_free0 (_tmp13_); _tmp18_ = function; _tmp19_ = vala_ccode_parameter_new ("_value", "GVariant*"); _tmp20_ = _tmp19_; vala_ccode_function_add_parameter (_tmp18_, _tmp20_); _vala_ccode_node_unref0 (_tmp20_); _tmp21_ = function; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp21_); _tmp22_ = prop; _tmp23_ = vala_property_get_set_accessor (_tmp22_); _tmp24_ = _tmp23_; _tmp25_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp24_); _tmp26_ = _tmp25_; _tmp27_ = vala_ccode_identifier_new (_tmp26_); _tmp28_ = _tmp27_; _tmp29_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp28_); _tmp30_ = _tmp29_; _vala_ccode_node_unref0 (_tmp28_); _g_free0 (_tmp26_); ccall = _tmp30_; _tmp31_ = ccall; _tmp32_ = vala_ccode_identifier_new ("self"); _tmp33_ = _tmp32_; vala_ccode_function_call_add_argument (_tmp31_, (ValaCCodeExpression*) _tmp33_); _vala_ccode_node_unref0 (_tmp33_); _tmp34_ = prop; _tmp35_ = vala_property_get_property_type (_tmp34_); _tmp36_ = _tmp35_; _tmp37_ = vala_data_type_copy (_tmp36_); owned_type = _tmp37_; _tmp38_ = owned_type; vala_data_type_set_value_owned (_tmp38_, TRUE); _tmp39_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp40_ = _tmp39_; _tmp41_ = owned_type; _tmp42_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp41_); _tmp43_ = _tmp42_; _tmp44_ = prop; _tmp45_ = vala_property_get_property_type (_tmp44_); _tmp46_ = _tmp45_; _tmp47_ = vala_ccode_base_module_default_value_for_type ((ValaCCodeBaseModule*) self, _tmp46_, TRUE); _tmp48_ = _tmp47_; _tmp49_ = vala_ccode_variable_declarator_new_zero ("value", _tmp48_, NULL); _tmp50_ = _tmp49_; vala_ccode_function_add_declaration (_tmp40_, _tmp43_, (ValaCCodeDeclarator*) _tmp50_, 0); _vala_ccode_node_unref0 (_tmp50_); _vala_ccode_node_unref0 (_tmp48_); _g_free0 (_tmp43_); _tmp51_ = prop; _tmp52_ = vala_property_get_property_type (_tmp51_); _tmp53_ = _tmp52_; _tmp54_ = vala_data_type_get_data_type (_tmp53_); _tmp55_ = _tmp54_; _tmp56_ = _vala_code_node_ref0 (VALA_IS_STRUCT (_tmp55_) ? ((ValaStruct*) _tmp55_) : NULL); st = _tmp56_; _tmp58_ = st; if (_tmp58_ != NULL) { ValaStruct* _tmp59_; gboolean _tmp60_ = FALSE; _tmp59_ = st; _tmp60_ = vala_struct_is_simple_type (_tmp59_); _tmp57_ = !_tmp60_; } else { _tmp57_ = FALSE; } _tmp61_ = _tmp57_; if (_tmp61_) { ValaCCodeFunctionCall* _tmp62_; ValaCCodeIdentifier* _tmp63_; ValaCCodeIdentifier* _tmp64_; ValaCCodeUnaryExpression* _tmp65_; ValaCCodeUnaryExpression* _tmp66_; _tmp62_ = ccall; _tmp63_ = vala_ccode_identifier_new ("value"); _tmp64_ = _tmp63_; _tmp65_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp64_); _tmp66_ = _tmp65_; vala_ccode_function_call_add_argument (_tmp62_, (ValaCCodeExpression*) _tmp66_); _vala_ccode_node_unref0 (_tmp66_); _vala_ccode_node_unref0 (_tmp64_); } else { ValaCCodeFunctionCall* _tmp67_; ValaCCodeIdentifier* _tmp68_; ValaCCodeIdentifier* _tmp69_; ValaProperty* _tmp70_; ValaDataType* _tmp71_; ValaDataType* _tmp72_; ValaArrayType* _tmp73_; ValaArrayType* array_type; ValaArrayType* _tmp74_; _tmp67_ = ccall; _tmp68_ = vala_ccode_identifier_new ("value"); _tmp69_ = _tmp68_; vala_ccode_function_call_add_argument (_tmp67_, (ValaCCodeExpression*) _tmp69_); _vala_ccode_node_unref0 (_tmp69_); _tmp70_ = prop; _tmp71_ = vala_property_get_property_type (_tmp70_); _tmp72_ = _tmp71_; _tmp73_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp72_) ? ((ValaArrayType*) _tmp72_) : NULL); array_type = _tmp73_; _tmp74_ = array_type; if (_tmp74_ != NULL) { { gint dim; dim = 1; { gboolean _tmp75_; _tmp75_ = TRUE; while (TRUE) { gboolean _tmp76_; gint _tmp78_; ValaArrayType* _tmp79_; gint _tmp80_; gint _tmp81_; ValaCCodeFunction* _tmp82_; ValaCCodeFunction* _tmp83_; gint _tmp84_; gchar* _tmp85_ = NULL; gchar* _tmp86_; ValaCCodeVariableDeclarator* _tmp87_; ValaCCodeVariableDeclarator* _tmp88_; ValaCCodeFunctionCall* _tmp89_; gint _tmp90_; gchar* _tmp91_ = NULL; gchar* _tmp92_; ValaCCodeIdentifier* _tmp93_; ValaCCodeIdentifier* _tmp94_; _tmp76_ = _tmp75_; if (!_tmp76_) { gint _tmp77_; _tmp77_ = dim; dim = _tmp77_ + 1; } _tmp75_ = FALSE; _tmp78_ = dim; _tmp79_ = array_type; _tmp80_ = vala_array_type_get_rank (_tmp79_); _tmp81_ = _tmp80_; if (!(_tmp78_ <= _tmp81_)) { break; } _tmp82_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp83_ = _tmp82_; _tmp84_ = dim; _tmp85_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "value", _tmp84_); _tmp86_ = _tmp85_; _tmp87_ = vala_ccode_variable_declarator_new (_tmp86_, NULL, NULL); _tmp88_ = _tmp87_; vala_ccode_function_add_declaration (_tmp83_, "int", (ValaCCodeDeclarator*) _tmp88_, 0); _vala_ccode_node_unref0 (_tmp88_); _g_free0 (_tmp86_); _tmp89_ = ccall; _tmp90_ = dim; _tmp91_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "value", _tmp90_); _tmp92_ = _tmp91_; _tmp93_ = vala_ccode_identifier_new (_tmp92_); _tmp94_ = _tmp93_; vala_ccode_function_call_add_argument (_tmp89_, (ValaCCodeExpression*) _tmp94_); _vala_ccode_node_unref0 (_tmp94_); _g_free0 (_tmp92_); } } } } _vala_code_node_unref0 (array_type); } _tmp95_ = vala_ccode_identifier_new ("value"); target = _tmp95_; _tmp96_ = prop; _tmp97_ = vala_property_get_property_type (_tmp96_); _tmp98_ = _tmp97_; _tmp99_ = vala_ccode_identifier_new ("_value"); _tmp100_ = _tmp99_; _tmp101_ = target; _tmp102_ = vala_ccode_base_module_deserialize_expression ((ValaCCodeBaseModule*) self, _tmp98_, (ValaCCodeExpression*) _tmp100_, (ValaCCodeExpression*) _tmp101_, NULL, NULL); _tmp103_ = _tmp102_; _vala_ccode_node_unref0 (_tmp100_); expr = _tmp103_; _tmp104_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp105_ = _tmp104_; _tmp106_ = target; _tmp107_ = expr; vala_ccode_function_add_assignment (_tmp105_, (ValaCCodeExpression*) _tmp106_, _tmp107_); _tmp108_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp109_ = _tmp108_; _tmp110_ = ccall; vala_ccode_function_add_expression (_tmp109_, (ValaCCodeExpression*) _tmp110_); _tmp111_ = owned_type; _tmp112_ = vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, _tmp111_); if (_tmp112_) { ValaDataType* _tmp113_; ValaLocalVariable* _tmp114_; ValaLocalVariable* local; ValaCCodeFunction* _tmp115_; ValaCCodeFunction* _tmp116_; ValaLocalVariable* _tmp117_; ValaCCodeExpression* _tmp118_ = NULL; ValaCCodeExpression* _tmp119_; _tmp113_ = owned_type; _tmp114_ = vala_local_variable_new (_tmp113_, "value", NULL, NULL); local = _tmp114_; _tmp115_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp116_ = _tmp115_; _tmp117_ = local; _tmp118_ = vala_ccode_base_module_destroy_local ((ValaCCodeBaseModule*) self, _tmp117_); _tmp119_ = _tmp118_; vala_ccode_function_add_expression (_tmp116_, _tmp119_); _vala_ccode_node_unref0 (_tmp119_); _vala_code_node_unref0 (local); } vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp120_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp121_ = function; vala_ccode_file_add_function_declaration (_tmp120_, _tmp121_); _tmp122_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp123_ = function; vala_ccode_file_add_function (_tmp122_, _tmp123_); result = wrapper_name; _vala_ccode_node_unref0 (expr); _vala_ccode_node_unref0 (target); _vala_code_node_unref0 (st); _vala_code_node_unref0 (owned_type); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (function); return result; } static void vala_gd_bus_server_module_handle_signals (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym, gboolean connect) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* dbus_iface_name; const gchar* _tmp2_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp0_); dbus_iface_name = _tmp1_; _tmp2_ = dbus_iface_name; if (_tmp2_ == NULL) { _g_free0 (dbus_iface_name); return; } { ValaObjectTypeSymbol* _tmp3_; ValaList* _tmp4_ = NULL; ValaList* _sig_list; ValaList* _tmp5_; gint _tmp6_; gint _tmp7_; gint _sig_size; gint _sig_index; _tmp3_ = sym; _tmp4_ = vala_object_type_symbol_get_signals (_tmp3_); _sig_list = _tmp4_; _tmp5_ = _sig_list; _tmp6_ = vala_collection_get_size ((ValaCollection*) _tmp5_); _tmp7_ = _tmp6_; _sig_size = _tmp7_; _sig_index = -1; while (TRUE) { gint _tmp8_; gint _tmp9_; gint _tmp10_; ValaList* _tmp11_; gint _tmp12_; gpointer _tmp13_ = NULL; ValaSignal* sig; ValaSignal* _tmp14_; ValaSymbolAccessibility _tmp15_; ValaSymbolAccessibility _tmp16_; ValaSignal* _tmp17_; gboolean _tmp18_ = FALSE; gboolean _tmp19_; _tmp8_ = _sig_index; _sig_index = _tmp8_ + 1; _tmp9_ = _sig_index; _tmp10_ = _sig_size; if (!(_tmp9_ < _tmp10_)) { break; } _tmp11_ = _sig_list; _tmp12_ = _sig_index; _tmp13_ = vala_list_get (_tmp11_, _tmp12_); sig = (ValaSignal*) _tmp13_; _tmp14_ = sig; _tmp15_ = vala_symbol_get_access ((ValaSymbol*) _tmp14_); _tmp16_ = _tmp15_; if (_tmp16_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC) { _vala_code_node_unref0 (sig); continue; } _tmp17_ = sig; _tmp18_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp17_); if (!_tmp18_) { _vala_code_node_unref0 (sig); continue; } _tmp19_ = connect; if (_tmp19_) { ValaCCodeIdentifier* _tmp20_; ValaCCodeIdentifier* _tmp21_; ValaCCodeFunctionCall* _tmp22_; ValaCCodeFunctionCall* _tmp23_; ValaCCodeFunctionCall* connect_call; ValaCCodeFunctionCall* _tmp24_; ValaCCodeIdentifier* _tmp25_; ValaCCodeIdentifier* _tmp26_; ValaCCodeFunctionCall* _tmp27_; ValaSignal* _tmp28_; ValaCCodeConstant* _tmp29_ = NULL; ValaCCodeConstant* _tmp30_; ValaCCodeFunctionCall* _tmp31_; ValaSignal* _tmp32_; ValaObjectTypeSymbol* _tmp33_; const gchar* _tmp34_; gchar* _tmp35_ = NULL; gchar* _tmp36_; ValaCCodeIdentifier* _tmp37_; ValaCCodeIdentifier* _tmp38_; ValaCCodeCastExpression* _tmp39_; ValaCCodeCastExpression* _tmp40_; ValaCCodeFunctionCall* _tmp41_; ValaCCodeIdentifier* _tmp42_; ValaCCodeIdentifier* _tmp43_; ValaCCodeFunction* _tmp44_; ValaCCodeFunction* _tmp45_; ValaCCodeFunctionCall* _tmp46_; _tmp20_ = vala_ccode_identifier_new ("g_signal_connect"); _tmp21_ = _tmp20_; _tmp22_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp21_); _tmp23_ = _tmp22_; _vala_ccode_node_unref0 (_tmp21_); connect_call = _tmp23_; _tmp24_ = connect_call; _tmp25_ = vala_ccode_identifier_new ("object"); _tmp26_ = _tmp25_; vala_ccode_function_call_add_argument (_tmp24_, (ValaCCodeExpression*) _tmp26_); _vala_ccode_node_unref0 (_tmp26_); _tmp27_ = connect_call; _tmp28_ = sig; _tmp29_ = vala_ccode_base_module_get_signal_canonical_constant ((ValaCCodeBaseModule*) self, _tmp28_, NULL); _tmp30_ = _tmp29_; vala_ccode_function_call_add_argument (_tmp27_, (ValaCCodeExpression*) _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _tmp31_ = connect_call; _tmp32_ = sig; _tmp33_ = sym; _tmp34_ = dbus_iface_name; _tmp35_ = vala_gd_bus_server_module_generate_dbus_signal_wrapper (self, _tmp32_, _tmp33_, _tmp34_); _tmp36_ = _tmp35_; _tmp37_ = vala_ccode_identifier_new (_tmp36_); _tmp38_ = _tmp37_; _tmp39_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp38_, "GCallback"); _tmp40_ = _tmp39_; vala_ccode_function_call_add_argument (_tmp31_, (ValaCCodeExpression*) _tmp40_); _vala_ccode_node_unref0 (_tmp40_); _vala_ccode_node_unref0 (_tmp38_); _g_free0 (_tmp36_); _tmp41_ = connect_call; _tmp42_ = vala_ccode_identifier_new ("data"); _tmp43_ = _tmp42_; vala_ccode_function_call_add_argument (_tmp41_, (ValaCCodeExpression*) _tmp43_); _vala_ccode_node_unref0 (_tmp43_); _tmp44_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp45_ = _tmp44_; _tmp46_ = connect_call; vala_ccode_function_add_expression (_tmp45_, (ValaCCodeExpression*) _tmp46_); _vala_ccode_node_unref0 (connect_call); } else { ValaCCodeIdentifier* _tmp47_; ValaCCodeIdentifier* _tmp48_; ValaCCodeFunctionCall* _tmp49_; ValaCCodeFunctionCall* _tmp50_; ValaCCodeFunctionCall* disconnect_call; ValaCCodeFunctionCall* _tmp51_; ValaCCodeIdentifier* _tmp52_; ValaCCodeIdentifier* _tmp53_; ValaCCodeConstant* _tmp54_; ValaCCodeConstant* _tmp55_; ValaCCodeElementAccess* _tmp56_; ValaCCodeElementAccess* _tmp57_; ValaCCodeFunctionCall* _tmp58_; ValaObjectTypeSymbol* _tmp59_; gchar* _tmp60_ = NULL; gchar* _tmp61_; ValaSignal* _tmp62_; gchar* _tmp63_ = NULL; gchar* _tmp64_; gchar* _tmp65_ = NULL; gchar* _tmp66_; ValaCCodeIdentifier* _tmp67_; ValaCCodeIdentifier* _tmp68_; ValaCCodeFunctionCall* _tmp69_; ValaCCodeIdentifier* _tmp70_; ValaCCodeIdentifier* _tmp71_; ValaCCodeFunction* _tmp72_; ValaCCodeFunction* _tmp73_; ValaCCodeFunctionCall* _tmp74_; _tmp47_ = vala_ccode_identifier_new ("g_signal_handlers_disconnect_by_func"); _tmp48_ = _tmp47_; _tmp49_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp48_); _tmp50_ = _tmp49_; _vala_ccode_node_unref0 (_tmp48_); disconnect_call = _tmp50_; _tmp51_ = disconnect_call; _tmp52_ = vala_ccode_identifier_new ("data"); _tmp53_ = _tmp52_; _tmp54_ = vala_ccode_constant_new ("0"); _tmp55_ = _tmp54_; _tmp56_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp53_, (ValaCCodeExpression*) _tmp55_); _tmp57_ = _tmp56_; vala_ccode_function_call_add_argument (_tmp51_, (ValaCCodeExpression*) _tmp57_); _vala_ccode_node_unref0 (_tmp57_); _vala_ccode_node_unref0 (_tmp55_); _vala_ccode_node_unref0 (_tmp53_); _tmp58_ = disconnect_call; _tmp59_ = sym; _tmp60_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp59_, NULL); _tmp61_ = _tmp60_; _tmp62_ = sig; _tmp63_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp62_); _tmp64_ = _tmp63_; _tmp65_ = g_strdup_printf ("_dbus_%s_%s", _tmp61_, _tmp64_); _tmp66_ = _tmp65_; _tmp67_ = vala_ccode_identifier_new (_tmp66_); _tmp68_ = _tmp67_; vala_ccode_function_call_add_argument (_tmp58_, (ValaCCodeExpression*) _tmp68_); _vala_ccode_node_unref0 (_tmp68_); _g_free0 (_tmp66_); _g_free0 (_tmp64_); _g_free0 (_tmp61_); _tmp69_ = disconnect_call; _tmp70_ = vala_ccode_identifier_new ("data"); _tmp71_ = _tmp70_; vala_ccode_function_call_add_argument (_tmp69_, (ValaCCodeExpression*) _tmp71_); _vala_ccode_node_unref0 (_tmp71_); _tmp72_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp73_ = _tmp72_; _tmp74_ = disconnect_call; vala_ccode_function_add_expression (_tmp73_, (ValaCCodeExpression*) _tmp74_); _vala_ccode_node_unref0 (disconnect_call); } _vala_code_node_unref0 (sig); } _vala_iterable_unref0 (_sig_list); } _g_free0 (dbus_iface_name); } static void vala_gd_bus_server_module_generate_interface_method_call_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; gchar* _tmp3_; gchar* _tmp4_; ValaCCodeFunction* _tmp5_; ValaCCodeFunction* _tmp6_; ValaCCodeFunction* cfunc; ValaCCodeFunction* _tmp7_; ValaCCodeParameter* _tmp8_; ValaCCodeParameter* _tmp9_; ValaCCodeFunction* _tmp10_; ValaCCodeParameter* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeFunction* _tmp13_; ValaCCodeParameter* _tmp14_; ValaCCodeParameter* _tmp15_; ValaCCodeFunction* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeParameter* _tmp18_; ValaCCodeFunction* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeParameter* _tmp21_; ValaCCodeFunction* _tmp22_; ValaCCodeParameter* _tmp23_; ValaCCodeParameter* _tmp24_; ValaCCodeFunction* _tmp25_; ValaCCodeParameter* _tmp26_; ValaCCodeParameter* _tmp27_; ValaCCodeFunction* _tmp28_; ValaCCodeParameter* _tmp29_; ValaCCodeParameter* _tmp30_; ValaCCodeFunction* _tmp31_; ValaCCodeFunction* _tmp32_; ValaCCodeModifiers _tmp33_; ValaCCodeModifiers _tmp34_; ValaCCodeFunction* _tmp35_; ValaCCodeFunction* _tmp36_; ValaCCodeFunction* _tmp37_; ValaCCodeIdentifier* _tmp38_; ValaCCodeIdentifier* _tmp39_; ValaCCodeVariableDeclarator* _tmp40_; ValaCCodeVariableDeclarator* _tmp41_; ValaCCodeFunction* _tmp42_; ValaCCodeFunction* _tmp43_; ValaCCodeIdentifier* _tmp44_; ValaCCodeIdentifier* _tmp45_; ValaCCodeConstant* _tmp46_; ValaCCodeConstant* _tmp47_; ValaCCodeElementAccess* _tmp48_; ValaCCodeElementAccess* _tmp49_; ValaCCodeVariableDeclarator* _tmp50_; ValaCCodeVariableDeclarator* _tmp51_; gboolean first; gboolean _tmp132_; ValaCCodeIdentifier* _tmp135_; ValaCCodeIdentifier* _tmp136_; ValaCCodeFunctionCall* _tmp137_; ValaCCodeFunctionCall* _tmp138_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp139_; ValaCCodeIdentifier* _tmp140_; ValaCCodeIdentifier* _tmp141_; ValaCCodeFunction* _tmp142_; ValaCCodeFunction* _tmp143_; ValaCCodeFunctionCall* _tmp144_; gboolean _tmp145_; ValaCCodeFile* _tmp148_; ValaCCodeFunction* _tmp149_; ValaCCodeFile* _tmp150_; ValaCCodeFunction* _tmp151_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp0_); _tmp2_ = _tmp1_; _tmp3_ = g_strconcat (_tmp2_, "dbus_interface_method_call", NULL); _tmp4_ = _tmp3_; _tmp5_ = vala_ccode_function_new (_tmp4_, "void"); _tmp6_ = _tmp5_; _g_free0 (_tmp4_); _g_free0 (_tmp2_); cfunc = _tmp6_; _tmp7_ = cfunc; _tmp8_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp9_ = _tmp8_; vala_ccode_function_add_parameter (_tmp7_, _tmp9_); _vala_ccode_node_unref0 (_tmp9_); _tmp10_ = cfunc; _tmp11_ = vala_ccode_parameter_new ("sender", "const gchar*"); _tmp12_ = _tmp11_; vala_ccode_function_add_parameter (_tmp10_, _tmp12_); _vala_ccode_node_unref0 (_tmp12_); _tmp13_ = cfunc; _tmp14_ = vala_ccode_parameter_new ("object_path", "const gchar*"); _tmp15_ = _tmp14_; vala_ccode_function_add_parameter (_tmp13_, _tmp15_); _vala_ccode_node_unref0 (_tmp15_); _tmp16_ = cfunc; _tmp17_ = vala_ccode_parameter_new ("interface_name", "const gchar*"); _tmp18_ = _tmp17_; vala_ccode_function_add_parameter (_tmp16_, _tmp18_); _vala_ccode_node_unref0 (_tmp18_); _tmp19_ = cfunc; _tmp20_ = vala_ccode_parameter_new ("method_name", "const gchar*"); _tmp21_ = _tmp20_; vala_ccode_function_add_parameter (_tmp19_, _tmp21_); _vala_ccode_node_unref0 (_tmp21_); _tmp22_ = cfunc; _tmp23_ = vala_ccode_parameter_new ("parameters", "GVariant*"); _tmp24_ = _tmp23_; vala_ccode_function_add_parameter (_tmp22_, _tmp24_); _vala_ccode_node_unref0 (_tmp24_); _tmp25_ = cfunc; _tmp26_ = vala_ccode_parameter_new ("invocation", "GDBusMethodInvocation*"); _tmp27_ = _tmp26_; vala_ccode_function_add_parameter (_tmp25_, _tmp27_); _vala_ccode_node_unref0 (_tmp27_); _tmp28_ = cfunc; _tmp29_ = vala_ccode_parameter_new ("user_data", "gpointer"); _tmp30_ = _tmp29_; vala_ccode_function_add_parameter (_tmp28_, _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _tmp31_ = cfunc; _tmp32_ = cfunc; _tmp33_ = vala_ccode_function_get_modifiers (_tmp32_); _tmp34_ = _tmp33_; vala_ccode_function_set_modifiers (_tmp32_, _tmp34_ | VALA_CCODE_MODIFIERS_STATIC); _tmp35_ = cfunc; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp35_); _tmp36_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp37_ = _tmp36_; _tmp38_ = vala_ccode_identifier_new ("user_data"); _tmp39_ = _tmp38_; _tmp40_ = vala_ccode_variable_declarator_new ("data", (ValaCCodeExpression*) _tmp39_, NULL); _tmp41_ = _tmp40_; vala_ccode_function_add_declaration (_tmp37_, "gpointer*", (ValaCCodeDeclarator*) _tmp41_, 0); _vala_ccode_node_unref0 (_tmp41_); _vala_ccode_node_unref0 (_tmp39_); _tmp42_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp43_ = _tmp42_; _tmp44_ = vala_ccode_identifier_new ("data"); _tmp45_ = _tmp44_; _tmp46_ = vala_ccode_constant_new ("0"); _tmp47_ = _tmp46_; _tmp48_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp45_, (ValaCCodeExpression*) _tmp47_); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_variable_declarator_new ("object", (ValaCCodeExpression*) _tmp49_, NULL); _tmp51_ = _tmp50_; vala_ccode_function_add_declaration (_tmp43_, "gpointer", (ValaCCodeDeclarator*) _tmp51_, 0); _vala_ccode_node_unref0 (_tmp51_); _vala_ccode_node_unref0 (_tmp49_); _vala_ccode_node_unref0 (_tmp47_); _vala_ccode_node_unref0 (_tmp45_); first = TRUE; { ValaObjectTypeSymbol* _tmp52_; ValaList* _tmp53_ = NULL; ValaList* _m_list; ValaList* _tmp54_; gint _tmp55_; gint _tmp56_; gint _m_size; gint _m_index; _tmp52_ = sym; _tmp53_ = vala_object_type_symbol_get_methods (_tmp52_); _m_list = _tmp53_; _tmp54_ = _m_list; _tmp55_ = vala_collection_get_size ((ValaCollection*) _tmp54_); _tmp56_ = _tmp55_; _m_size = _tmp56_; _m_index = -1; while (TRUE) { gint _tmp57_; gint _tmp58_; gint _tmp59_; ValaList* _tmp60_; gint _tmp61_; gpointer _tmp62_ = NULL; ValaMethod* m; gboolean _tmp63_ = FALSE; gboolean _tmp64_ = FALSE; gboolean _tmp65_ = FALSE; ValaMethod* _tmp66_; gboolean _tmp70_; gboolean _tmp74_; gboolean _tmp78_; ValaMethod* _tmp79_; gboolean _tmp80_ = FALSE; ValaCCodeFile* _tmp81_; ValaCCodeIdentifier* _tmp82_; ValaCCodeIdentifier* _tmp83_; ValaCCodeFunctionCall* _tmp84_; ValaCCodeFunctionCall* _tmp85_; ValaCCodeFunctionCall* ccheck; ValaCCodeFunctionCall* _tmp86_; ValaCCodeIdentifier* _tmp87_; ValaCCodeIdentifier* _tmp88_; ValaCCodeFunctionCall* _tmp89_; ValaMethod* _tmp90_; gchar* _tmp91_ = NULL; gchar* _tmp92_; gchar* _tmp93_ = NULL; gchar* _tmp94_; ValaCCodeConstant* _tmp95_; ValaCCodeConstant* _tmp96_; gboolean _tmp97_; ValaMethod* _tmp112_; ValaObjectTypeSymbol* _tmp113_; gchar* _tmp114_ = NULL; gchar* _tmp115_; ValaCCodeIdentifier* _tmp116_; ValaCCodeIdentifier* _tmp117_; ValaCCodeFunctionCall* _tmp118_; ValaCCodeFunctionCall* _tmp119_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp120_; ValaCCodeIdentifier* _tmp121_; ValaCCodeIdentifier* _tmp122_; ValaCCodeFunctionCall* _tmp123_; ValaCCodeIdentifier* _tmp124_; ValaCCodeIdentifier* _tmp125_; ValaCCodeFunctionCall* _tmp126_; ValaCCodeIdentifier* _tmp127_; ValaCCodeIdentifier* _tmp128_; ValaCCodeFunction* _tmp129_; ValaCCodeFunction* _tmp130_; ValaCCodeFunctionCall* _tmp131_; _tmp57_ = _m_index; _m_index = _tmp57_ + 1; _tmp58_ = _m_index; _tmp59_ = _m_size; if (!(_tmp58_ < _tmp59_)) { break; } _tmp60_ = _m_list; _tmp61_ = _m_index; _tmp62_ = vala_list_get (_tmp60_, _tmp61_); m = (ValaMethod*) _tmp62_; _tmp66_ = m; if (VALA_IS_CREATION_METHOD (_tmp66_)) { _tmp65_ = TRUE; } else { ValaMethod* _tmp67_; ValaMemberBinding _tmp68_; ValaMemberBinding _tmp69_; _tmp67_ = m; _tmp68_ = vala_method_get_binding (_tmp67_); _tmp69_ = _tmp68_; _tmp65_ = _tmp69_ != VALA_MEMBER_BINDING_INSTANCE; } _tmp70_ = _tmp65_; if (_tmp70_) { _tmp64_ = TRUE; } else { ValaMethod* _tmp71_; gboolean _tmp72_; gboolean _tmp73_; _tmp71_ = m; _tmp72_ = vala_method_get_overrides (_tmp71_); _tmp73_ = _tmp72_; _tmp64_ = _tmp73_; } _tmp74_ = _tmp64_; if (_tmp74_) { _tmp63_ = TRUE; } else { ValaMethod* _tmp75_; ValaSymbolAccessibility _tmp76_; ValaSymbolAccessibility _tmp77_; _tmp75_ = m; _tmp76_ = vala_symbol_get_access ((ValaSymbol*) _tmp75_); _tmp77_ = _tmp76_; _tmp63_ = _tmp77_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC; } _tmp78_ = _tmp63_; if (_tmp78_) { _vala_code_node_unref0 (m); continue; } _tmp79_ = m; _tmp80_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp79_); if (!_tmp80_) { _vala_code_node_unref0 (m); continue; } _tmp81_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp81_, "string.h", FALSE); _tmp82_ = vala_ccode_identifier_new ("strcmp"); _tmp83_ = _tmp82_; _tmp84_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp83_); _tmp85_ = _tmp84_; _vala_ccode_node_unref0 (_tmp83_); ccheck = _tmp85_; _tmp86_ = ccheck; _tmp87_ = vala_ccode_identifier_new ("method_name"); _tmp88_ = _tmp87_; vala_ccode_function_call_add_argument (_tmp86_, (ValaCCodeExpression*) _tmp88_); _vala_ccode_node_unref0 (_tmp88_); _tmp89_ = ccheck; _tmp90_ = m; _tmp91_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp90_); _tmp92_ = _tmp91_; _tmp93_ = g_strdup_printf ("\"%s\"", _tmp92_); _tmp94_ = _tmp93_; _tmp95_ = vala_ccode_constant_new (_tmp94_); _tmp96_ = _tmp95_; vala_ccode_function_call_add_argument (_tmp89_, (ValaCCodeExpression*) _tmp96_); _vala_ccode_node_unref0 (_tmp96_); _g_free0 (_tmp94_); _g_free0 (_tmp92_); _tmp97_ = first; if (_tmp97_) { ValaCCodeFunction* _tmp98_; ValaCCodeFunction* _tmp99_; ValaCCodeFunctionCall* _tmp100_; ValaCCodeConstant* _tmp101_; ValaCCodeConstant* _tmp102_; ValaCCodeBinaryExpression* _tmp103_; ValaCCodeBinaryExpression* _tmp104_; _tmp98_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp99_ = _tmp98_; _tmp100_ = ccheck; _tmp101_ = vala_ccode_constant_new ("0"); _tmp102_ = _tmp101_; _tmp103_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) _tmp100_, (ValaCCodeExpression*) _tmp102_); _tmp104_ = _tmp103_; vala_ccode_function_open_if (_tmp99_, (ValaCCodeExpression*) _tmp104_); _vala_ccode_node_unref0 (_tmp104_); _vala_ccode_node_unref0 (_tmp102_); first = FALSE; } else { ValaCCodeFunction* _tmp105_; ValaCCodeFunction* _tmp106_; ValaCCodeFunctionCall* _tmp107_; ValaCCodeConstant* _tmp108_; ValaCCodeConstant* _tmp109_; ValaCCodeBinaryExpression* _tmp110_; ValaCCodeBinaryExpression* _tmp111_; _tmp105_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp106_ = _tmp105_; _tmp107_ = ccheck; _tmp108_ = vala_ccode_constant_new ("0"); _tmp109_ = _tmp108_; _tmp110_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) _tmp107_, (ValaCCodeExpression*) _tmp109_); _tmp111_ = _tmp110_; vala_ccode_function_else_if (_tmp106_, (ValaCCodeExpression*) _tmp111_); _vala_ccode_node_unref0 (_tmp111_); _vala_ccode_node_unref0 (_tmp109_); } _tmp112_ = m; _tmp113_ = sym; _tmp114_ = vala_gd_bus_server_module_generate_dbus_wrapper (self, _tmp112_, _tmp113_, FALSE); _tmp115_ = _tmp114_; _tmp116_ = vala_ccode_identifier_new (_tmp115_); _tmp117_ = _tmp116_; _tmp118_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp117_); _tmp119_ = _tmp118_; _vala_ccode_node_unref0 (_tmp117_); _g_free0 (_tmp115_); ccall = _tmp119_; _tmp120_ = ccall; _tmp121_ = vala_ccode_identifier_new ("object"); _tmp122_ = _tmp121_; vala_ccode_function_call_add_argument (_tmp120_, (ValaCCodeExpression*) _tmp122_); _vala_ccode_node_unref0 (_tmp122_); _tmp123_ = ccall; _tmp124_ = vala_ccode_identifier_new ("parameters"); _tmp125_ = _tmp124_; vala_ccode_function_call_add_argument (_tmp123_, (ValaCCodeExpression*) _tmp125_); _vala_ccode_node_unref0 (_tmp125_); _tmp126_ = ccall; _tmp127_ = vala_ccode_identifier_new ("invocation"); _tmp128_ = _tmp127_; vala_ccode_function_call_add_argument (_tmp126_, (ValaCCodeExpression*) _tmp128_); _vala_ccode_node_unref0 (_tmp128_); _tmp129_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp130_ = _tmp129_; _tmp131_ = ccall; vala_ccode_function_add_expression (_tmp130_, (ValaCCodeExpression*) _tmp131_); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (ccheck); _vala_code_node_unref0 (m); } _vala_iterable_unref0 (_m_list); } _tmp132_ = first; if (!_tmp132_) { ValaCCodeFunction* _tmp133_; ValaCCodeFunction* _tmp134_; _tmp133_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp134_ = _tmp133_; vala_ccode_function_add_else (_tmp134_); } _tmp135_ = vala_ccode_identifier_new ("g_object_unref"); _tmp136_ = _tmp135_; _tmp137_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp136_); _tmp138_ = _tmp137_; _vala_ccode_node_unref0 (_tmp136_); ccall = _tmp138_; _tmp139_ = ccall; _tmp140_ = vala_ccode_identifier_new ("invocation"); _tmp141_ = _tmp140_; vala_ccode_function_call_add_argument (_tmp139_, (ValaCCodeExpression*) _tmp141_); _vala_ccode_node_unref0 (_tmp141_); _tmp142_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp143_ = _tmp142_; _tmp144_ = ccall; vala_ccode_function_add_expression (_tmp143_, (ValaCCodeExpression*) _tmp144_); _tmp145_ = first; if (!_tmp145_) { ValaCCodeFunction* _tmp146_; ValaCCodeFunction* _tmp147_; _tmp146_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp147_ = _tmp146_; vala_ccode_function_close (_tmp147_); } vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp148_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp149_ = cfunc; vala_ccode_file_add_function_declaration (_tmp148_, _tmp149_); _tmp150_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp151_ = cfunc; vala_ccode_file_add_function (_tmp150_, _tmp151_); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (cfunc); } static void vala_gd_bus_server_module_generate_interface_get_property_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; gchar* _tmp3_; gchar* _tmp4_; ValaCCodeFunction* _tmp5_; ValaCCodeFunction* _tmp6_; ValaCCodeFunction* cfunc; ValaCCodeFunction* _tmp7_; ValaCCodeParameter* _tmp8_; ValaCCodeParameter* _tmp9_; ValaCCodeFunction* _tmp10_; ValaCCodeParameter* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeFunction* _tmp13_; ValaCCodeParameter* _tmp14_; ValaCCodeParameter* _tmp15_; ValaCCodeFunction* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeParameter* _tmp18_; ValaCCodeFunction* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeParameter* _tmp21_; ValaCCodeFunction* _tmp22_; ValaCCodeParameter* _tmp23_; ValaCCodeParameter* _tmp24_; ValaCCodeFunction* _tmp25_; ValaCCodeParameter* _tmp26_; ValaCCodeParameter* _tmp27_; ValaCCodeFunction* _tmp28_; ValaCCodeFunction* _tmp29_; ValaCCodeModifiers _tmp30_; ValaCCodeModifiers _tmp31_; ValaCCodeFile* _tmp32_; ValaCCodeFunction* _tmp33_; ValaCCodeFunction* _tmp34_; ValaCCodeFunction* _tmp35_; ValaCCodeFunction* _tmp36_; ValaCCodeIdentifier* _tmp37_; ValaCCodeIdentifier* _tmp38_; ValaCCodeVariableDeclarator* _tmp39_; ValaCCodeVariableDeclarator* _tmp40_; ValaCCodeFunction* _tmp41_; ValaCCodeFunction* _tmp42_; ValaCCodeIdentifier* _tmp43_; ValaCCodeIdentifier* _tmp44_; ValaCCodeConstant* _tmp45_; ValaCCodeConstant* _tmp46_; ValaCCodeElementAccess* _tmp47_; ValaCCodeElementAccess* _tmp48_; ValaCCodeVariableDeclarator* _tmp49_; ValaCCodeVariableDeclarator* _tmp50_; gboolean firstif; gboolean _tmp122_; ValaCCodeFunction* _tmp125_; ValaCCodeFunction* _tmp126_; ValaCCodeConstant* _tmp127_; ValaCCodeConstant* _tmp128_; ValaCCodeFile* _tmp129_; ValaCCodeFunction* _tmp130_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp0_); _tmp2_ = _tmp1_; _tmp3_ = g_strconcat (_tmp2_, "dbus_interface_get_property", NULL); _tmp4_ = _tmp3_; _tmp5_ = vala_ccode_function_new (_tmp4_, "GVariant*"); _tmp6_ = _tmp5_; _g_free0 (_tmp4_); _g_free0 (_tmp2_); cfunc = _tmp6_; _tmp7_ = cfunc; _tmp8_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp9_ = _tmp8_; vala_ccode_function_add_parameter (_tmp7_, _tmp9_); _vala_ccode_node_unref0 (_tmp9_); _tmp10_ = cfunc; _tmp11_ = vala_ccode_parameter_new ("sender", "const gchar*"); _tmp12_ = _tmp11_; vala_ccode_function_add_parameter (_tmp10_, _tmp12_); _vala_ccode_node_unref0 (_tmp12_); _tmp13_ = cfunc; _tmp14_ = vala_ccode_parameter_new ("object_path", "const gchar*"); _tmp15_ = _tmp14_; vala_ccode_function_add_parameter (_tmp13_, _tmp15_); _vala_ccode_node_unref0 (_tmp15_); _tmp16_ = cfunc; _tmp17_ = vala_ccode_parameter_new ("interface_name", "const gchar*"); _tmp18_ = _tmp17_; vala_ccode_function_add_parameter (_tmp16_, _tmp18_); _vala_ccode_node_unref0 (_tmp18_); _tmp19_ = cfunc; _tmp20_ = vala_ccode_parameter_new ("property_name", "const gchar*"); _tmp21_ = _tmp20_; vala_ccode_function_add_parameter (_tmp19_, _tmp21_); _vala_ccode_node_unref0 (_tmp21_); _tmp22_ = cfunc; _tmp23_ = vala_ccode_parameter_new ("error", "GError**"); _tmp24_ = _tmp23_; vala_ccode_function_add_parameter (_tmp22_, _tmp24_); _vala_ccode_node_unref0 (_tmp24_); _tmp25_ = cfunc; _tmp26_ = vala_ccode_parameter_new ("user_data", "gpointer"); _tmp27_ = _tmp26_; vala_ccode_function_add_parameter (_tmp25_, _tmp27_); _vala_ccode_node_unref0 (_tmp27_); _tmp28_ = cfunc; _tmp29_ = cfunc; _tmp30_ = vala_ccode_function_get_modifiers (_tmp29_); _tmp31_ = _tmp30_; vala_ccode_function_set_modifiers (_tmp29_, _tmp31_ | VALA_CCODE_MODIFIERS_STATIC); _tmp32_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp33_ = cfunc; vala_ccode_file_add_function_declaration (_tmp32_, _tmp33_); _tmp34_ = cfunc; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp34_); _tmp35_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp36_ = _tmp35_; _tmp37_ = vala_ccode_identifier_new ("user_data"); _tmp38_ = _tmp37_; _tmp39_ = vala_ccode_variable_declarator_new ("data", (ValaCCodeExpression*) _tmp38_, NULL); _tmp40_ = _tmp39_; vala_ccode_function_add_declaration (_tmp36_, "gpointer*", (ValaCCodeDeclarator*) _tmp40_, 0); _vala_ccode_node_unref0 (_tmp40_); _vala_ccode_node_unref0 (_tmp38_); _tmp41_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp42_ = _tmp41_; _tmp43_ = vala_ccode_identifier_new ("data"); _tmp44_ = _tmp43_; _tmp45_ = vala_ccode_constant_new ("0"); _tmp46_ = _tmp45_; _tmp47_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp44_, (ValaCCodeExpression*) _tmp46_); _tmp48_ = _tmp47_; _tmp49_ = vala_ccode_variable_declarator_new ("object", (ValaCCodeExpression*) _tmp48_, NULL); _tmp50_ = _tmp49_; vala_ccode_function_add_declaration (_tmp42_, "gpointer", (ValaCCodeDeclarator*) _tmp50_, 0); _vala_ccode_node_unref0 (_tmp50_); _vala_ccode_node_unref0 (_tmp48_); _vala_ccode_node_unref0 (_tmp46_); _vala_ccode_node_unref0 (_tmp44_); firstif = TRUE; { ValaObjectTypeSymbol* _tmp51_; ValaList* _tmp52_ = NULL; ValaList* _prop_list; ValaList* _tmp53_; gint _tmp54_; gint _tmp55_; gint _prop_size; gint _prop_index; _tmp51_ = sym; _tmp52_ = vala_object_type_symbol_get_properties (_tmp51_); _prop_list = _tmp52_; _tmp53_ = _prop_list; _tmp54_ = vala_collection_get_size ((ValaCollection*) _tmp53_); _tmp55_ = _tmp54_; _prop_size = _tmp55_; _prop_index = -1; while (TRUE) { gint _tmp56_; gint _tmp57_; gint _tmp58_; ValaList* _tmp59_; gint _tmp60_; gpointer _tmp61_ = NULL; ValaProperty* prop; gboolean _tmp62_ = FALSE; gboolean _tmp63_ = FALSE; ValaProperty* _tmp64_; ValaMemberBinding _tmp65_; ValaMemberBinding _tmp66_; gboolean _tmp70_; gboolean _tmp74_; ValaProperty* _tmp75_; gboolean _tmp76_ = FALSE; ValaProperty* _tmp77_; ValaPropertyAccessor* _tmp78_; ValaPropertyAccessor* _tmp79_; ValaCCodeFile* _tmp80_; ValaCCodeIdentifier* _tmp81_; ValaCCodeIdentifier* _tmp82_; ValaCCodeFunctionCall* _tmp83_; ValaCCodeFunctionCall* _tmp84_; ValaCCodeFunctionCall* ccheck; ValaCCodeFunctionCall* _tmp85_; ValaCCodeIdentifier* _tmp86_; ValaCCodeIdentifier* _tmp87_; ValaCCodeFunctionCall* _tmp88_; ValaProperty* _tmp89_; gchar* _tmp90_ = NULL; gchar* _tmp91_; gchar* _tmp92_ = NULL; gchar* _tmp93_; ValaCCodeConstant* _tmp94_; ValaCCodeConstant* _tmp95_; ValaCCodeFunctionCall* _tmp96_; ValaCCodeConstant* _tmp97_; ValaCCodeConstant* _tmp98_; ValaCCodeBinaryExpression* _tmp99_; ValaCCodeBinaryExpression* _tmp100_; ValaCCodeBinaryExpression* cond; gboolean _tmp101_; ValaProperty* _tmp108_; ValaObjectTypeSymbol* _tmp109_; gchar* _tmp110_ = NULL; gchar* _tmp111_; ValaCCodeIdentifier* _tmp112_; ValaCCodeIdentifier* _tmp113_; ValaCCodeFunctionCall* _tmp114_; ValaCCodeFunctionCall* _tmp115_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp116_; ValaCCodeIdentifier* _tmp117_; ValaCCodeIdentifier* _tmp118_; ValaCCodeFunction* _tmp119_; ValaCCodeFunction* _tmp120_; ValaCCodeFunctionCall* _tmp121_; _tmp56_ = _prop_index; _prop_index = _tmp56_ + 1; _tmp57_ = _prop_index; _tmp58_ = _prop_size; if (!(_tmp57_ < _tmp58_)) { break; } _tmp59_ = _prop_list; _tmp60_ = _prop_index; _tmp61_ = vala_list_get (_tmp59_, _tmp60_); prop = (ValaProperty*) _tmp61_; _tmp64_ = prop; _tmp65_ = vala_property_get_binding (_tmp64_); _tmp66_ = _tmp65_; if (_tmp66_ != VALA_MEMBER_BINDING_INSTANCE) { _tmp63_ = TRUE; } else { ValaProperty* _tmp67_; gboolean _tmp68_; gboolean _tmp69_; _tmp67_ = prop; _tmp68_ = vala_property_get_overrides (_tmp67_); _tmp69_ = _tmp68_; _tmp63_ = _tmp69_; } _tmp70_ = _tmp63_; if (_tmp70_) { _tmp62_ = TRUE; } else { ValaProperty* _tmp71_; ValaSymbolAccessibility _tmp72_; ValaSymbolAccessibility _tmp73_; _tmp71_ = prop; _tmp72_ = vala_symbol_get_access ((ValaSymbol*) _tmp71_); _tmp73_ = _tmp72_; _tmp62_ = _tmp73_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC; } _tmp74_ = _tmp62_; if (_tmp74_) { _vala_code_node_unref0 (prop); continue; } _tmp75_ = prop; _tmp76_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp75_); if (!_tmp76_) { _vala_code_node_unref0 (prop); continue; } _tmp77_ = prop; _tmp78_ = vala_property_get_get_accessor (_tmp77_); _tmp79_ = _tmp78_; if (_tmp79_ == NULL) { _vala_code_node_unref0 (prop); continue; } _tmp80_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp80_, "string.h", FALSE); _tmp81_ = vala_ccode_identifier_new ("strcmp"); _tmp82_ = _tmp81_; _tmp83_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp82_); _tmp84_ = _tmp83_; _vala_ccode_node_unref0 (_tmp82_); ccheck = _tmp84_; _tmp85_ = ccheck; _tmp86_ = vala_ccode_identifier_new ("property_name"); _tmp87_ = _tmp86_; vala_ccode_function_call_add_argument (_tmp85_, (ValaCCodeExpression*) _tmp87_); _vala_ccode_node_unref0 (_tmp87_); _tmp88_ = ccheck; _tmp89_ = prop; _tmp90_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp89_); _tmp91_ = _tmp90_; _tmp92_ = g_strdup_printf ("\"%s\"", _tmp91_); _tmp93_ = _tmp92_; _tmp94_ = vala_ccode_constant_new (_tmp93_); _tmp95_ = _tmp94_; vala_ccode_function_call_add_argument (_tmp88_, (ValaCCodeExpression*) _tmp95_); _vala_ccode_node_unref0 (_tmp95_); _g_free0 (_tmp93_); _g_free0 (_tmp91_); _tmp96_ = ccheck; _tmp97_ = vala_ccode_constant_new ("0"); _tmp98_ = _tmp97_; _tmp99_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) _tmp96_, (ValaCCodeExpression*) _tmp98_); _tmp100_ = _tmp99_; _vala_ccode_node_unref0 (_tmp98_); cond = _tmp100_; _tmp101_ = firstif; if (_tmp101_) { ValaCCodeFunction* _tmp102_; ValaCCodeFunction* _tmp103_; ValaCCodeBinaryExpression* _tmp104_; _tmp102_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp103_ = _tmp102_; _tmp104_ = cond; vala_ccode_function_open_if (_tmp103_, (ValaCCodeExpression*) _tmp104_); firstif = FALSE; } else { ValaCCodeFunction* _tmp105_; ValaCCodeFunction* _tmp106_; ValaCCodeBinaryExpression* _tmp107_; _tmp105_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp106_ = _tmp105_; _tmp107_ = cond; vala_ccode_function_else_if (_tmp106_, (ValaCCodeExpression*) _tmp107_); } _tmp108_ = prop; _tmp109_ = sym; _tmp110_ = vala_gd_bus_server_module_generate_dbus_property_get_wrapper (self, _tmp108_, _tmp109_); _tmp111_ = _tmp110_; _tmp112_ = vala_ccode_identifier_new (_tmp111_); _tmp113_ = _tmp112_; _tmp114_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp113_); _tmp115_ = _tmp114_; _vala_ccode_node_unref0 (_tmp113_); _g_free0 (_tmp111_); ccall = _tmp115_; _tmp116_ = ccall; _tmp117_ = vala_ccode_identifier_new ("object"); _tmp118_ = _tmp117_; vala_ccode_function_call_add_argument (_tmp116_, (ValaCCodeExpression*) _tmp118_); _vala_ccode_node_unref0 (_tmp118_); _tmp119_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp120_ = _tmp119_; _tmp121_ = ccall; vala_ccode_function_add_return (_tmp120_, (ValaCCodeExpression*) _tmp121_); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (cond); _vala_ccode_node_unref0 (ccheck); _vala_code_node_unref0 (prop); } _vala_iterable_unref0 (_prop_list); } _tmp122_ = firstif; if (!_tmp122_) { ValaCCodeFunction* _tmp123_; ValaCCodeFunction* _tmp124_; _tmp123_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp124_ = _tmp123_; vala_ccode_function_close (_tmp124_); } _tmp125_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp126_ = _tmp125_; _tmp127_ = vala_ccode_constant_new ("NULL"); _tmp128_ = _tmp127_; vala_ccode_function_add_return (_tmp126_, (ValaCCodeExpression*) _tmp128_); _vala_ccode_node_unref0 (_tmp128_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp129_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp130_ = cfunc; vala_ccode_file_add_function (_tmp129_, _tmp130_); _vala_ccode_node_unref0 (cfunc); } static void vala_gd_bus_server_module_generate_interface_set_property_function (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; gchar* _tmp3_; gchar* _tmp4_; ValaCCodeFunction* _tmp5_; ValaCCodeFunction* _tmp6_; ValaCCodeFunction* cfunc; ValaCCodeFunction* _tmp7_; ValaCCodeParameter* _tmp8_; ValaCCodeParameter* _tmp9_; ValaCCodeFunction* _tmp10_; ValaCCodeParameter* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeFunction* _tmp13_; ValaCCodeParameter* _tmp14_; ValaCCodeParameter* _tmp15_; ValaCCodeFunction* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeParameter* _tmp18_; ValaCCodeFunction* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeParameter* _tmp21_; ValaCCodeFunction* _tmp22_; ValaCCodeParameter* _tmp23_; ValaCCodeParameter* _tmp24_; ValaCCodeFunction* _tmp25_; ValaCCodeParameter* _tmp26_; ValaCCodeParameter* _tmp27_; ValaCCodeFunction* _tmp28_; ValaCCodeParameter* _tmp29_; ValaCCodeParameter* _tmp30_; ValaCCodeFunction* _tmp31_; ValaCCodeFunction* _tmp32_; ValaCCodeModifiers _tmp33_; ValaCCodeModifiers _tmp34_; ValaCCodeFile* _tmp35_; ValaCCodeFunction* _tmp36_; ValaCCodeFunction* _tmp37_; ValaCCodeFunction* _tmp38_; ValaCCodeFunction* _tmp39_; ValaCCodeIdentifier* _tmp40_; ValaCCodeIdentifier* _tmp41_; ValaCCodeVariableDeclarator* _tmp42_; ValaCCodeVariableDeclarator* _tmp43_; ValaCCodeFunction* _tmp44_; ValaCCodeFunction* _tmp45_; ValaCCodeIdentifier* _tmp46_; ValaCCodeIdentifier* _tmp47_; ValaCCodeConstant* _tmp48_; ValaCCodeConstant* _tmp49_; ValaCCodeElementAccess* _tmp50_; ValaCCodeElementAccess* _tmp51_; ValaCCodeVariableDeclarator* _tmp52_; ValaCCodeVariableDeclarator* _tmp53_; gboolean firstif; gboolean _tmp132_; ValaCCodeFunction* _tmp135_; ValaCCodeFunction* _tmp136_; ValaCCodeConstant* _tmp137_; ValaCCodeConstant* _tmp138_; ValaCCodeFile* _tmp139_; ValaCCodeFunction* _tmp140_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp0_); _tmp2_ = _tmp1_; _tmp3_ = g_strconcat (_tmp2_, "dbus_interface_set_property", NULL); _tmp4_ = _tmp3_; _tmp5_ = vala_ccode_function_new (_tmp4_, "gboolean"); _tmp6_ = _tmp5_; _g_free0 (_tmp4_); _g_free0 (_tmp2_); cfunc = _tmp6_; _tmp7_ = cfunc; _tmp8_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp9_ = _tmp8_; vala_ccode_function_add_parameter (_tmp7_, _tmp9_); _vala_ccode_node_unref0 (_tmp9_); _tmp10_ = cfunc; _tmp11_ = vala_ccode_parameter_new ("sender", "const gchar*"); _tmp12_ = _tmp11_; vala_ccode_function_add_parameter (_tmp10_, _tmp12_); _vala_ccode_node_unref0 (_tmp12_); _tmp13_ = cfunc; _tmp14_ = vala_ccode_parameter_new ("object_path", "const gchar*"); _tmp15_ = _tmp14_; vala_ccode_function_add_parameter (_tmp13_, _tmp15_); _vala_ccode_node_unref0 (_tmp15_); _tmp16_ = cfunc; _tmp17_ = vala_ccode_parameter_new ("interface_name", "const gchar*"); _tmp18_ = _tmp17_; vala_ccode_function_add_parameter (_tmp16_, _tmp18_); _vala_ccode_node_unref0 (_tmp18_); _tmp19_ = cfunc; _tmp20_ = vala_ccode_parameter_new ("property_name", "const gchar*"); _tmp21_ = _tmp20_; vala_ccode_function_add_parameter (_tmp19_, _tmp21_); _vala_ccode_node_unref0 (_tmp21_); _tmp22_ = cfunc; _tmp23_ = vala_ccode_parameter_new ("value", "GVariant*"); _tmp24_ = _tmp23_; vala_ccode_function_add_parameter (_tmp22_, _tmp24_); _vala_ccode_node_unref0 (_tmp24_); _tmp25_ = cfunc; _tmp26_ = vala_ccode_parameter_new ("error", "GError**"); _tmp27_ = _tmp26_; vala_ccode_function_add_parameter (_tmp25_, _tmp27_); _vala_ccode_node_unref0 (_tmp27_); _tmp28_ = cfunc; _tmp29_ = vala_ccode_parameter_new ("user_data", "gpointer"); _tmp30_ = _tmp29_; vala_ccode_function_add_parameter (_tmp28_, _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _tmp31_ = cfunc; _tmp32_ = cfunc; _tmp33_ = vala_ccode_function_get_modifiers (_tmp32_); _tmp34_ = _tmp33_; vala_ccode_function_set_modifiers (_tmp32_, _tmp34_ | VALA_CCODE_MODIFIERS_STATIC); _tmp35_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp36_ = cfunc; vala_ccode_file_add_function_declaration (_tmp35_, _tmp36_); _tmp37_ = cfunc; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp37_); _tmp38_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp39_ = _tmp38_; _tmp40_ = vala_ccode_identifier_new ("user_data"); _tmp41_ = _tmp40_; _tmp42_ = vala_ccode_variable_declarator_new ("data", (ValaCCodeExpression*) _tmp41_, NULL); _tmp43_ = _tmp42_; vala_ccode_function_add_declaration (_tmp39_, "gpointer*", (ValaCCodeDeclarator*) _tmp43_, 0); _vala_ccode_node_unref0 (_tmp43_); _vala_ccode_node_unref0 (_tmp41_); _tmp44_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp45_ = _tmp44_; _tmp46_ = vala_ccode_identifier_new ("data"); _tmp47_ = _tmp46_; _tmp48_ = vala_ccode_constant_new ("0"); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp47_, (ValaCCodeExpression*) _tmp49_); _tmp51_ = _tmp50_; _tmp52_ = vala_ccode_variable_declarator_new ("object", (ValaCCodeExpression*) _tmp51_, NULL); _tmp53_ = _tmp52_; vala_ccode_function_add_declaration (_tmp45_, "gpointer", (ValaCCodeDeclarator*) _tmp53_, 0); _vala_ccode_node_unref0 (_tmp53_); _vala_ccode_node_unref0 (_tmp51_); _vala_ccode_node_unref0 (_tmp49_); _vala_ccode_node_unref0 (_tmp47_); firstif = TRUE; { ValaObjectTypeSymbol* _tmp54_; ValaList* _tmp55_ = NULL; ValaList* _prop_list; ValaList* _tmp56_; gint _tmp57_; gint _tmp58_; gint _prop_size; gint _prop_index; _tmp54_ = sym; _tmp55_ = vala_object_type_symbol_get_properties (_tmp54_); _prop_list = _tmp55_; _tmp56_ = _prop_list; _tmp57_ = vala_collection_get_size ((ValaCollection*) _tmp56_); _tmp58_ = _tmp57_; _prop_size = _tmp58_; _prop_index = -1; while (TRUE) { gint _tmp59_; gint _tmp60_; gint _tmp61_; ValaList* _tmp62_; gint _tmp63_; gpointer _tmp64_ = NULL; ValaProperty* prop; gboolean _tmp65_ = FALSE; gboolean _tmp66_ = FALSE; ValaProperty* _tmp67_; ValaMemberBinding _tmp68_; ValaMemberBinding _tmp69_; gboolean _tmp73_; gboolean _tmp77_; ValaProperty* _tmp78_; gboolean _tmp79_ = FALSE; ValaProperty* _tmp80_; ValaPropertyAccessor* _tmp81_; ValaPropertyAccessor* _tmp82_; ValaCCodeFile* _tmp83_; ValaCCodeIdentifier* _tmp84_; ValaCCodeIdentifier* _tmp85_; ValaCCodeFunctionCall* _tmp86_; ValaCCodeFunctionCall* _tmp87_; ValaCCodeFunctionCall* ccheck; ValaCCodeFunctionCall* _tmp88_; ValaCCodeIdentifier* _tmp89_; ValaCCodeIdentifier* _tmp90_; ValaCCodeFunctionCall* _tmp91_; ValaProperty* _tmp92_; gchar* _tmp93_ = NULL; gchar* _tmp94_; gchar* _tmp95_ = NULL; gchar* _tmp96_; ValaCCodeConstant* _tmp97_; ValaCCodeConstant* _tmp98_; ValaCCodeFunctionCall* _tmp99_; ValaCCodeConstant* _tmp100_; ValaCCodeConstant* _tmp101_; ValaCCodeBinaryExpression* _tmp102_; ValaCCodeBinaryExpression* _tmp103_; ValaCCodeBinaryExpression* cond; gboolean _tmp104_; ValaProperty* _tmp111_; ValaObjectTypeSymbol* _tmp112_; gchar* _tmp113_ = NULL; gchar* _tmp114_; ValaCCodeIdentifier* _tmp115_; ValaCCodeIdentifier* _tmp116_; ValaCCodeFunctionCall* _tmp117_; ValaCCodeFunctionCall* _tmp118_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp119_; ValaCCodeIdentifier* _tmp120_; ValaCCodeIdentifier* _tmp121_; ValaCCodeFunctionCall* _tmp122_; ValaCCodeIdentifier* _tmp123_; ValaCCodeIdentifier* _tmp124_; ValaCCodeFunction* _tmp125_; ValaCCodeFunction* _tmp126_; ValaCCodeFunctionCall* _tmp127_; ValaCCodeFunction* _tmp128_; ValaCCodeFunction* _tmp129_; ValaCCodeConstant* _tmp130_; ValaCCodeConstant* _tmp131_; _tmp59_ = _prop_index; _prop_index = _tmp59_ + 1; _tmp60_ = _prop_index; _tmp61_ = _prop_size; if (!(_tmp60_ < _tmp61_)) { break; } _tmp62_ = _prop_list; _tmp63_ = _prop_index; _tmp64_ = vala_list_get (_tmp62_, _tmp63_); prop = (ValaProperty*) _tmp64_; _tmp67_ = prop; _tmp68_ = vala_property_get_binding (_tmp67_); _tmp69_ = _tmp68_; if (_tmp69_ != VALA_MEMBER_BINDING_INSTANCE) { _tmp66_ = TRUE; } else { ValaProperty* _tmp70_; gboolean _tmp71_; gboolean _tmp72_; _tmp70_ = prop; _tmp71_ = vala_property_get_overrides (_tmp70_); _tmp72_ = _tmp71_; _tmp66_ = _tmp72_; } _tmp73_ = _tmp66_; if (_tmp73_) { _tmp65_ = TRUE; } else { ValaProperty* _tmp74_; ValaSymbolAccessibility _tmp75_; ValaSymbolAccessibility _tmp76_; _tmp74_ = prop; _tmp75_ = vala_symbol_get_access ((ValaSymbol*) _tmp74_); _tmp76_ = _tmp75_; _tmp65_ = _tmp76_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC; } _tmp77_ = _tmp65_; if (_tmp77_) { _vala_code_node_unref0 (prop); continue; } _tmp78_ = prop; _tmp79_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp78_); if (!_tmp79_) { _vala_code_node_unref0 (prop); continue; } _tmp80_ = prop; _tmp81_ = vala_property_get_set_accessor (_tmp80_); _tmp82_ = _tmp81_; if (_tmp82_ == NULL) { _vala_code_node_unref0 (prop); continue; } _tmp83_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp83_, "string.h", FALSE); _tmp84_ = vala_ccode_identifier_new ("strcmp"); _tmp85_ = _tmp84_; _tmp86_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp85_); _tmp87_ = _tmp86_; _vala_ccode_node_unref0 (_tmp85_); ccheck = _tmp87_; _tmp88_ = ccheck; _tmp89_ = vala_ccode_identifier_new ("property_name"); _tmp90_ = _tmp89_; vala_ccode_function_call_add_argument (_tmp88_, (ValaCCodeExpression*) _tmp90_); _vala_ccode_node_unref0 (_tmp90_); _tmp91_ = ccheck; _tmp92_ = prop; _tmp93_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp92_); _tmp94_ = _tmp93_; _tmp95_ = g_strdup_printf ("\"%s\"", _tmp94_); _tmp96_ = _tmp95_; _tmp97_ = vala_ccode_constant_new (_tmp96_); _tmp98_ = _tmp97_; vala_ccode_function_call_add_argument (_tmp91_, (ValaCCodeExpression*) _tmp98_); _vala_ccode_node_unref0 (_tmp98_); _g_free0 (_tmp96_); _g_free0 (_tmp94_); _tmp99_ = ccheck; _tmp100_ = vala_ccode_constant_new ("0"); _tmp101_ = _tmp100_; _tmp102_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) _tmp99_, (ValaCCodeExpression*) _tmp101_); _tmp103_ = _tmp102_; _vala_ccode_node_unref0 (_tmp101_); cond = _tmp103_; _tmp104_ = firstif; if (_tmp104_) { ValaCCodeFunction* _tmp105_; ValaCCodeFunction* _tmp106_; ValaCCodeBinaryExpression* _tmp107_; _tmp105_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp106_ = _tmp105_; _tmp107_ = cond; vala_ccode_function_open_if (_tmp106_, (ValaCCodeExpression*) _tmp107_); firstif = FALSE; } else { ValaCCodeFunction* _tmp108_; ValaCCodeFunction* _tmp109_; ValaCCodeBinaryExpression* _tmp110_; _tmp108_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp109_ = _tmp108_; _tmp110_ = cond; vala_ccode_function_else_if (_tmp109_, (ValaCCodeExpression*) _tmp110_); } _tmp111_ = prop; _tmp112_ = sym; _tmp113_ = vala_gd_bus_server_module_generate_dbus_property_set_wrapper (self, _tmp111_, _tmp112_); _tmp114_ = _tmp113_; _tmp115_ = vala_ccode_identifier_new (_tmp114_); _tmp116_ = _tmp115_; _tmp117_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp116_); _tmp118_ = _tmp117_; _vala_ccode_node_unref0 (_tmp116_); _g_free0 (_tmp114_); ccall = _tmp118_; _tmp119_ = ccall; _tmp120_ = vala_ccode_identifier_new ("object"); _tmp121_ = _tmp120_; vala_ccode_function_call_add_argument (_tmp119_, (ValaCCodeExpression*) _tmp121_); _vala_ccode_node_unref0 (_tmp121_); _tmp122_ = ccall; _tmp123_ = vala_ccode_identifier_new ("value"); _tmp124_ = _tmp123_; vala_ccode_function_call_add_argument (_tmp122_, (ValaCCodeExpression*) _tmp124_); _vala_ccode_node_unref0 (_tmp124_); _tmp125_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp126_ = _tmp125_; _tmp127_ = ccall; vala_ccode_function_add_expression (_tmp126_, (ValaCCodeExpression*) _tmp127_); _tmp128_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp129_ = _tmp128_; _tmp130_ = vala_ccode_constant_new ("TRUE"); _tmp131_ = _tmp130_; vala_ccode_function_add_return (_tmp129_, (ValaCCodeExpression*) _tmp131_); _vala_ccode_node_unref0 (_tmp131_); _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (cond); _vala_ccode_node_unref0 (ccheck); _vala_code_node_unref0 (prop); } _vala_iterable_unref0 (_prop_list); } _tmp132_ = firstif; if (!_tmp132_) { ValaCCodeFunction* _tmp133_; ValaCCodeFunction* _tmp134_; _tmp133_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp134_ = _tmp133_; vala_ccode_function_close (_tmp134_); } _tmp135_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp136_ = _tmp135_; _tmp137_ = vala_ccode_constant_new ("FALSE"); _tmp138_ = _tmp137_; vala_ccode_function_add_return (_tmp136_, (ValaCCodeExpression*) _tmp138_); _vala_ccode_node_unref0 (_tmp138_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp139_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp140_ = cfunc; vala_ccode_file_add_function (_tmp139_, _tmp140_); _vala_ccode_node_unref0 (cfunc); } static ValaCCodeExpression* vala_gd_bus_server_module_get_method_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaCCodeExpression* result = NULL; ValaCCodeInitializerList* _tmp0_; ValaCCodeInitializerList* infos; ValaCCodeInitializerList* _tmp376_; ValaCCodeConstant* _tmp377_; ValaCCodeConstant* _tmp378_; ValaCCodeDeclaration* _tmp379_; ValaCCodeDeclaration* _cdecl_; ValaObjectTypeSymbol* _tmp380_; gchar* _tmp381_ = NULL; gchar* _tmp382_; gchar* _tmp383_; gchar* _tmp384_; gchar* _tmp385_; gchar* _tmp386_; ValaCCodeInitializerList* _tmp387_; ValaCCodeVariableDeclarator* _tmp388_; ValaCCodeVariableDeclarator* _tmp389_; ValaCCodeFile* _tmp390_; ValaObjectTypeSymbol* _tmp391_; gchar* _tmp392_ = NULL; gchar* _tmp393_; gchar* _tmp394_; gchar* _tmp395_; gchar* _tmp396_; gchar* _tmp397_; ValaCCodeIdentifier* _tmp398_; ValaCCodeExpression* _tmp399_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = vala_ccode_initializer_list_new (); infos = _tmp0_; { ValaObjectTypeSymbol* _tmp1_; ValaList* _tmp2_ = NULL; ValaList* _m_list; ValaList* _tmp3_; gint _tmp4_; gint _tmp5_; gint _m_size; gint _m_index; _tmp1_ = sym; _tmp2_ = vala_object_type_symbol_get_methods (_tmp1_); _m_list = _tmp2_; _tmp3_ = _m_list; _tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_); _tmp5_ = _tmp4_; _m_size = _tmp5_; _m_index = -1; while (TRUE) { gint _tmp6_; gint _tmp7_; gint _tmp8_; ValaList* _tmp9_; gint _tmp10_; gpointer _tmp11_ = NULL; ValaMethod* m; gboolean _tmp12_ = FALSE; gboolean _tmp13_ = FALSE; gboolean _tmp14_ = FALSE; ValaMethod* _tmp15_; gboolean _tmp19_; gboolean _tmp23_; gboolean _tmp27_; ValaMethod* _tmp28_; gboolean _tmp29_ = FALSE; ValaCCodeInitializerList* _tmp30_; ValaCCodeInitializerList* in_args_info; ValaCCodeInitializerList* _tmp31_; ValaCCodeInitializerList* out_args_info; ValaMethod* _tmp168_; ValaDataType* _tmp169_; ValaDataType* _tmp170_; ValaCCodeInitializerList* _tmp235_; ValaCCodeConstant* _tmp236_; ValaCCodeConstant* _tmp237_; ValaCCodeInitializerList* _tmp238_; ValaCCodeConstant* _tmp239_; ValaCCodeConstant* _tmp240_; ValaCCodeDeclaration* _tmp241_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp242_; ValaObjectTypeSymbol* _tmp243_; gchar* _tmp244_ = NULL; gchar* _tmp245_; gchar* _tmp246_; gchar* _tmp247_; gchar* _tmp248_; gchar* _tmp249_; ValaMethod* _tmp250_; const gchar* _tmp251_; const gchar* _tmp252_; gchar* _tmp253_; gchar* _tmp254_; gchar* _tmp255_; gchar* _tmp256_; ValaCCodeInitializerList* _tmp257_; ValaCCodeVariableDeclarator* _tmp258_; ValaCCodeVariableDeclarator* _tmp259_; ValaCCodeDeclaration* _tmp260_; ValaCCodeFile* _tmp261_; ValaCCodeDeclaration* _tmp262_; ValaCCodeDeclaration* _tmp263_; ValaCCodeDeclaration* _tmp264_; ValaObjectTypeSymbol* _tmp265_; gchar* _tmp266_ = NULL; gchar* _tmp267_; gchar* _tmp268_; gchar* _tmp269_; gchar* _tmp270_; gchar* _tmp271_; ValaMethod* _tmp272_; const gchar* _tmp273_; const gchar* _tmp274_; gchar* _tmp275_; gchar* _tmp276_; gchar* _tmp277_; gchar* _tmp278_; ValaCCodeInitializerList* _tmp279_; ValaCCodeVariableDeclarator* _tmp280_; ValaCCodeVariableDeclarator* _tmp281_; ValaCCodeDeclaration* _tmp282_; ValaCCodeFile* _tmp283_; ValaCCodeDeclaration* _tmp284_; ValaCCodeInitializerList* _tmp285_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp286_; ValaCCodeConstant* _tmp287_; ValaCCodeConstant* _tmp288_; ValaCCodeInitializerList* _tmp289_; ValaMethod* _tmp290_; gchar* _tmp291_ = NULL; gchar* _tmp292_; gchar* _tmp293_ = NULL; gchar* _tmp294_; ValaCCodeConstant* _tmp295_; ValaCCodeConstant* _tmp296_; ValaCCodeInitializerList* _tmp297_; ValaObjectTypeSymbol* _tmp298_; gchar* _tmp299_ = NULL; gchar* _tmp300_; gchar* _tmp301_; gchar* _tmp302_; gchar* _tmp303_; gchar* _tmp304_; ValaMethod* _tmp305_; const gchar* _tmp306_; const gchar* _tmp307_; gchar* _tmp308_; gchar* _tmp309_; gchar* _tmp310_; gchar* _tmp311_; ValaCCodeIdentifier* _tmp312_; ValaCCodeIdentifier* _tmp313_; ValaCCodeUnaryExpression* _tmp314_; ValaCCodeUnaryExpression* _tmp315_; ValaCCodeCastExpression* _tmp316_; ValaCCodeCastExpression* _tmp317_; ValaCCodeInitializerList* _tmp318_; ValaObjectTypeSymbol* _tmp319_; gchar* _tmp320_ = NULL; gchar* _tmp321_; gchar* _tmp322_; gchar* _tmp323_; gchar* _tmp324_; gchar* _tmp325_; ValaMethod* _tmp326_; const gchar* _tmp327_; const gchar* _tmp328_; gchar* _tmp329_; gchar* _tmp330_; gchar* _tmp331_; gchar* _tmp332_; ValaCCodeIdentifier* _tmp333_; ValaCCodeIdentifier* _tmp334_; ValaCCodeUnaryExpression* _tmp335_; ValaCCodeUnaryExpression* _tmp336_; ValaCCodeCastExpression* _tmp337_; ValaCCodeCastExpression* _tmp338_; ValaCCodeDeclaration* _tmp339_; ValaCCodeDeclaration* _tmp340_; ValaObjectTypeSymbol* _tmp341_; gchar* _tmp342_ = NULL; gchar* _tmp343_; gchar* _tmp344_; gchar* _tmp345_; gchar* _tmp346_; gchar* _tmp347_; ValaMethod* _tmp348_; const gchar* _tmp349_; const gchar* _tmp350_; gchar* _tmp351_; gchar* _tmp352_; ValaCCodeInitializerList* _tmp353_; ValaCCodeVariableDeclarator* _tmp354_; ValaCCodeVariableDeclarator* _tmp355_; ValaCCodeDeclaration* _tmp356_; ValaCCodeFile* _tmp357_; ValaCCodeDeclaration* _tmp358_; ValaCCodeInitializerList* _tmp359_; ValaObjectTypeSymbol* _tmp360_; gchar* _tmp361_ = NULL; gchar* _tmp362_; gchar* _tmp363_; gchar* _tmp364_; gchar* _tmp365_; gchar* _tmp366_; ValaMethod* _tmp367_; const gchar* _tmp368_; const gchar* _tmp369_; gchar* _tmp370_; gchar* _tmp371_; ValaCCodeIdentifier* _tmp372_; ValaCCodeIdentifier* _tmp373_; ValaCCodeUnaryExpression* _tmp374_; ValaCCodeUnaryExpression* _tmp375_; _tmp6_ = _m_index; _m_index = _tmp6_ + 1; _tmp7_ = _m_index; _tmp8_ = _m_size; if (!(_tmp7_ < _tmp8_)) { break; } _tmp9_ = _m_list; _tmp10_ = _m_index; _tmp11_ = vala_list_get (_tmp9_, _tmp10_); m = (ValaMethod*) _tmp11_; _tmp15_ = m; if (VALA_IS_CREATION_METHOD (_tmp15_)) { _tmp14_ = TRUE; } else { ValaMethod* _tmp16_; ValaMemberBinding _tmp17_; ValaMemberBinding _tmp18_; _tmp16_ = m; _tmp17_ = vala_method_get_binding (_tmp16_); _tmp18_ = _tmp17_; _tmp14_ = _tmp18_ != VALA_MEMBER_BINDING_INSTANCE; } _tmp19_ = _tmp14_; if (_tmp19_) { _tmp13_ = TRUE; } else { ValaMethod* _tmp20_; gboolean _tmp21_; gboolean _tmp22_; _tmp20_ = m; _tmp21_ = vala_method_get_overrides (_tmp20_); _tmp22_ = _tmp21_; _tmp13_ = _tmp22_; } _tmp23_ = _tmp13_; if (_tmp23_) { _tmp12_ = TRUE; } else { ValaMethod* _tmp24_; ValaSymbolAccessibility _tmp25_; ValaSymbolAccessibility _tmp26_; _tmp24_ = m; _tmp25_ = vala_symbol_get_access ((ValaSymbol*) _tmp24_); _tmp26_ = _tmp25_; _tmp12_ = _tmp26_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC; } _tmp27_ = _tmp12_; if (_tmp27_) { _vala_code_node_unref0 (m); continue; } _tmp28_ = m; _tmp29_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp28_); if (!_tmp29_) { _vala_code_node_unref0 (m); continue; } _tmp30_ = vala_ccode_initializer_list_new (); in_args_info = _tmp30_; _tmp31_ = vala_ccode_initializer_list_new (); out_args_info = _tmp31_; { ValaMethod* _tmp32_; ValaList* _tmp33_ = NULL; ValaList* _param_list; ValaList* _tmp34_; gint _tmp35_; gint _tmp36_; gint _param_size; gint _param_index; _tmp32_ = m; _tmp33_ = vala_method_get_parameters (_tmp32_); _param_list = _tmp33_; _tmp34_ = _param_list; _tmp35_ = vala_collection_get_size ((ValaCollection*) _tmp34_); _tmp36_ = _tmp35_; _param_size = _tmp36_; _param_index = -1; while (TRUE) { gint _tmp37_; gint _tmp38_; gint _tmp39_; ValaList* _tmp40_; gint _tmp41_; gpointer _tmp42_ = NULL; ValaParameter* param; gboolean _tmp43_ = FALSE; ValaParameter* _tmp44_; ValaDataType* _tmp45_; ValaDataType* _tmp46_; gboolean _tmp54_; gboolean _tmp55_ = FALSE; ValaParameter* _tmp56_; ValaDataType* _tmp57_; ValaDataType* _tmp58_; gboolean _tmp66_; ValaCCodeInitializerList* _tmp67_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp68_; ValaCCodeConstant* _tmp69_; ValaCCodeConstant* _tmp70_; ValaCCodeInitializerList* _tmp71_; ValaParameter* _tmp72_; const gchar* _tmp73_; const gchar* _tmp74_; gchar* _tmp75_ = NULL; gchar* _tmp76_; ValaCCodeConstant* _tmp77_; ValaCCodeConstant* _tmp78_; ValaCCodeInitializerList* _tmp79_; ValaParameter* _tmp80_; ValaDataType* _tmp81_; ValaDataType* _tmp82_; ValaParameter* _tmp83_; gchar* _tmp84_ = NULL; gchar* _tmp85_; gchar* _tmp86_ = NULL; gchar* _tmp87_; ValaCCodeConstant* _tmp88_; ValaCCodeConstant* _tmp89_; ValaCCodeDeclaration* _tmp90_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp91_; ValaObjectTypeSymbol* _tmp92_; gchar* _tmp93_ = NULL; gchar* _tmp94_; gchar* _tmp95_; gchar* _tmp96_; gchar* _tmp97_; gchar* _tmp98_; ValaMethod* _tmp99_; const gchar* _tmp100_; const gchar* _tmp101_; gchar* _tmp102_; gchar* _tmp103_; gchar* _tmp104_; gchar* _tmp105_; ValaParameter* _tmp106_; const gchar* _tmp107_; const gchar* _tmp108_; gchar* _tmp109_; gchar* _tmp110_; ValaCCodeInitializerList* _tmp111_; ValaCCodeVariableDeclarator* _tmp112_; ValaCCodeVariableDeclarator* _tmp113_; ValaCCodeDeclaration* _tmp114_; ValaCCodeFile* _tmp115_; ValaCCodeDeclaration* _tmp116_; ValaParameter* _tmp117_; ValaParameterDirection _tmp118_; ValaParameterDirection _tmp119_; _tmp37_ = _param_index; _param_index = _tmp37_ + 1; _tmp38_ = _param_index; _tmp39_ = _param_size; if (!(_tmp38_ < _tmp39_)) { break; } _tmp40_ = _param_list; _tmp41_ = _param_index; _tmp42_ = vala_list_get (_tmp40_, _tmp41_); param = (ValaParameter*) _tmp42_; _tmp44_ = param; _tmp45_ = vala_variable_get_variable_type ((ValaVariable*) _tmp44_); _tmp46_ = _tmp45_; if (VALA_IS_OBJECT_TYPE (_tmp46_)) { ValaParameter* _tmp47_; ValaDataType* _tmp48_; ValaDataType* _tmp49_; ValaTypeSymbol* _tmp50_; ValaTypeSymbol* _tmp51_; gchar* _tmp52_ = NULL; gchar* _tmp53_; _tmp47_ = param; _tmp48_ = vala_variable_get_variable_type ((ValaVariable*) _tmp47_); _tmp49_ = _tmp48_; _tmp50_ = vala_data_type_get_data_type (_tmp49_); _tmp51_ = _tmp50_; _tmp52_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp51_); _tmp53_ = _tmp52_; _tmp43_ = g_strcmp0 (_tmp53_, "GLib.Cancellable") == 0; _g_free0 (_tmp53_); } else { _tmp43_ = FALSE; } _tmp54_ = _tmp43_; if (_tmp54_) { _vala_code_node_unref0 (param); continue; } _tmp56_ = param; _tmp57_ = vala_variable_get_variable_type ((ValaVariable*) _tmp56_); _tmp58_ = _tmp57_; if (VALA_IS_OBJECT_TYPE (_tmp58_)) { ValaParameter* _tmp59_; ValaDataType* _tmp60_; ValaDataType* _tmp61_; ValaTypeSymbol* _tmp62_; ValaTypeSymbol* _tmp63_; gchar* _tmp64_ = NULL; gchar* _tmp65_; _tmp59_ = param; _tmp60_ = vala_variable_get_variable_type ((ValaVariable*) _tmp59_); _tmp61_ = _tmp60_; _tmp62_ = vala_data_type_get_data_type (_tmp61_); _tmp63_ = _tmp62_; _tmp64_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp63_); _tmp65_ = _tmp64_; _tmp55_ = g_strcmp0 (_tmp65_, "GLib.BusName") == 0; _g_free0 (_tmp65_); } else { _tmp55_ = FALSE; } _tmp66_ = _tmp55_; if (_tmp66_) { _vala_code_node_unref0 (param); continue; } _tmp67_ = vala_ccode_initializer_list_new (); info = _tmp67_; _tmp68_ = info; _tmp69_ = vala_ccode_constant_new ("-1"); _tmp70_ = _tmp69_; vala_ccode_initializer_list_append (_tmp68_, (ValaCCodeExpression*) _tmp70_); _vala_ccode_node_unref0 (_tmp70_); _tmp71_ = info; _tmp72_ = param; _tmp73_ = vala_symbol_get_name ((ValaSymbol*) _tmp72_); _tmp74_ = _tmp73_; _tmp75_ = g_strdup_printf ("\"%s\"", _tmp74_); _tmp76_ = _tmp75_; _tmp77_ = vala_ccode_constant_new (_tmp76_); _tmp78_ = _tmp77_; vala_ccode_initializer_list_append (_tmp71_, (ValaCCodeExpression*) _tmp78_); _vala_ccode_node_unref0 (_tmp78_); _g_free0 (_tmp76_); _tmp79_ = info; _tmp80_ = param; _tmp81_ = vala_variable_get_variable_type ((ValaVariable*) _tmp80_); _tmp82_ = _tmp81_; _tmp83_ = param; _tmp84_ = vala_gvariant_module_get_type_signature (_tmp82_, (ValaSymbol*) _tmp83_); _tmp85_ = _tmp84_; _tmp86_ = g_strdup_printf ("\"%s\"", _tmp85_); _tmp87_ = _tmp86_; _tmp88_ = vala_ccode_constant_new (_tmp87_); _tmp89_ = _tmp88_; vala_ccode_initializer_list_append (_tmp79_, (ValaCCodeExpression*) _tmp89_); _vala_ccode_node_unref0 (_tmp89_); _g_free0 (_tmp87_); _g_free0 (_tmp85_); _tmp90_ = vala_ccode_declaration_new ("const GDBusArgInfo"); _cdecl_ = _tmp90_; _tmp91_ = _cdecl_; _tmp92_ = sym; _tmp93_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp92_); _tmp94_ = _tmp93_; _tmp95_ = g_strconcat ("_", _tmp94_, NULL); _tmp96_ = _tmp95_; _tmp97_ = g_strconcat (_tmp96_, "dbus_arg_info_", NULL); _tmp98_ = _tmp97_; _tmp99_ = m; _tmp100_ = vala_symbol_get_name ((ValaSymbol*) _tmp99_); _tmp101_ = _tmp100_; _tmp102_ = g_strconcat (_tmp98_, _tmp101_, NULL); _tmp103_ = _tmp102_; _tmp104_ = g_strconcat (_tmp103_, "_", NULL); _tmp105_ = _tmp104_; _tmp106_ = param; _tmp107_ = vala_symbol_get_name ((ValaSymbol*) _tmp106_); _tmp108_ = _tmp107_; _tmp109_ = g_strconcat (_tmp105_, _tmp108_, NULL); _tmp110_ = _tmp109_; _tmp111_ = info; _tmp112_ = vala_ccode_variable_declarator_new (_tmp110_, (ValaCCodeExpression*) _tmp111_, NULL); _tmp113_ = _tmp112_; vala_ccode_declaration_add_declarator (_tmp91_, (ValaCCodeDeclarator*) _tmp113_); _vala_ccode_node_unref0 (_tmp113_); _g_free0 (_tmp110_); _g_free0 (_tmp105_); _g_free0 (_tmp103_); _g_free0 (_tmp98_); _g_free0 (_tmp96_); _g_free0 (_tmp94_); _tmp114_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp114_, VALA_CCODE_MODIFIERS_STATIC); _tmp115_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp116_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp115_, (ValaCCodeNode*) _tmp116_); _tmp117_ = param; _tmp118_ = vala_parameter_get_direction (_tmp117_); _tmp119_ = _tmp118_; if (_tmp119_ == VALA_PARAMETER_DIRECTION_IN) { ValaCCodeInitializerList* _tmp120_; ValaObjectTypeSymbol* _tmp121_; gchar* _tmp122_ = NULL; gchar* _tmp123_; gchar* _tmp124_; gchar* _tmp125_; gchar* _tmp126_; gchar* _tmp127_; ValaMethod* _tmp128_; const gchar* _tmp129_; const gchar* _tmp130_; gchar* _tmp131_; gchar* _tmp132_; gchar* _tmp133_; gchar* _tmp134_; ValaParameter* _tmp135_; const gchar* _tmp136_; const gchar* _tmp137_; gchar* _tmp138_; gchar* _tmp139_; ValaCCodeIdentifier* _tmp140_; ValaCCodeIdentifier* _tmp141_; ValaCCodeUnaryExpression* _tmp142_; ValaCCodeUnaryExpression* _tmp143_; _tmp120_ = in_args_info; _tmp121_ = sym; _tmp122_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp121_); _tmp123_ = _tmp122_; _tmp124_ = g_strconcat ("_", _tmp123_, NULL); _tmp125_ = _tmp124_; _tmp126_ = g_strconcat (_tmp125_, "dbus_arg_info_", NULL); _tmp127_ = _tmp126_; _tmp128_ = m; _tmp129_ = vala_symbol_get_name ((ValaSymbol*) _tmp128_); _tmp130_ = _tmp129_; _tmp131_ = g_strconcat (_tmp127_, _tmp130_, NULL); _tmp132_ = _tmp131_; _tmp133_ = g_strconcat (_tmp132_, "_", NULL); _tmp134_ = _tmp133_; _tmp135_ = param; _tmp136_ = vala_symbol_get_name ((ValaSymbol*) _tmp135_); _tmp137_ = _tmp136_; _tmp138_ = g_strconcat (_tmp134_, _tmp137_, NULL); _tmp139_ = _tmp138_; _tmp140_ = vala_ccode_identifier_new (_tmp139_); _tmp141_ = _tmp140_; _tmp142_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp141_); _tmp143_ = _tmp142_; vala_ccode_initializer_list_append (_tmp120_, (ValaCCodeExpression*) _tmp143_); _vala_ccode_node_unref0 (_tmp143_); _vala_ccode_node_unref0 (_tmp141_); _g_free0 (_tmp139_); _g_free0 (_tmp134_); _g_free0 (_tmp132_); _g_free0 (_tmp127_); _g_free0 (_tmp125_); _g_free0 (_tmp123_); } else { ValaCCodeInitializerList* _tmp144_; ValaObjectTypeSymbol* _tmp145_; gchar* _tmp146_ = NULL; gchar* _tmp147_; gchar* _tmp148_; gchar* _tmp149_; gchar* _tmp150_; gchar* _tmp151_; ValaMethod* _tmp152_; const gchar* _tmp153_; const gchar* _tmp154_; gchar* _tmp155_; gchar* _tmp156_; gchar* _tmp157_; gchar* _tmp158_; ValaParameter* _tmp159_; const gchar* _tmp160_; const gchar* _tmp161_; gchar* _tmp162_; gchar* _tmp163_; ValaCCodeIdentifier* _tmp164_; ValaCCodeIdentifier* _tmp165_; ValaCCodeUnaryExpression* _tmp166_; ValaCCodeUnaryExpression* _tmp167_; _tmp144_ = out_args_info; _tmp145_ = sym; _tmp146_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp145_); _tmp147_ = _tmp146_; _tmp148_ = g_strconcat ("_", _tmp147_, NULL); _tmp149_ = _tmp148_; _tmp150_ = g_strconcat (_tmp149_, "dbus_arg_info_", NULL); _tmp151_ = _tmp150_; _tmp152_ = m; _tmp153_ = vala_symbol_get_name ((ValaSymbol*) _tmp152_); _tmp154_ = _tmp153_; _tmp155_ = g_strconcat (_tmp151_, _tmp154_, NULL); _tmp156_ = _tmp155_; _tmp157_ = g_strconcat (_tmp156_, "_", NULL); _tmp158_ = _tmp157_; _tmp159_ = param; _tmp160_ = vala_symbol_get_name ((ValaSymbol*) _tmp159_); _tmp161_ = _tmp160_; _tmp162_ = g_strconcat (_tmp158_, _tmp161_, NULL); _tmp163_ = _tmp162_; _tmp164_ = vala_ccode_identifier_new (_tmp163_); _tmp165_ = _tmp164_; _tmp166_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp165_); _tmp167_ = _tmp166_; vala_ccode_initializer_list_append (_tmp144_, (ValaCCodeExpression*) _tmp167_); _vala_ccode_node_unref0 (_tmp167_); _vala_ccode_node_unref0 (_tmp165_); _g_free0 (_tmp163_); _g_free0 (_tmp158_); _g_free0 (_tmp156_); _g_free0 (_tmp151_); _g_free0 (_tmp149_); _g_free0 (_tmp147_); } _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (info); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp168_ = m; _tmp169_ = vala_method_get_return_type (_tmp168_); _tmp170_ = _tmp169_; if (!VALA_IS_VOID_TYPE (_tmp170_)) { ValaCCodeInitializerList* _tmp171_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp172_; ValaCCodeConstant* _tmp173_; ValaCCodeConstant* _tmp174_; ValaCCodeInitializerList* _tmp175_; ValaMethod* _tmp176_; gchar* _tmp177_ = NULL; gchar* _tmp178_; gchar* _tmp179_ = NULL; gchar* _tmp180_; ValaCCodeConstant* _tmp181_; ValaCCodeConstant* _tmp182_; ValaCCodeInitializerList* _tmp183_; ValaMethod* _tmp184_; ValaDataType* _tmp185_; ValaDataType* _tmp186_; ValaMethod* _tmp187_; gchar* _tmp188_ = NULL; gchar* _tmp189_; gchar* _tmp190_ = NULL; gchar* _tmp191_; ValaCCodeConstant* _tmp192_; ValaCCodeConstant* _tmp193_; ValaCCodeDeclaration* _tmp194_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp195_; ValaObjectTypeSymbol* _tmp196_; gchar* _tmp197_ = NULL; gchar* _tmp198_; gchar* _tmp199_; gchar* _tmp200_; gchar* _tmp201_; gchar* _tmp202_; ValaMethod* _tmp203_; const gchar* _tmp204_; const gchar* _tmp205_; gchar* _tmp206_; gchar* _tmp207_; gchar* _tmp208_; gchar* _tmp209_; ValaCCodeInitializerList* _tmp210_; ValaCCodeVariableDeclarator* _tmp211_; ValaCCodeVariableDeclarator* _tmp212_; ValaCCodeDeclaration* _tmp213_; ValaCCodeFile* _tmp214_; ValaCCodeDeclaration* _tmp215_; ValaCCodeInitializerList* _tmp216_; ValaObjectTypeSymbol* _tmp217_; gchar* _tmp218_ = NULL; gchar* _tmp219_; gchar* _tmp220_; gchar* _tmp221_; gchar* _tmp222_; gchar* _tmp223_; ValaMethod* _tmp224_; const gchar* _tmp225_; const gchar* _tmp226_; gchar* _tmp227_; gchar* _tmp228_; gchar* _tmp229_; gchar* _tmp230_; ValaCCodeIdentifier* _tmp231_; ValaCCodeIdentifier* _tmp232_; ValaCCodeUnaryExpression* _tmp233_; ValaCCodeUnaryExpression* _tmp234_; _tmp171_ = vala_ccode_initializer_list_new (); info = _tmp171_; _tmp172_ = info; _tmp173_ = vala_ccode_constant_new ("-1"); _tmp174_ = _tmp173_; vala_ccode_initializer_list_append (_tmp172_, (ValaCCodeExpression*) _tmp174_); _vala_ccode_node_unref0 (_tmp174_); _tmp175_ = info; _tmp176_ = m; _tmp177_ = vala_gd_bus_server_module_dbus_result_name (_tmp176_); _tmp178_ = _tmp177_; _tmp179_ = g_strdup_printf ("\"%s\"", _tmp178_); _tmp180_ = _tmp179_; _tmp181_ = vala_ccode_constant_new (_tmp180_); _tmp182_ = _tmp181_; vala_ccode_initializer_list_append (_tmp175_, (ValaCCodeExpression*) _tmp182_); _vala_ccode_node_unref0 (_tmp182_); _g_free0 (_tmp180_); _g_free0 (_tmp178_); _tmp183_ = info; _tmp184_ = m; _tmp185_ = vala_method_get_return_type (_tmp184_); _tmp186_ = _tmp185_; _tmp187_ = m; _tmp188_ = vala_gvariant_module_get_type_signature (_tmp186_, (ValaSymbol*) _tmp187_); _tmp189_ = _tmp188_; _tmp190_ = g_strdup_printf ("\"%s\"", _tmp189_); _tmp191_ = _tmp190_; _tmp192_ = vala_ccode_constant_new (_tmp191_); _tmp193_ = _tmp192_; vala_ccode_initializer_list_append (_tmp183_, (ValaCCodeExpression*) _tmp193_); _vala_ccode_node_unref0 (_tmp193_); _g_free0 (_tmp191_); _g_free0 (_tmp189_); _tmp194_ = vala_ccode_declaration_new ("const GDBusArgInfo"); _cdecl_ = _tmp194_; _tmp195_ = _cdecl_; _tmp196_ = sym; _tmp197_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp196_); _tmp198_ = _tmp197_; _tmp199_ = g_strconcat ("_", _tmp198_, NULL); _tmp200_ = _tmp199_; _tmp201_ = g_strconcat (_tmp200_, "dbus_arg_info_", NULL); _tmp202_ = _tmp201_; _tmp203_ = m; _tmp204_ = vala_symbol_get_name ((ValaSymbol*) _tmp203_); _tmp205_ = _tmp204_; _tmp206_ = g_strconcat (_tmp202_, _tmp205_, NULL); _tmp207_ = _tmp206_; _tmp208_ = g_strconcat (_tmp207_, "_result", NULL); _tmp209_ = _tmp208_; _tmp210_ = info; _tmp211_ = vala_ccode_variable_declarator_new (_tmp209_, (ValaCCodeExpression*) _tmp210_, NULL); _tmp212_ = _tmp211_; vala_ccode_declaration_add_declarator (_tmp195_, (ValaCCodeDeclarator*) _tmp212_); _vala_ccode_node_unref0 (_tmp212_); _g_free0 (_tmp209_); _g_free0 (_tmp207_); _g_free0 (_tmp202_); _g_free0 (_tmp200_); _g_free0 (_tmp198_); _tmp213_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp213_, VALA_CCODE_MODIFIERS_STATIC); _tmp214_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp215_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp214_, (ValaCCodeNode*) _tmp215_); _tmp216_ = out_args_info; _tmp217_ = sym; _tmp218_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp217_); _tmp219_ = _tmp218_; _tmp220_ = g_strconcat ("_", _tmp219_, NULL); _tmp221_ = _tmp220_; _tmp222_ = g_strconcat (_tmp221_, "dbus_arg_info_", NULL); _tmp223_ = _tmp222_; _tmp224_ = m; _tmp225_ = vala_symbol_get_name ((ValaSymbol*) _tmp224_); _tmp226_ = _tmp225_; _tmp227_ = g_strconcat (_tmp223_, _tmp226_, NULL); _tmp228_ = _tmp227_; _tmp229_ = g_strconcat (_tmp228_, "_result", NULL); _tmp230_ = _tmp229_; _tmp231_ = vala_ccode_identifier_new (_tmp230_); _tmp232_ = _tmp231_; _tmp233_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp232_); _tmp234_ = _tmp233_; vala_ccode_initializer_list_append (_tmp216_, (ValaCCodeExpression*) _tmp234_); _vala_ccode_node_unref0 (_tmp234_); _vala_ccode_node_unref0 (_tmp232_); _g_free0 (_tmp230_); _g_free0 (_tmp228_); _g_free0 (_tmp223_); _g_free0 (_tmp221_); _g_free0 (_tmp219_); _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (info); } _tmp235_ = in_args_info; _tmp236_ = vala_ccode_constant_new ("NULL"); _tmp237_ = _tmp236_; vala_ccode_initializer_list_append (_tmp235_, (ValaCCodeExpression*) _tmp237_); _vala_ccode_node_unref0 (_tmp237_); _tmp238_ = out_args_info; _tmp239_ = vala_ccode_constant_new ("NULL"); _tmp240_ = _tmp239_; vala_ccode_initializer_list_append (_tmp238_, (ValaCCodeExpression*) _tmp240_); _vala_ccode_node_unref0 (_tmp240_); _tmp241_ = vala_ccode_declaration_new ("const GDBusArgInfo * const"); _cdecl_ = _tmp241_; _tmp242_ = _cdecl_; _tmp243_ = sym; _tmp244_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp243_); _tmp245_ = _tmp244_; _tmp246_ = g_strconcat ("_", _tmp245_, NULL); _tmp247_ = _tmp246_; _tmp248_ = g_strconcat (_tmp247_, "dbus_arg_info_", NULL); _tmp249_ = _tmp248_; _tmp250_ = m; _tmp251_ = vala_symbol_get_name ((ValaSymbol*) _tmp250_); _tmp252_ = _tmp251_; _tmp253_ = g_strconcat (_tmp249_, _tmp252_, NULL); _tmp254_ = _tmp253_; _tmp255_ = g_strconcat (_tmp254_, "_in[]", NULL); _tmp256_ = _tmp255_; _tmp257_ = in_args_info; _tmp258_ = vala_ccode_variable_declarator_new (_tmp256_, (ValaCCodeExpression*) _tmp257_, NULL); _tmp259_ = _tmp258_; vala_ccode_declaration_add_declarator (_tmp242_, (ValaCCodeDeclarator*) _tmp259_); _vala_ccode_node_unref0 (_tmp259_); _g_free0 (_tmp256_); _g_free0 (_tmp254_); _g_free0 (_tmp249_); _g_free0 (_tmp247_); _g_free0 (_tmp245_); _tmp260_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp260_, VALA_CCODE_MODIFIERS_STATIC); _tmp261_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp262_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp261_, (ValaCCodeNode*) _tmp262_); _tmp263_ = vala_ccode_declaration_new ("const GDBusArgInfo * const"); _vala_ccode_node_unref0 (_cdecl_); _cdecl_ = _tmp263_; _tmp264_ = _cdecl_; _tmp265_ = sym; _tmp266_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp265_); _tmp267_ = _tmp266_; _tmp268_ = g_strconcat ("_", _tmp267_, NULL); _tmp269_ = _tmp268_; _tmp270_ = g_strconcat (_tmp269_, "dbus_arg_info_", NULL); _tmp271_ = _tmp270_; _tmp272_ = m; _tmp273_ = vala_symbol_get_name ((ValaSymbol*) _tmp272_); _tmp274_ = _tmp273_; _tmp275_ = g_strconcat (_tmp271_, _tmp274_, NULL); _tmp276_ = _tmp275_; _tmp277_ = g_strconcat (_tmp276_, "_out[]", NULL); _tmp278_ = _tmp277_; _tmp279_ = out_args_info; _tmp280_ = vala_ccode_variable_declarator_new (_tmp278_, (ValaCCodeExpression*) _tmp279_, NULL); _tmp281_ = _tmp280_; vala_ccode_declaration_add_declarator (_tmp264_, (ValaCCodeDeclarator*) _tmp281_); _vala_ccode_node_unref0 (_tmp281_); _g_free0 (_tmp278_); _g_free0 (_tmp276_); _g_free0 (_tmp271_); _g_free0 (_tmp269_); _g_free0 (_tmp267_); _tmp282_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp282_, VALA_CCODE_MODIFIERS_STATIC); _tmp283_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp284_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp283_, (ValaCCodeNode*) _tmp284_); _tmp285_ = vala_ccode_initializer_list_new (); info = _tmp285_; _tmp286_ = info; _tmp287_ = vala_ccode_constant_new ("-1"); _tmp288_ = _tmp287_; vala_ccode_initializer_list_append (_tmp286_, (ValaCCodeExpression*) _tmp288_); _vala_ccode_node_unref0 (_tmp288_); _tmp289_ = info; _tmp290_ = m; _tmp291_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp290_); _tmp292_ = _tmp291_; _tmp293_ = g_strdup_printf ("\"%s\"", _tmp292_); _tmp294_ = _tmp293_; _tmp295_ = vala_ccode_constant_new (_tmp294_); _tmp296_ = _tmp295_; vala_ccode_initializer_list_append (_tmp289_, (ValaCCodeExpression*) _tmp296_); _vala_ccode_node_unref0 (_tmp296_); _g_free0 (_tmp294_); _g_free0 (_tmp292_); _tmp297_ = info; _tmp298_ = sym; _tmp299_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp298_); _tmp300_ = _tmp299_; _tmp301_ = g_strconcat ("_", _tmp300_, NULL); _tmp302_ = _tmp301_; _tmp303_ = g_strconcat (_tmp302_, "dbus_arg_info_", NULL); _tmp304_ = _tmp303_; _tmp305_ = m; _tmp306_ = vala_symbol_get_name ((ValaSymbol*) _tmp305_); _tmp307_ = _tmp306_; _tmp308_ = g_strconcat (_tmp304_, _tmp307_, NULL); _tmp309_ = _tmp308_; _tmp310_ = g_strconcat (_tmp309_, "_in", NULL); _tmp311_ = _tmp310_; _tmp312_ = vala_ccode_identifier_new (_tmp311_); _tmp313_ = _tmp312_; _tmp314_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp313_); _tmp315_ = _tmp314_; _tmp316_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp315_, "GDBusArgInfo **"); _tmp317_ = _tmp316_; vala_ccode_initializer_list_append (_tmp297_, (ValaCCodeExpression*) _tmp317_); _vala_ccode_node_unref0 (_tmp317_); _vala_ccode_node_unref0 (_tmp315_); _vala_ccode_node_unref0 (_tmp313_); _g_free0 (_tmp311_); _g_free0 (_tmp309_); _g_free0 (_tmp304_); _g_free0 (_tmp302_); _g_free0 (_tmp300_); _tmp318_ = info; _tmp319_ = sym; _tmp320_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp319_); _tmp321_ = _tmp320_; _tmp322_ = g_strconcat ("_", _tmp321_, NULL); _tmp323_ = _tmp322_; _tmp324_ = g_strconcat (_tmp323_, "dbus_arg_info_", NULL); _tmp325_ = _tmp324_; _tmp326_ = m; _tmp327_ = vala_symbol_get_name ((ValaSymbol*) _tmp326_); _tmp328_ = _tmp327_; _tmp329_ = g_strconcat (_tmp325_, _tmp328_, NULL); _tmp330_ = _tmp329_; _tmp331_ = g_strconcat (_tmp330_, "_out", NULL); _tmp332_ = _tmp331_; _tmp333_ = vala_ccode_identifier_new (_tmp332_); _tmp334_ = _tmp333_; _tmp335_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp334_); _tmp336_ = _tmp335_; _tmp337_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp336_, "GDBusArgInfo **"); _tmp338_ = _tmp337_; vala_ccode_initializer_list_append (_tmp318_, (ValaCCodeExpression*) _tmp338_); _vala_ccode_node_unref0 (_tmp338_); _vala_ccode_node_unref0 (_tmp336_); _vala_ccode_node_unref0 (_tmp334_); _g_free0 (_tmp332_); _g_free0 (_tmp330_); _g_free0 (_tmp325_); _g_free0 (_tmp323_); _g_free0 (_tmp321_); _tmp339_ = vala_ccode_declaration_new ("const GDBusMethodInfo"); _vala_ccode_node_unref0 (_cdecl_); _cdecl_ = _tmp339_; _tmp340_ = _cdecl_; _tmp341_ = sym; _tmp342_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp341_); _tmp343_ = _tmp342_; _tmp344_ = g_strconcat ("_", _tmp343_, NULL); _tmp345_ = _tmp344_; _tmp346_ = g_strconcat (_tmp345_, "dbus_method_info_", NULL); _tmp347_ = _tmp346_; _tmp348_ = m; _tmp349_ = vala_symbol_get_name ((ValaSymbol*) _tmp348_); _tmp350_ = _tmp349_; _tmp351_ = g_strconcat (_tmp347_, _tmp350_, NULL); _tmp352_ = _tmp351_; _tmp353_ = info; _tmp354_ = vala_ccode_variable_declarator_new (_tmp352_, (ValaCCodeExpression*) _tmp353_, NULL); _tmp355_ = _tmp354_; vala_ccode_declaration_add_declarator (_tmp340_, (ValaCCodeDeclarator*) _tmp355_); _vala_ccode_node_unref0 (_tmp355_); _g_free0 (_tmp352_); _g_free0 (_tmp347_); _g_free0 (_tmp345_); _g_free0 (_tmp343_); _tmp356_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp356_, VALA_CCODE_MODIFIERS_STATIC); _tmp357_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp358_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp357_, (ValaCCodeNode*) _tmp358_); _tmp359_ = infos; _tmp360_ = sym; _tmp361_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp360_); _tmp362_ = _tmp361_; _tmp363_ = g_strconcat ("_", _tmp362_, NULL); _tmp364_ = _tmp363_; _tmp365_ = g_strconcat (_tmp364_, "dbus_method_info_", NULL); _tmp366_ = _tmp365_; _tmp367_ = m; _tmp368_ = vala_symbol_get_name ((ValaSymbol*) _tmp367_); _tmp369_ = _tmp368_; _tmp370_ = g_strconcat (_tmp366_, _tmp369_, NULL); _tmp371_ = _tmp370_; _tmp372_ = vala_ccode_identifier_new (_tmp371_); _tmp373_ = _tmp372_; _tmp374_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp373_); _tmp375_ = _tmp374_; vala_ccode_initializer_list_append (_tmp359_, (ValaCCodeExpression*) _tmp375_); _vala_ccode_node_unref0 (_tmp375_); _vala_ccode_node_unref0 (_tmp373_); _g_free0 (_tmp371_); _g_free0 (_tmp366_); _g_free0 (_tmp364_); _g_free0 (_tmp362_); _vala_ccode_node_unref0 (info); _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (out_args_info); _vala_ccode_node_unref0 (in_args_info); _vala_code_node_unref0 (m); } _vala_iterable_unref0 (_m_list); } _tmp376_ = infos; _tmp377_ = vala_ccode_constant_new ("NULL"); _tmp378_ = _tmp377_; vala_ccode_initializer_list_append (_tmp376_, (ValaCCodeExpression*) _tmp378_); _vala_ccode_node_unref0 (_tmp378_); _tmp379_ = vala_ccode_declaration_new ("const GDBusMethodInfo * const"); _cdecl_ = _tmp379_; _tmp380_ = sym; _tmp381_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp380_); _tmp382_ = _tmp381_; _tmp383_ = g_strconcat ("_", _tmp382_, NULL); _tmp384_ = _tmp383_; _tmp385_ = g_strconcat (_tmp384_, "dbus_method_info[]", NULL); _tmp386_ = _tmp385_; _tmp387_ = infos; _tmp388_ = vala_ccode_variable_declarator_new (_tmp386_, (ValaCCodeExpression*) _tmp387_, NULL); _tmp389_ = _tmp388_; vala_ccode_declaration_add_declarator (_cdecl_, (ValaCCodeDeclarator*) _tmp389_); _vala_ccode_node_unref0 (_tmp389_); _g_free0 (_tmp386_); _g_free0 (_tmp384_); _g_free0 (_tmp382_); vala_ccode_declaration_set_modifiers (_cdecl_, VALA_CCODE_MODIFIERS_STATIC); _tmp390_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_constant_declaration (_tmp390_, (ValaCCodeNode*) _cdecl_); _tmp391_ = sym; _tmp392_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp391_); _tmp393_ = _tmp392_; _tmp394_ = g_strconcat ("_", _tmp393_, NULL); _tmp395_ = _tmp394_; _tmp396_ = g_strconcat (_tmp395_, "dbus_method_info", NULL); _tmp397_ = _tmp396_; _tmp398_ = vala_ccode_identifier_new (_tmp397_); _tmp399_ = (ValaCCodeExpression*) _tmp398_; _g_free0 (_tmp397_); _g_free0 (_tmp395_); _g_free0 (_tmp393_); result = _tmp399_; _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (infos); return result; } static ValaCCodeExpression* vala_gd_bus_server_module_get_signal_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaCCodeExpression* result = NULL; ValaCCodeInitializerList* _tmp0_; ValaCCodeInitializerList* infos; ValaCCodeInitializerList* _tmp196_; ValaCCodeConstant* _tmp197_; ValaCCodeConstant* _tmp198_; ValaCCodeDeclaration* _tmp199_; ValaCCodeDeclaration* _cdecl_; ValaObjectTypeSymbol* _tmp200_; gchar* _tmp201_ = NULL; gchar* _tmp202_; gchar* _tmp203_; gchar* _tmp204_; gchar* _tmp205_; gchar* _tmp206_; ValaCCodeInitializerList* _tmp207_; ValaCCodeVariableDeclarator* _tmp208_; ValaCCodeVariableDeclarator* _tmp209_; ValaCCodeFile* _tmp210_; ValaObjectTypeSymbol* _tmp211_; gchar* _tmp212_ = NULL; gchar* _tmp213_; gchar* _tmp214_; gchar* _tmp215_; gchar* _tmp216_; gchar* _tmp217_; ValaCCodeIdentifier* _tmp218_; ValaCCodeExpression* _tmp219_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = vala_ccode_initializer_list_new (); infos = _tmp0_; { ValaObjectTypeSymbol* _tmp1_; ValaList* _tmp2_ = NULL; ValaList* _sig_list; ValaList* _tmp3_; gint _tmp4_; gint _tmp5_; gint _sig_size; gint _sig_index; _tmp1_ = sym; _tmp2_ = vala_object_type_symbol_get_signals (_tmp1_); _sig_list = _tmp2_; _tmp3_ = _sig_list; _tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_); _tmp5_ = _tmp4_; _sig_size = _tmp5_; _sig_index = -1; while (TRUE) { gint _tmp6_; gint _tmp7_; gint _tmp8_; ValaList* _tmp9_; gint _tmp10_; gpointer _tmp11_ = NULL; ValaSignal* sig; ValaSignal* _tmp12_; ValaSymbolAccessibility _tmp13_; ValaSymbolAccessibility _tmp14_; ValaSignal* _tmp15_; gboolean _tmp16_ = FALSE; ValaCCodeInitializerList* _tmp17_; ValaCCodeInitializerList* args_info; ValaCCodeInitializerList* _tmp103_; ValaCCodeConstant* _tmp104_; ValaCCodeConstant* _tmp105_; ValaCCodeDeclaration* _tmp106_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp107_; ValaObjectTypeSymbol* _tmp108_; gchar* _tmp109_ = NULL; gchar* _tmp110_; gchar* _tmp111_; gchar* _tmp112_; gchar* _tmp113_; gchar* _tmp114_; ValaSignal* _tmp115_; gchar* _tmp116_ = NULL; gchar* _tmp117_; gchar* _tmp118_; gchar* _tmp119_; gchar* _tmp120_; gchar* _tmp121_; ValaCCodeInitializerList* _tmp122_; ValaCCodeVariableDeclarator* _tmp123_; ValaCCodeVariableDeclarator* _tmp124_; ValaCCodeDeclaration* _tmp125_; ValaCCodeFile* _tmp126_; ValaCCodeDeclaration* _tmp127_; ValaCCodeInitializerList* _tmp128_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp129_; ValaCCodeConstant* _tmp130_; ValaCCodeConstant* _tmp131_; ValaCCodeInitializerList* _tmp132_; ValaSignal* _tmp133_; gchar* _tmp134_ = NULL; gchar* _tmp135_; gchar* _tmp136_ = NULL; gchar* _tmp137_; ValaCCodeConstant* _tmp138_; ValaCCodeConstant* _tmp139_; ValaCCodeInitializerList* _tmp140_; ValaObjectTypeSymbol* _tmp141_; gchar* _tmp142_ = NULL; gchar* _tmp143_; gchar* _tmp144_; gchar* _tmp145_; gchar* _tmp146_; gchar* _tmp147_; ValaSignal* _tmp148_; gchar* _tmp149_ = NULL; gchar* _tmp150_; gchar* _tmp151_; gchar* _tmp152_; ValaCCodeIdentifier* _tmp153_; ValaCCodeIdentifier* _tmp154_; ValaCCodeUnaryExpression* _tmp155_; ValaCCodeUnaryExpression* _tmp156_; ValaCCodeCastExpression* _tmp157_; ValaCCodeCastExpression* _tmp158_; ValaCCodeDeclaration* _tmp159_; ValaCCodeDeclaration* _tmp160_; ValaObjectTypeSymbol* _tmp161_; gchar* _tmp162_ = NULL; gchar* _tmp163_; gchar* _tmp164_; gchar* _tmp165_; gchar* _tmp166_; gchar* _tmp167_; ValaSignal* _tmp168_; gchar* _tmp169_ = NULL; gchar* _tmp170_; gchar* _tmp171_; gchar* _tmp172_; ValaCCodeInitializerList* _tmp173_; ValaCCodeVariableDeclarator* _tmp174_; ValaCCodeVariableDeclarator* _tmp175_; ValaCCodeDeclaration* _tmp176_; ValaCCodeFile* _tmp177_; ValaCCodeDeclaration* _tmp178_; ValaCCodeInitializerList* _tmp179_; ValaObjectTypeSymbol* _tmp180_; gchar* _tmp181_ = NULL; gchar* _tmp182_; gchar* _tmp183_; gchar* _tmp184_; gchar* _tmp185_; gchar* _tmp186_; ValaSignal* _tmp187_; gchar* _tmp188_ = NULL; gchar* _tmp189_; gchar* _tmp190_; gchar* _tmp191_; ValaCCodeIdentifier* _tmp192_; ValaCCodeIdentifier* _tmp193_; ValaCCodeUnaryExpression* _tmp194_; ValaCCodeUnaryExpression* _tmp195_; _tmp6_ = _sig_index; _sig_index = _tmp6_ + 1; _tmp7_ = _sig_index; _tmp8_ = _sig_size; if (!(_tmp7_ < _tmp8_)) { break; } _tmp9_ = _sig_list; _tmp10_ = _sig_index; _tmp11_ = vala_list_get (_tmp9_, _tmp10_); sig = (ValaSignal*) _tmp11_; _tmp12_ = sig; _tmp13_ = vala_symbol_get_access ((ValaSymbol*) _tmp12_); _tmp14_ = _tmp13_; if (_tmp14_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC) { _vala_code_node_unref0 (sig); continue; } _tmp15_ = sig; _tmp16_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp15_); if (!_tmp16_) { _vala_code_node_unref0 (sig); continue; } _tmp17_ = vala_ccode_initializer_list_new (); args_info = _tmp17_; { ValaSignal* _tmp18_; ValaList* _tmp19_ = NULL; ValaList* _param_list; ValaList* _tmp20_; gint _tmp21_; gint _tmp22_; gint _param_size; gint _param_index; _tmp18_ = sig; _tmp19_ = vala_signal_get_parameters (_tmp18_); _param_list = _tmp19_; _tmp20_ = _param_list; _tmp21_ = vala_collection_get_size ((ValaCollection*) _tmp20_); _tmp22_ = _tmp21_; _param_size = _tmp22_; _param_index = -1; while (TRUE) { gint _tmp23_; gint _tmp24_; gint _tmp25_; ValaList* _tmp26_; gint _tmp27_; gpointer _tmp28_ = NULL; ValaParameter* param; ValaCCodeInitializerList* _tmp29_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp30_; ValaCCodeConstant* _tmp31_; ValaCCodeConstant* _tmp32_; ValaCCodeInitializerList* _tmp33_; ValaParameter* _tmp34_; const gchar* _tmp35_; const gchar* _tmp36_; gchar* _tmp37_ = NULL; gchar* _tmp38_; ValaCCodeConstant* _tmp39_; ValaCCodeConstant* _tmp40_; ValaCCodeInitializerList* _tmp41_; ValaParameter* _tmp42_; ValaDataType* _tmp43_; ValaDataType* _tmp44_; ValaParameter* _tmp45_; gchar* _tmp46_ = NULL; gchar* _tmp47_; gchar* _tmp48_ = NULL; gchar* _tmp49_; ValaCCodeConstant* _tmp50_; ValaCCodeConstant* _tmp51_; ValaCCodeDeclaration* _tmp52_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp53_; ValaObjectTypeSymbol* _tmp54_; gchar* _tmp55_ = NULL; gchar* _tmp56_; gchar* _tmp57_; gchar* _tmp58_; gchar* _tmp59_; gchar* _tmp60_; ValaSignal* _tmp61_; gchar* _tmp62_ = NULL; gchar* _tmp63_; gchar* _tmp64_; gchar* _tmp65_; gchar* _tmp66_; gchar* _tmp67_; ValaParameter* _tmp68_; const gchar* _tmp69_; const gchar* _tmp70_; gchar* _tmp71_; gchar* _tmp72_; ValaCCodeInitializerList* _tmp73_; ValaCCodeVariableDeclarator* _tmp74_; ValaCCodeVariableDeclarator* _tmp75_; ValaCCodeDeclaration* _tmp76_; ValaCCodeFile* _tmp77_; ValaCCodeDeclaration* _tmp78_; ValaCCodeInitializerList* _tmp79_; ValaObjectTypeSymbol* _tmp80_; gchar* _tmp81_ = NULL; gchar* _tmp82_; gchar* _tmp83_; gchar* _tmp84_; gchar* _tmp85_; gchar* _tmp86_; ValaSignal* _tmp87_; gchar* _tmp88_ = NULL; gchar* _tmp89_; gchar* _tmp90_; gchar* _tmp91_; gchar* _tmp92_; gchar* _tmp93_; ValaParameter* _tmp94_; const gchar* _tmp95_; const gchar* _tmp96_; gchar* _tmp97_; gchar* _tmp98_; ValaCCodeIdentifier* _tmp99_; ValaCCodeIdentifier* _tmp100_; ValaCCodeUnaryExpression* _tmp101_; ValaCCodeUnaryExpression* _tmp102_; _tmp23_ = _param_index; _param_index = _tmp23_ + 1; _tmp24_ = _param_index; _tmp25_ = _param_size; if (!(_tmp24_ < _tmp25_)) { break; } _tmp26_ = _param_list; _tmp27_ = _param_index; _tmp28_ = vala_list_get (_tmp26_, _tmp27_); param = (ValaParameter*) _tmp28_; _tmp29_ = vala_ccode_initializer_list_new (); info = _tmp29_; _tmp30_ = info; _tmp31_ = vala_ccode_constant_new ("-1"); _tmp32_ = _tmp31_; vala_ccode_initializer_list_append (_tmp30_, (ValaCCodeExpression*) _tmp32_); _vala_ccode_node_unref0 (_tmp32_); _tmp33_ = info; _tmp34_ = param; _tmp35_ = vala_symbol_get_name ((ValaSymbol*) _tmp34_); _tmp36_ = _tmp35_; _tmp37_ = g_strdup_printf ("\"%s\"", _tmp36_); _tmp38_ = _tmp37_; _tmp39_ = vala_ccode_constant_new (_tmp38_); _tmp40_ = _tmp39_; vala_ccode_initializer_list_append (_tmp33_, (ValaCCodeExpression*) _tmp40_); _vala_ccode_node_unref0 (_tmp40_); _g_free0 (_tmp38_); _tmp41_ = info; _tmp42_ = param; _tmp43_ = vala_variable_get_variable_type ((ValaVariable*) _tmp42_); _tmp44_ = _tmp43_; _tmp45_ = param; _tmp46_ = vala_gvariant_module_get_type_signature (_tmp44_, (ValaSymbol*) _tmp45_); _tmp47_ = _tmp46_; _tmp48_ = g_strdup_printf ("\"%s\"", _tmp47_); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_constant_new (_tmp49_); _tmp51_ = _tmp50_; vala_ccode_initializer_list_append (_tmp41_, (ValaCCodeExpression*) _tmp51_); _vala_ccode_node_unref0 (_tmp51_); _g_free0 (_tmp49_); _g_free0 (_tmp47_); _tmp52_ = vala_ccode_declaration_new ("const GDBusArgInfo"); _cdecl_ = _tmp52_; _tmp53_ = _cdecl_; _tmp54_ = sym; _tmp55_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp54_); _tmp56_ = _tmp55_; _tmp57_ = g_strconcat ("_", _tmp56_, NULL); _tmp58_ = _tmp57_; _tmp59_ = g_strconcat (_tmp58_, "dbus_arg_info_", NULL); _tmp60_ = _tmp59_; _tmp61_ = sig; _tmp62_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp61_); _tmp63_ = _tmp62_; _tmp64_ = g_strconcat (_tmp60_, _tmp63_, NULL); _tmp65_ = _tmp64_; _tmp66_ = g_strconcat (_tmp65_, "_", NULL); _tmp67_ = _tmp66_; _tmp68_ = param; _tmp69_ = vala_symbol_get_name ((ValaSymbol*) _tmp68_); _tmp70_ = _tmp69_; _tmp71_ = g_strconcat (_tmp67_, _tmp70_, NULL); _tmp72_ = _tmp71_; _tmp73_ = info; _tmp74_ = vala_ccode_variable_declarator_new (_tmp72_, (ValaCCodeExpression*) _tmp73_, NULL); _tmp75_ = _tmp74_; vala_ccode_declaration_add_declarator (_tmp53_, (ValaCCodeDeclarator*) _tmp75_); _vala_ccode_node_unref0 (_tmp75_); _g_free0 (_tmp72_); _g_free0 (_tmp67_); _g_free0 (_tmp65_); _g_free0 (_tmp63_); _g_free0 (_tmp60_); _g_free0 (_tmp58_); _g_free0 (_tmp56_); _tmp76_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp76_, VALA_CCODE_MODIFIERS_STATIC); _tmp77_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp78_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp77_, (ValaCCodeNode*) _tmp78_); _tmp79_ = args_info; _tmp80_ = sym; _tmp81_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp80_); _tmp82_ = _tmp81_; _tmp83_ = g_strconcat ("_", _tmp82_, NULL); _tmp84_ = _tmp83_; _tmp85_ = g_strconcat (_tmp84_, "dbus_arg_info_", NULL); _tmp86_ = _tmp85_; _tmp87_ = sig; _tmp88_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp87_); _tmp89_ = _tmp88_; _tmp90_ = g_strconcat (_tmp86_, _tmp89_, NULL); _tmp91_ = _tmp90_; _tmp92_ = g_strconcat (_tmp91_, "_", NULL); _tmp93_ = _tmp92_; _tmp94_ = param; _tmp95_ = vala_symbol_get_name ((ValaSymbol*) _tmp94_); _tmp96_ = _tmp95_; _tmp97_ = g_strconcat (_tmp93_, _tmp96_, NULL); _tmp98_ = _tmp97_; _tmp99_ = vala_ccode_identifier_new (_tmp98_); _tmp100_ = _tmp99_; _tmp101_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp100_); _tmp102_ = _tmp101_; vala_ccode_initializer_list_append (_tmp79_, (ValaCCodeExpression*) _tmp102_); _vala_ccode_node_unref0 (_tmp102_); _vala_ccode_node_unref0 (_tmp100_); _g_free0 (_tmp98_); _g_free0 (_tmp93_); _g_free0 (_tmp91_); _g_free0 (_tmp89_); _g_free0 (_tmp86_); _g_free0 (_tmp84_); _g_free0 (_tmp82_); _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (info); _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp103_ = args_info; _tmp104_ = vala_ccode_constant_new ("NULL"); _tmp105_ = _tmp104_; vala_ccode_initializer_list_append (_tmp103_, (ValaCCodeExpression*) _tmp105_); _vala_ccode_node_unref0 (_tmp105_); _tmp106_ = vala_ccode_declaration_new ("const GDBusArgInfo * const"); _cdecl_ = _tmp106_; _tmp107_ = _cdecl_; _tmp108_ = sym; _tmp109_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp108_); _tmp110_ = _tmp109_; _tmp111_ = g_strconcat ("_", _tmp110_, NULL); _tmp112_ = _tmp111_; _tmp113_ = g_strconcat (_tmp112_, "dbus_arg_info_", NULL); _tmp114_ = _tmp113_; _tmp115_ = sig; _tmp116_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp115_); _tmp117_ = _tmp116_; _tmp118_ = g_strconcat (_tmp114_, _tmp117_, NULL); _tmp119_ = _tmp118_; _tmp120_ = g_strconcat (_tmp119_, "[]", NULL); _tmp121_ = _tmp120_; _tmp122_ = args_info; _tmp123_ = vala_ccode_variable_declarator_new (_tmp121_, (ValaCCodeExpression*) _tmp122_, NULL); _tmp124_ = _tmp123_; vala_ccode_declaration_add_declarator (_tmp107_, (ValaCCodeDeclarator*) _tmp124_); _vala_ccode_node_unref0 (_tmp124_); _g_free0 (_tmp121_); _g_free0 (_tmp119_); _g_free0 (_tmp117_); _g_free0 (_tmp114_); _g_free0 (_tmp112_); _g_free0 (_tmp110_); _tmp125_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp125_, VALA_CCODE_MODIFIERS_STATIC); _tmp126_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp127_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp126_, (ValaCCodeNode*) _tmp127_); _tmp128_ = vala_ccode_initializer_list_new (); info = _tmp128_; _tmp129_ = info; _tmp130_ = vala_ccode_constant_new ("-1"); _tmp131_ = _tmp130_; vala_ccode_initializer_list_append (_tmp129_, (ValaCCodeExpression*) _tmp131_); _vala_ccode_node_unref0 (_tmp131_); _tmp132_ = info; _tmp133_ = sig; _tmp134_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp133_); _tmp135_ = _tmp134_; _tmp136_ = g_strdup_printf ("\"%s\"", _tmp135_); _tmp137_ = _tmp136_; _tmp138_ = vala_ccode_constant_new (_tmp137_); _tmp139_ = _tmp138_; vala_ccode_initializer_list_append (_tmp132_, (ValaCCodeExpression*) _tmp139_); _vala_ccode_node_unref0 (_tmp139_); _g_free0 (_tmp137_); _g_free0 (_tmp135_); _tmp140_ = info; _tmp141_ = sym; _tmp142_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp141_); _tmp143_ = _tmp142_; _tmp144_ = g_strconcat ("_", _tmp143_, NULL); _tmp145_ = _tmp144_; _tmp146_ = g_strconcat (_tmp145_, "dbus_arg_info_", NULL); _tmp147_ = _tmp146_; _tmp148_ = sig; _tmp149_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp148_); _tmp150_ = _tmp149_; _tmp151_ = g_strconcat (_tmp147_, _tmp150_, NULL); _tmp152_ = _tmp151_; _tmp153_ = vala_ccode_identifier_new (_tmp152_); _tmp154_ = _tmp153_; _tmp155_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp154_); _tmp156_ = _tmp155_; _tmp157_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp156_, "GDBusArgInfo **"); _tmp158_ = _tmp157_; vala_ccode_initializer_list_append (_tmp140_, (ValaCCodeExpression*) _tmp158_); _vala_ccode_node_unref0 (_tmp158_); _vala_ccode_node_unref0 (_tmp156_); _vala_ccode_node_unref0 (_tmp154_); _g_free0 (_tmp152_); _g_free0 (_tmp150_); _g_free0 (_tmp147_); _g_free0 (_tmp145_); _g_free0 (_tmp143_); _tmp159_ = vala_ccode_declaration_new ("const GDBusSignalInfo"); _vala_ccode_node_unref0 (_cdecl_); _cdecl_ = _tmp159_; _tmp160_ = _cdecl_; _tmp161_ = sym; _tmp162_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp161_); _tmp163_ = _tmp162_; _tmp164_ = g_strconcat ("_", _tmp163_, NULL); _tmp165_ = _tmp164_; _tmp166_ = g_strconcat (_tmp165_, "dbus_signal_info_", NULL); _tmp167_ = _tmp166_; _tmp168_ = sig; _tmp169_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp168_); _tmp170_ = _tmp169_; _tmp171_ = g_strconcat (_tmp167_, _tmp170_, NULL); _tmp172_ = _tmp171_; _tmp173_ = info; _tmp174_ = vala_ccode_variable_declarator_new (_tmp172_, (ValaCCodeExpression*) _tmp173_, NULL); _tmp175_ = _tmp174_; vala_ccode_declaration_add_declarator (_tmp160_, (ValaCCodeDeclarator*) _tmp175_); _vala_ccode_node_unref0 (_tmp175_); _g_free0 (_tmp172_); _g_free0 (_tmp170_); _g_free0 (_tmp167_); _g_free0 (_tmp165_); _g_free0 (_tmp163_); _tmp176_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp176_, VALA_CCODE_MODIFIERS_STATIC); _tmp177_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp178_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp177_, (ValaCCodeNode*) _tmp178_); _tmp179_ = infos; _tmp180_ = sym; _tmp181_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp180_); _tmp182_ = _tmp181_; _tmp183_ = g_strconcat ("_", _tmp182_, NULL); _tmp184_ = _tmp183_; _tmp185_ = g_strconcat (_tmp184_, "dbus_signal_info_", NULL); _tmp186_ = _tmp185_; _tmp187_ = sig; _tmp188_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp187_); _tmp189_ = _tmp188_; _tmp190_ = g_strconcat (_tmp186_, _tmp189_, NULL); _tmp191_ = _tmp190_; _tmp192_ = vala_ccode_identifier_new (_tmp191_); _tmp193_ = _tmp192_; _tmp194_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp193_); _tmp195_ = _tmp194_; vala_ccode_initializer_list_append (_tmp179_, (ValaCCodeExpression*) _tmp195_); _vala_ccode_node_unref0 (_tmp195_); _vala_ccode_node_unref0 (_tmp193_); _g_free0 (_tmp191_); _g_free0 (_tmp189_); _g_free0 (_tmp186_); _g_free0 (_tmp184_); _g_free0 (_tmp182_); _vala_ccode_node_unref0 (info); _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (args_info); _vala_code_node_unref0 (sig); } _vala_iterable_unref0 (_sig_list); } _tmp196_ = infos; _tmp197_ = vala_ccode_constant_new ("NULL"); _tmp198_ = _tmp197_; vala_ccode_initializer_list_append (_tmp196_, (ValaCCodeExpression*) _tmp198_); _vala_ccode_node_unref0 (_tmp198_); _tmp199_ = vala_ccode_declaration_new ("const GDBusSignalInfo * const"); _cdecl_ = _tmp199_; _tmp200_ = sym; _tmp201_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp200_); _tmp202_ = _tmp201_; _tmp203_ = g_strconcat ("_", _tmp202_, NULL); _tmp204_ = _tmp203_; _tmp205_ = g_strconcat (_tmp204_, "dbus_signal_info[]", NULL); _tmp206_ = _tmp205_; _tmp207_ = infos; _tmp208_ = vala_ccode_variable_declarator_new (_tmp206_, (ValaCCodeExpression*) _tmp207_, NULL); _tmp209_ = _tmp208_; vala_ccode_declaration_add_declarator (_cdecl_, (ValaCCodeDeclarator*) _tmp209_); _vala_ccode_node_unref0 (_tmp209_); _g_free0 (_tmp206_); _g_free0 (_tmp204_); _g_free0 (_tmp202_); vala_ccode_declaration_set_modifiers (_cdecl_, VALA_CCODE_MODIFIERS_STATIC); _tmp210_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_constant_declaration (_tmp210_, (ValaCCodeNode*) _cdecl_); _tmp211_ = sym; _tmp212_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp211_); _tmp213_ = _tmp212_; _tmp214_ = g_strconcat ("_", _tmp213_, NULL); _tmp215_ = _tmp214_; _tmp216_ = g_strconcat (_tmp215_, "dbus_signal_info", NULL); _tmp217_ = _tmp216_; _tmp218_ = vala_ccode_identifier_new (_tmp217_); _tmp219_ = (ValaCCodeExpression*) _tmp218_; _g_free0 (_tmp217_); _g_free0 (_tmp215_); _g_free0 (_tmp213_); result = _tmp219_; _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (infos); return result; } static ValaCCodeExpression* vala_gd_bus_server_module_get_property_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaCCodeExpression* result = NULL; ValaCCodeInitializerList* _tmp0_; ValaCCodeInitializerList* infos; ValaCCodeInitializerList* _tmp113_; ValaCCodeConstant* _tmp114_; ValaCCodeConstant* _tmp115_; ValaCCodeDeclaration* _tmp116_; ValaCCodeDeclaration* _cdecl_; ValaObjectTypeSymbol* _tmp117_; gchar* _tmp118_ = NULL; gchar* _tmp119_; gchar* _tmp120_; gchar* _tmp121_; gchar* _tmp122_; gchar* _tmp123_; ValaCCodeInitializerList* _tmp124_; ValaCCodeVariableDeclarator* _tmp125_; ValaCCodeVariableDeclarator* _tmp126_; ValaCCodeFile* _tmp127_; ValaObjectTypeSymbol* _tmp128_; gchar* _tmp129_ = NULL; gchar* _tmp130_; gchar* _tmp131_; gchar* _tmp132_; gchar* _tmp133_; gchar* _tmp134_; ValaCCodeIdentifier* _tmp135_; ValaCCodeExpression* _tmp136_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = vala_ccode_initializer_list_new (); infos = _tmp0_; { ValaObjectTypeSymbol* _tmp1_; ValaList* _tmp2_ = NULL; ValaList* _prop_list; ValaList* _tmp3_; gint _tmp4_; gint _tmp5_; gint _prop_size; gint _prop_index; _tmp1_ = sym; _tmp2_ = vala_object_type_symbol_get_properties (_tmp1_); _prop_list = _tmp2_; _tmp3_ = _prop_list; _tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_); _tmp5_ = _tmp4_; _prop_size = _tmp5_; _prop_index = -1; while (TRUE) { gint _tmp6_; gint _tmp7_; gint _tmp8_; ValaList* _tmp9_; gint _tmp10_; gpointer _tmp11_ = NULL; ValaProperty* prop; gboolean _tmp12_ = FALSE; gboolean _tmp13_ = FALSE; ValaProperty* _tmp14_; ValaMemberBinding _tmp15_; ValaMemberBinding _tmp16_; gboolean _tmp20_; gboolean _tmp24_; ValaProperty* _tmp25_; gboolean _tmp26_ = FALSE; ValaCCodeInitializerList* _tmp27_; ValaCCodeInitializerList* info; ValaCCodeInitializerList* _tmp28_; ValaCCodeConstant* _tmp29_; ValaCCodeConstant* _tmp30_; ValaCCodeInitializerList* _tmp31_; ValaProperty* _tmp32_; gchar* _tmp33_ = NULL; gchar* _tmp34_; gchar* _tmp35_ = NULL; gchar* _tmp36_; ValaCCodeConstant* _tmp37_; ValaCCodeConstant* _tmp38_; ValaCCodeInitializerList* _tmp39_; ValaProperty* _tmp40_; ValaDataType* _tmp41_; ValaDataType* _tmp42_; ValaProperty* _tmp43_; gchar* _tmp44_ = NULL; gchar* _tmp45_; gchar* _tmp46_ = NULL; gchar* _tmp47_; ValaCCodeConstant* _tmp48_; ValaCCodeConstant* _tmp49_; gboolean _tmp50_ = FALSE; ValaProperty* _tmp51_; ValaPropertyAccessor* _tmp52_; ValaPropertyAccessor* _tmp53_; gboolean _tmp57_; ValaCCodeDeclaration* _tmp76_; ValaCCodeDeclaration* _cdecl_; ValaCCodeDeclaration* _tmp77_; ValaObjectTypeSymbol* _tmp78_; gchar* _tmp79_ = NULL; gchar* _tmp80_; gchar* _tmp81_; gchar* _tmp82_; gchar* _tmp83_; gchar* _tmp84_; ValaProperty* _tmp85_; const gchar* _tmp86_; const gchar* _tmp87_; gchar* _tmp88_; gchar* _tmp89_; ValaCCodeInitializerList* _tmp90_; ValaCCodeVariableDeclarator* _tmp91_; ValaCCodeVariableDeclarator* _tmp92_; ValaCCodeDeclaration* _tmp93_; ValaCCodeFile* _tmp94_; ValaCCodeDeclaration* _tmp95_; ValaCCodeInitializerList* _tmp96_; ValaObjectTypeSymbol* _tmp97_; gchar* _tmp98_ = NULL; gchar* _tmp99_; gchar* _tmp100_; gchar* _tmp101_; gchar* _tmp102_; gchar* _tmp103_; ValaProperty* _tmp104_; const gchar* _tmp105_; const gchar* _tmp106_; gchar* _tmp107_; gchar* _tmp108_; ValaCCodeIdentifier* _tmp109_; ValaCCodeIdentifier* _tmp110_; ValaCCodeUnaryExpression* _tmp111_; ValaCCodeUnaryExpression* _tmp112_; _tmp6_ = _prop_index; _prop_index = _tmp6_ + 1; _tmp7_ = _prop_index; _tmp8_ = _prop_size; if (!(_tmp7_ < _tmp8_)) { break; } _tmp9_ = _prop_list; _tmp10_ = _prop_index; _tmp11_ = vala_list_get (_tmp9_, _tmp10_); prop = (ValaProperty*) _tmp11_; _tmp14_ = prop; _tmp15_ = vala_property_get_binding (_tmp14_); _tmp16_ = _tmp15_; if (_tmp16_ != VALA_MEMBER_BINDING_INSTANCE) { _tmp13_ = TRUE; } else { ValaProperty* _tmp17_; gboolean _tmp18_; gboolean _tmp19_; _tmp17_ = prop; _tmp18_ = vala_property_get_overrides (_tmp17_); _tmp19_ = _tmp18_; _tmp13_ = _tmp19_; } _tmp20_ = _tmp13_; if (_tmp20_) { _tmp12_ = TRUE; } else { ValaProperty* _tmp21_; ValaSymbolAccessibility _tmp22_; ValaSymbolAccessibility _tmp23_; _tmp21_ = prop; _tmp22_ = vala_symbol_get_access ((ValaSymbol*) _tmp21_); _tmp23_ = _tmp22_; _tmp12_ = _tmp23_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC; } _tmp24_ = _tmp12_; if (_tmp24_) { _vala_code_node_unref0 (prop); continue; } _tmp25_ = prop; _tmp26_ = vala_gd_bus_server_module_is_dbus_visible ((ValaCodeNode*) _tmp25_); if (!_tmp26_) { _vala_code_node_unref0 (prop); continue; } _tmp27_ = vala_ccode_initializer_list_new (); info = _tmp27_; _tmp28_ = info; _tmp29_ = vala_ccode_constant_new ("-1"); _tmp30_ = _tmp29_; vala_ccode_initializer_list_append (_tmp28_, (ValaCCodeExpression*) _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _tmp31_ = info; _tmp32_ = prop; _tmp33_ = vala_gd_bus_module_get_dbus_name_for_member ((ValaSymbol*) _tmp32_); _tmp34_ = _tmp33_; _tmp35_ = g_strdup_printf ("\"%s\"", _tmp34_); _tmp36_ = _tmp35_; _tmp37_ = vala_ccode_constant_new (_tmp36_); _tmp38_ = _tmp37_; vala_ccode_initializer_list_append (_tmp31_, (ValaCCodeExpression*) _tmp38_); _vala_ccode_node_unref0 (_tmp38_); _g_free0 (_tmp36_); _g_free0 (_tmp34_); _tmp39_ = info; _tmp40_ = prop; _tmp41_ = vala_property_get_property_type (_tmp40_); _tmp42_ = _tmp41_; _tmp43_ = prop; _tmp44_ = vala_gvariant_module_get_type_signature (_tmp42_, (ValaSymbol*) _tmp43_); _tmp45_ = _tmp44_; _tmp46_ = g_strdup_printf ("\"%s\"", _tmp45_); _tmp47_ = _tmp46_; _tmp48_ = vala_ccode_constant_new (_tmp47_); _tmp49_ = _tmp48_; vala_ccode_initializer_list_append (_tmp39_, (ValaCCodeExpression*) _tmp49_); _vala_ccode_node_unref0 (_tmp49_); _g_free0 (_tmp47_); _g_free0 (_tmp45_); _tmp51_ = prop; _tmp52_ = vala_property_get_get_accessor (_tmp51_); _tmp53_ = _tmp52_; if (_tmp53_ != NULL) { ValaProperty* _tmp54_; ValaPropertyAccessor* _tmp55_; ValaPropertyAccessor* _tmp56_; _tmp54_ = prop; _tmp55_ = vala_property_get_set_accessor (_tmp54_); _tmp56_ = _tmp55_; _tmp50_ = _tmp56_ != NULL; } else { _tmp50_ = FALSE; } _tmp57_ = _tmp50_; if (_tmp57_) { ValaCCodeInitializerList* _tmp58_; ValaCCodeConstant* _tmp59_; ValaCCodeConstant* _tmp60_; _tmp58_ = info; _tmp59_ = vala_ccode_constant_new ("G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITA" \ "BLE"); _tmp60_ = _tmp59_; vala_ccode_initializer_list_append (_tmp58_, (ValaCCodeExpression*) _tmp60_); _vala_ccode_node_unref0 (_tmp60_); } else { ValaProperty* _tmp61_; ValaPropertyAccessor* _tmp62_; ValaPropertyAccessor* _tmp63_; _tmp61_ = prop; _tmp62_ = vala_property_get_get_accessor (_tmp61_); _tmp63_ = _tmp62_; if (_tmp63_ != NULL) { ValaCCodeInitializerList* _tmp64_; ValaCCodeConstant* _tmp65_; ValaCCodeConstant* _tmp66_; _tmp64_ = info; _tmp65_ = vala_ccode_constant_new ("G_DBUS_PROPERTY_INFO_FLAGS_READABLE"); _tmp66_ = _tmp65_; vala_ccode_initializer_list_append (_tmp64_, (ValaCCodeExpression*) _tmp66_); _vala_ccode_node_unref0 (_tmp66_); } else { ValaProperty* _tmp67_; ValaPropertyAccessor* _tmp68_; ValaPropertyAccessor* _tmp69_; _tmp67_ = prop; _tmp68_ = vala_property_get_set_accessor (_tmp67_); _tmp69_ = _tmp68_; if (_tmp69_ != NULL) { ValaCCodeInitializerList* _tmp70_; ValaCCodeConstant* _tmp71_; ValaCCodeConstant* _tmp72_; _tmp70_ = info; _tmp71_ = vala_ccode_constant_new ("G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE"); _tmp72_ = _tmp71_; vala_ccode_initializer_list_append (_tmp70_, (ValaCCodeExpression*) _tmp72_); _vala_ccode_node_unref0 (_tmp72_); } else { ValaCCodeInitializerList* _tmp73_; ValaCCodeConstant* _tmp74_; ValaCCodeConstant* _tmp75_; _tmp73_ = info; _tmp74_ = vala_ccode_constant_new ("G_DBUS_PROPERTY_INFO_FLAGS_NONE"); _tmp75_ = _tmp74_; vala_ccode_initializer_list_append (_tmp73_, (ValaCCodeExpression*) _tmp75_); _vala_ccode_node_unref0 (_tmp75_); } } } _tmp76_ = vala_ccode_declaration_new ("const GDBusPropertyInfo"); _cdecl_ = _tmp76_; _tmp77_ = _cdecl_; _tmp78_ = sym; _tmp79_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp78_); _tmp80_ = _tmp79_; _tmp81_ = g_strconcat ("_", _tmp80_, NULL); _tmp82_ = _tmp81_; _tmp83_ = g_strconcat (_tmp82_, "dbus_property_info_", NULL); _tmp84_ = _tmp83_; _tmp85_ = prop; _tmp86_ = vala_symbol_get_name ((ValaSymbol*) _tmp85_); _tmp87_ = _tmp86_; _tmp88_ = g_strconcat (_tmp84_, _tmp87_, NULL); _tmp89_ = _tmp88_; _tmp90_ = info; _tmp91_ = vala_ccode_variable_declarator_new (_tmp89_, (ValaCCodeExpression*) _tmp90_, NULL); _tmp92_ = _tmp91_; vala_ccode_declaration_add_declarator (_tmp77_, (ValaCCodeDeclarator*) _tmp92_); _vala_ccode_node_unref0 (_tmp92_); _g_free0 (_tmp89_); _g_free0 (_tmp84_); _g_free0 (_tmp82_); _g_free0 (_tmp80_); _tmp93_ = _cdecl_; vala_ccode_declaration_set_modifiers (_tmp93_, VALA_CCODE_MODIFIERS_STATIC); _tmp94_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp95_ = _cdecl_; vala_ccode_file_add_constant_declaration (_tmp94_, (ValaCCodeNode*) _tmp95_); _tmp96_ = infos; _tmp97_ = sym; _tmp98_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp97_); _tmp99_ = _tmp98_; _tmp100_ = g_strconcat ("_", _tmp99_, NULL); _tmp101_ = _tmp100_; _tmp102_ = g_strconcat (_tmp101_, "dbus_property_info_", NULL); _tmp103_ = _tmp102_; _tmp104_ = prop; _tmp105_ = vala_symbol_get_name ((ValaSymbol*) _tmp104_); _tmp106_ = _tmp105_; _tmp107_ = g_strconcat (_tmp103_, _tmp106_, NULL); _tmp108_ = _tmp107_; _tmp109_ = vala_ccode_identifier_new (_tmp108_); _tmp110_ = _tmp109_; _tmp111_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp110_); _tmp112_ = _tmp111_; vala_ccode_initializer_list_append (_tmp96_, (ValaCCodeExpression*) _tmp112_); _vala_ccode_node_unref0 (_tmp112_); _vala_ccode_node_unref0 (_tmp110_); _g_free0 (_tmp108_); _g_free0 (_tmp103_); _g_free0 (_tmp101_); _g_free0 (_tmp99_); _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (info); _vala_code_node_unref0 (prop); } _vala_iterable_unref0 (_prop_list); } _tmp113_ = infos; _tmp114_ = vala_ccode_constant_new ("NULL"); _tmp115_ = _tmp114_; vala_ccode_initializer_list_append (_tmp113_, (ValaCCodeExpression*) _tmp115_); _vala_ccode_node_unref0 (_tmp115_); _tmp116_ = vala_ccode_declaration_new ("const GDBusPropertyInfo * const"); _cdecl_ = _tmp116_; _tmp117_ = sym; _tmp118_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp117_); _tmp119_ = _tmp118_; _tmp120_ = g_strconcat ("_", _tmp119_, NULL); _tmp121_ = _tmp120_; _tmp122_ = g_strconcat (_tmp121_, "dbus_property_info[]", NULL); _tmp123_ = _tmp122_; _tmp124_ = infos; _tmp125_ = vala_ccode_variable_declarator_new (_tmp123_, (ValaCCodeExpression*) _tmp124_, NULL); _tmp126_ = _tmp125_; vala_ccode_declaration_add_declarator (_cdecl_, (ValaCCodeDeclarator*) _tmp126_); _vala_ccode_node_unref0 (_tmp126_); _g_free0 (_tmp123_); _g_free0 (_tmp121_); _g_free0 (_tmp119_); vala_ccode_declaration_set_modifiers (_cdecl_, VALA_CCODE_MODIFIERS_STATIC); _tmp127_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_constant_declaration (_tmp127_, (ValaCCodeNode*) _cdecl_); _tmp128_ = sym; _tmp129_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp128_); _tmp130_ = _tmp129_; _tmp131_ = g_strconcat ("_", _tmp130_, NULL); _tmp132_ = _tmp131_; _tmp133_ = g_strconcat (_tmp132_, "dbus_property_info", NULL); _tmp134_ = _tmp133_; _tmp135_ = vala_ccode_identifier_new (_tmp134_); _tmp136_ = (ValaCCodeExpression*) _tmp135_; _g_free0 (_tmp134_); _g_free0 (_tmp132_); _g_free0 (_tmp130_); result = _tmp136_; _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (infos); return result; } static ValaCCodeExpression* vala_gd_bus_server_module_get_interface_info (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaCCodeExpression* result = NULL; ValaCCodeInitializerList* _tmp0_; ValaCCodeInitializerList* info; ValaCCodeConstant* _tmp1_; ValaCCodeConstant* _tmp2_; ValaObjectTypeSymbol* _tmp3_; gchar* _tmp4_ = NULL; gchar* _tmp5_; gchar* _tmp6_ = NULL; gchar* _tmp7_; ValaCCodeConstant* _tmp8_; ValaCCodeConstant* _tmp9_; ValaObjectTypeSymbol* _tmp10_; ValaCCodeExpression* _tmp11_ = NULL; ValaCCodeExpression* _tmp12_; ValaCCodeUnaryExpression* _tmp13_; ValaCCodeUnaryExpression* _tmp14_; ValaCCodeCastExpression* _tmp15_; ValaCCodeCastExpression* _tmp16_; ValaObjectTypeSymbol* _tmp17_; ValaCCodeExpression* _tmp18_ = NULL; ValaCCodeExpression* _tmp19_; ValaCCodeUnaryExpression* _tmp20_; ValaCCodeUnaryExpression* _tmp21_; ValaCCodeCastExpression* _tmp22_; ValaCCodeCastExpression* _tmp23_; ValaObjectTypeSymbol* _tmp24_; ValaCCodeExpression* _tmp25_ = NULL; ValaCCodeExpression* _tmp26_; ValaCCodeUnaryExpression* _tmp27_; ValaCCodeUnaryExpression* _tmp28_; ValaCCodeCastExpression* _tmp29_; ValaCCodeCastExpression* _tmp30_; ValaCCodeDeclaration* _tmp31_; ValaCCodeDeclaration* _cdecl_; ValaObjectTypeSymbol* _tmp32_; gchar* _tmp33_ = NULL; gchar* _tmp34_; gchar* _tmp35_; gchar* _tmp36_; gchar* _tmp37_; gchar* _tmp38_; ValaCCodeVariableDeclarator* _tmp39_; ValaCCodeVariableDeclarator* _tmp40_; ValaCCodeFile* _tmp41_; ValaObjectTypeSymbol* _tmp42_; gchar* _tmp43_ = NULL; gchar* _tmp44_; gchar* _tmp45_; gchar* _tmp46_; gchar* _tmp47_; gchar* _tmp48_; ValaCCodeIdentifier* _tmp49_; ValaCCodeExpression* _tmp50_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = vala_ccode_initializer_list_new (); info = _tmp0_; _tmp1_ = vala_ccode_constant_new ("-1"); _tmp2_ = _tmp1_; vala_ccode_initializer_list_append (info, (ValaCCodeExpression*) _tmp2_); _vala_ccode_node_unref0 (_tmp2_); _tmp3_ = sym; _tmp4_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp3_); _tmp5_ = _tmp4_; _tmp6_ = g_strdup_printf ("\"%s\"", _tmp5_); _tmp7_ = _tmp6_; _tmp8_ = vala_ccode_constant_new (_tmp7_); _tmp9_ = _tmp8_; vala_ccode_initializer_list_append (info, (ValaCCodeExpression*) _tmp9_); _vala_ccode_node_unref0 (_tmp9_); _g_free0 (_tmp7_); _g_free0 (_tmp5_); _tmp10_ = sym; _tmp11_ = vala_gd_bus_server_module_get_method_info (self, _tmp10_); _tmp12_ = _tmp11_; _tmp13_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp12_); _tmp14_ = _tmp13_; _tmp15_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp14_, "GDBusMethodInfo **"); _tmp16_ = _tmp15_; vala_ccode_initializer_list_append (info, (ValaCCodeExpression*) _tmp16_); _vala_ccode_node_unref0 (_tmp16_); _vala_ccode_node_unref0 (_tmp14_); _vala_ccode_node_unref0 (_tmp12_); _tmp17_ = sym; _tmp18_ = vala_gd_bus_server_module_get_signal_info (self, _tmp17_); _tmp19_ = _tmp18_; _tmp20_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp19_); _tmp21_ = _tmp20_; _tmp22_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp21_, "GDBusSignalInfo **"); _tmp23_ = _tmp22_; vala_ccode_initializer_list_append (info, (ValaCCodeExpression*) _tmp23_); _vala_ccode_node_unref0 (_tmp23_); _vala_ccode_node_unref0 (_tmp21_); _vala_ccode_node_unref0 (_tmp19_); _tmp24_ = sym; _tmp25_ = vala_gd_bus_server_module_get_property_info (self, _tmp24_); _tmp26_ = _tmp25_; _tmp27_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp26_); _tmp28_ = _tmp27_; _tmp29_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp28_, "GDBusPropertyInfo **"); _tmp30_ = _tmp29_; vala_ccode_initializer_list_append (info, (ValaCCodeExpression*) _tmp30_); _vala_ccode_node_unref0 (_tmp30_); _vala_ccode_node_unref0 (_tmp28_); _vala_ccode_node_unref0 (_tmp26_); _tmp31_ = vala_ccode_declaration_new ("const GDBusInterfaceInfo"); _cdecl_ = _tmp31_; _tmp32_ = sym; _tmp33_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp32_); _tmp34_ = _tmp33_; _tmp35_ = g_strconcat ("_", _tmp34_, NULL); _tmp36_ = _tmp35_; _tmp37_ = g_strconcat (_tmp36_, "dbus_interface_info", NULL); _tmp38_ = _tmp37_; _tmp39_ = vala_ccode_variable_declarator_new (_tmp38_, (ValaCCodeExpression*) info, NULL); _tmp40_ = _tmp39_; vala_ccode_declaration_add_declarator (_cdecl_, (ValaCCodeDeclarator*) _tmp40_); _vala_ccode_node_unref0 (_tmp40_); _g_free0 (_tmp38_); _g_free0 (_tmp36_); _g_free0 (_tmp34_); vala_ccode_declaration_set_modifiers (_cdecl_, VALA_CCODE_MODIFIERS_STATIC); _tmp41_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_constant_declaration (_tmp41_, (ValaCCodeNode*) _cdecl_); _tmp42_ = sym; _tmp43_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp42_); _tmp44_ = _tmp43_; _tmp45_ = g_strconcat ("_", _tmp44_, NULL); _tmp46_ = _tmp45_; _tmp47_ = g_strconcat (_tmp46_, "dbus_interface_info", NULL); _tmp48_ = _tmp47_; _tmp49_ = vala_ccode_identifier_new (_tmp48_); _tmp50_ = (ValaCCodeExpression*) _tmp49_; _g_free0 (_tmp48_); _g_free0 (_tmp46_); _g_free0 (_tmp44_); result = _tmp50_; _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (info); return result; } static ValaCCodeExpression* vala_gd_bus_server_module_get_interface_vtable (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaCCodeExpression* result = NULL; ValaCCodeInitializerList* _tmp0_; ValaCCodeInitializerList* vtable; ValaObjectTypeSymbol* _tmp1_; gchar* _tmp2_ = NULL; gchar* _tmp3_; gchar* _tmp4_; gchar* _tmp5_; ValaCCodeIdentifier* _tmp6_; ValaCCodeIdentifier* _tmp7_; ValaObjectTypeSymbol* _tmp8_; gchar* _tmp9_ = NULL; gchar* _tmp10_; gchar* _tmp11_; gchar* _tmp12_; ValaCCodeIdentifier* _tmp13_; ValaCCodeIdentifier* _tmp14_; ValaObjectTypeSymbol* _tmp15_; gchar* _tmp16_ = NULL; gchar* _tmp17_; gchar* _tmp18_; gchar* _tmp19_; ValaCCodeIdentifier* _tmp20_; ValaCCodeIdentifier* _tmp21_; ValaObjectTypeSymbol* _tmp22_; ValaObjectTypeSymbol* _tmp23_; ValaObjectTypeSymbol* _tmp24_; ValaCCodeDeclaration* _tmp25_; ValaCCodeDeclaration* _cdecl_; ValaObjectTypeSymbol* _tmp26_; gchar* _tmp27_ = NULL; gchar* _tmp28_; gchar* _tmp29_; gchar* _tmp30_; gchar* _tmp31_; gchar* _tmp32_; ValaCCodeVariableDeclarator* _tmp33_; ValaCCodeVariableDeclarator* _tmp34_; ValaCCodeFile* _tmp35_; ValaObjectTypeSymbol* _tmp36_; gchar* _tmp37_ = NULL; gchar* _tmp38_; gchar* _tmp39_; gchar* _tmp40_; gchar* _tmp41_; gchar* _tmp42_; ValaCCodeIdentifier* _tmp43_; ValaCCodeExpression* _tmp44_; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (sym != NULL, NULL); _tmp0_ = vala_ccode_initializer_list_new (); vtable = _tmp0_; _tmp1_ = sym; _tmp2_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp1_); _tmp3_ = _tmp2_; _tmp4_ = g_strconcat (_tmp3_, "dbus_interface_method_call", NULL); _tmp5_ = _tmp4_; _tmp6_ = vala_ccode_identifier_new (_tmp5_); _tmp7_ = _tmp6_; vala_ccode_initializer_list_append (vtable, (ValaCCodeExpression*) _tmp7_); _vala_ccode_node_unref0 (_tmp7_); _g_free0 (_tmp5_); _g_free0 (_tmp3_); _tmp8_ = sym; _tmp9_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp8_); _tmp10_ = _tmp9_; _tmp11_ = g_strconcat (_tmp10_, "dbus_interface_get_property", NULL); _tmp12_ = _tmp11_; _tmp13_ = vala_ccode_identifier_new (_tmp12_); _tmp14_ = _tmp13_; vala_ccode_initializer_list_append (vtable, (ValaCCodeExpression*) _tmp14_); _vala_ccode_node_unref0 (_tmp14_); _g_free0 (_tmp12_); _g_free0 (_tmp10_); _tmp15_ = sym; _tmp16_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp15_); _tmp17_ = _tmp16_; _tmp18_ = g_strconcat (_tmp17_, "dbus_interface_set_property", NULL); _tmp19_ = _tmp18_; _tmp20_ = vala_ccode_identifier_new (_tmp19_); _tmp21_ = _tmp20_; vala_ccode_initializer_list_append (vtable, (ValaCCodeExpression*) _tmp21_); _vala_ccode_node_unref0 (_tmp21_); _g_free0 (_tmp19_); _g_free0 (_tmp17_); _tmp22_ = sym; vala_gd_bus_server_module_generate_interface_method_call_function (self, _tmp22_); _tmp23_ = sym; vala_gd_bus_server_module_generate_interface_get_property_function (self, _tmp23_); _tmp24_ = sym; vala_gd_bus_server_module_generate_interface_set_property_function (self, _tmp24_); _tmp25_ = vala_ccode_declaration_new ("const GDBusInterfaceVTable"); _cdecl_ = _tmp25_; _tmp26_ = sym; _tmp27_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp26_); _tmp28_ = _tmp27_; _tmp29_ = g_strconcat ("_", _tmp28_, NULL); _tmp30_ = _tmp29_; _tmp31_ = g_strconcat (_tmp30_, "dbus_interface_vtable", NULL); _tmp32_ = _tmp31_; _tmp33_ = vala_ccode_variable_declarator_new (_tmp32_, (ValaCCodeExpression*) vtable, NULL); _tmp34_ = _tmp33_; vala_ccode_declaration_add_declarator (_cdecl_, (ValaCCodeDeclarator*) _tmp34_); _vala_ccode_node_unref0 (_tmp34_); _g_free0 (_tmp32_); _g_free0 (_tmp30_); _g_free0 (_tmp28_); vala_ccode_declaration_set_modifiers (_cdecl_, VALA_CCODE_MODIFIERS_STATIC); _tmp35_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_constant_declaration (_tmp35_, (ValaCCodeNode*) _cdecl_); _tmp36_ = sym; _tmp37_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp36_); _tmp38_ = _tmp37_; _tmp39_ = g_strconcat ("_", _tmp38_, NULL); _tmp40_ = _tmp39_; _tmp41_ = g_strconcat (_tmp40_, "dbus_interface_vtable", NULL); _tmp42_ = _tmp41_; _tmp43_ = vala_ccode_identifier_new (_tmp42_); _tmp44_ = (ValaCCodeExpression*) _tmp43_; _g_free0 (_tmp42_); _g_free0 (_tmp40_); _g_free0 (_tmp38_); result = _tmp44_; _vala_ccode_node_unref0 (_cdecl_); _vala_ccode_node_unref0 (vtable); return result; } static gchar* vala_gd_bus_server_module_generate_register_object_function (ValaGDBusServerModule* self) { gchar* result = NULL; gchar* _tmp0_; gchar* register_object_func; const gchar* _tmp1_; gboolean _tmp2_ = FALSE; ValaCCodeFile* _tmp3_; const gchar* _tmp4_; ValaCCodeFunction* _tmp5_; ValaCCodeFunction* function; ValaCCodeFunction* _tmp6_; ValaCCodeFunction* _tmp7_; ValaCCodeParameter* _tmp8_; ValaCCodeParameter* _tmp9_; ValaCCodeFunction* _tmp10_; ValaCCodeParameter* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeFunction* _tmp13_; ValaCCodeParameter* _tmp14_; ValaCCodeParameter* _tmp15_; ValaCCodeFunction* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeParameter* _tmp18_; ValaCCodeFunction* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeParameter* _tmp21_; ValaCCodeFunction* _tmp22_; ValaCCodeIdentifier* _tmp23_; ValaCCodeIdentifier* _tmp24_; ValaCCodeFunctionCall* _tmp25_; ValaCCodeFunctionCall* _tmp26_; ValaCCodeFunctionCall* quark; ValaCCodeFunctionCall* _tmp27_; ValaCCodeConstant* _tmp28_; ValaCCodeConstant* _tmp29_; ValaCCodeIdentifier* _tmp30_; ValaCCodeIdentifier* _tmp31_; ValaCCodeFunctionCall* _tmp32_; ValaCCodeFunctionCall* _tmp33_; ValaCCodeFunctionCall* get_qdata; ValaCCodeFunctionCall* _tmp34_; ValaCCodeIdentifier* _tmp35_; ValaCCodeIdentifier* _tmp36_; ValaCCodeFunctionCall* _tmp37_; ValaCCodeFunctionCall* _tmp38_; ValaCCodeFunction* _tmp39_; ValaCCodeFunction* _tmp40_; ValaCCodeVariableDeclarator* _tmp41_; ValaCCodeVariableDeclarator* _tmp42_; ValaCCodeFunction* _tmp43_; ValaCCodeFunction* _tmp44_; ValaCCodeIdentifier* _tmp45_; ValaCCodeIdentifier* _tmp46_; ValaCCodeFunctionCall* _tmp47_; ValaCCodeFunction* _tmp48_; ValaCCodeFunction* _tmp49_; ValaCCodeIdentifier* _tmp50_; ValaCCodeIdentifier* _tmp51_; ValaCCodeUnaryExpression* _tmp52_; ValaCCodeUnaryExpression* _tmp53_; ValaCCodeIdentifier* _tmp54_; ValaCCodeIdentifier* _tmp55_; ValaCCodeFunctionCall* _tmp56_; ValaCCodeFunctionCall* _tmp57_; ValaCCodeFunctionCall* set_error; ValaCCodeFunctionCall* _tmp58_; ValaCCodeIdentifier* _tmp59_; ValaCCodeIdentifier* _tmp60_; ValaCCodeFunctionCall* _tmp61_; ValaCCodeIdentifier* _tmp62_; ValaCCodeIdentifier* _tmp63_; ValaCCodeFunctionCall* _tmp64_; ValaCCodeIdentifier* _tmp65_; ValaCCodeIdentifier* _tmp66_; ValaCCodeFunctionCall* _tmp67_; ValaCCodeConstant* _tmp68_; ValaCCodeConstant* _tmp69_; ValaCCodeFunction* _tmp70_; ValaCCodeFunction* _tmp71_; ValaCCodeFunctionCall* _tmp72_; ValaCCodeFunction* _tmp73_; ValaCCodeFunction* _tmp74_; ValaCCodeConstant* _tmp75_; ValaCCodeConstant* _tmp76_; ValaCCodeFunction* _tmp77_; ValaCCodeFunction* _tmp78_; ValaCCodeIdentifier* _tmp79_; ValaCCodeIdentifier* _tmp80_; ValaCCodeCastExpression* _tmp81_; ValaCCodeCastExpression* _tmp82_; ValaCCodeCastExpression* register_object; ValaCCodeCastExpression* _tmp83_; ValaCCodeFunctionCall* _tmp84_; ValaCCodeFunctionCall* ccall; ValaCCodeFunctionCall* _tmp85_; ValaCCodeIdentifier* _tmp86_; ValaCCodeIdentifier* _tmp87_; ValaCCodeFunctionCall* _tmp88_; ValaCCodeIdentifier* _tmp89_; ValaCCodeIdentifier* _tmp90_; ValaCCodeFunctionCall* _tmp91_; ValaCCodeIdentifier* _tmp92_; ValaCCodeIdentifier* _tmp93_; ValaCCodeFunctionCall* _tmp94_; ValaCCodeIdentifier* _tmp95_; ValaCCodeIdentifier* _tmp96_; ValaCCodeFunction* _tmp97_; ValaCCodeFunction* _tmp98_; ValaCCodeFunctionCall* _tmp99_; ValaCCodeFile* _tmp100_; ValaCCodeFunction* _tmp101_; ValaCCodeFile* _tmp102_; ValaCCodeFunction* _tmp103_; g_return_val_if_fail (self != NULL, NULL); _tmp0_ = g_strdup ("_vala_g_dbus_connection_register_object"); register_object_func = _tmp0_; _tmp1_ = register_object_func; _tmp2_ = vala_ccode_base_module_add_wrapper ((ValaCCodeBaseModule*) self, _tmp1_); if (!_tmp2_) { result = register_object_func; return result; } _tmp3_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp3_, "gio/gio.h", FALSE); _tmp4_ = register_object_func; _tmp5_ = vala_ccode_function_new (_tmp4_, "guint"); function = _tmp5_; _tmp6_ = function; vala_ccode_function_set_modifiers (_tmp6_, VALA_CCODE_MODIFIERS_STATIC); _tmp7_ = function; _tmp8_ = vala_ccode_parameter_new ("type", "GType"); _tmp9_ = _tmp8_; vala_ccode_function_add_parameter (_tmp7_, _tmp9_); _vala_ccode_node_unref0 (_tmp9_); _tmp10_ = function; _tmp11_ = vala_ccode_parameter_new ("object", "void*"); _tmp12_ = _tmp11_; vala_ccode_function_add_parameter (_tmp10_, _tmp12_); _vala_ccode_node_unref0 (_tmp12_); _tmp13_ = function; _tmp14_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp15_ = _tmp14_; vala_ccode_function_add_parameter (_tmp13_, _tmp15_); _vala_ccode_node_unref0 (_tmp15_); _tmp16_ = function; _tmp17_ = vala_ccode_parameter_new ("path", "const gchar*"); _tmp18_ = _tmp17_; vala_ccode_function_add_parameter (_tmp16_, _tmp18_); _vala_ccode_node_unref0 (_tmp18_); _tmp19_ = function; _tmp20_ = vala_ccode_parameter_new ("error", "GError**"); _tmp21_ = _tmp20_; vala_ccode_function_add_parameter (_tmp19_, _tmp21_); _vala_ccode_node_unref0 (_tmp21_); _tmp22_ = function; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp22_); _tmp23_ = vala_ccode_identifier_new ("g_quark_from_static_string"); _tmp24_ = _tmp23_; _tmp25_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp24_); _tmp26_ = _tmp25_; _vala_ccode_node_unref0 (_tmp24_); quark = _tmp26_; _tmp27_ = quark; _tmp28_ = vala_ccode_constant_new ("\"vala-dbus-register-object\""); _tmp29_ = _tmp28_; vala_ccode_function_call_add_argument (_tmp27_, (ValaCCodeExpression*) _tmp29_); _vala_ccode_node_unref0 (_tmp29_); _tmp30_ = vala_ccode_identifier_new ("g_type_get_qdata"); _tmp31_ = _tmp30_; _tmp32_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp31_); _tmp33_ = _tmp32_; _vala_ccode_node_unref0 (_tmp31_); get_qdata = _tmp33_; _tmp34_ = get_qdata; _tmp35_ = vala_ccode_identifier_new ("type"); _tmp36_ = _tmp35_; vala_ccode_function_call_add_argument (_tmp34_, (ValaCCodeExpression*) _tmp36_); _vala_ccode_node_unref0 (_tmp36_); _tmp37_ = get_qdata; _tmp38_ = quark; vala_ccode_function_call_add_argument (_tmp37_, (ValaCCodeExpression*) _tmp38_); _tmp39_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp40_ = _tmp39_; _tmp41_ = vala_ccode_variable_declarator_new ("*func", NULL, NULL); _tmp42_ = _tmp41_; vala_ccode_function_add_declaration (_tmp40_, "void", (ValaCCodeDeclarator*) _tmp42_, 0); _vala_ccode_node_unref0 (_tmp42_); _tmp43_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp44_ = _tmp43_; _tmp45_ = vala_ccode_identifier_new ("func"); _tmp46_ = _tmp45_; _tmp47_ = get_qdata; vala_ccode_function_add_assignment (_tmp44_, (ValaCCodeExpression*) _tmp46_, (ValaCCodeExpression*) _tmp47_); _vala_ccode_node_unref0 (_tmp46_); _tmp48_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_identifier_new ("func"); _tmp51_ = _tmp50_; _tmp52_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_LOGICAL_NEGATION, (ValaCCodeExpression*) _tmp51_); _tmp53_ = _tmp52_; vala_ccode_function_open_if (_tmp49_, (ValaCCodeExpression*) _tmp53_); _vala_ccode_node_unref0 (_tmp53_); _vala_ccode_node_unref0 (_tmp51_); _tmp54_ = vala_ccode_identifier_new ("g_set_error_literal"); _tmp55_ = _tmp54_; _tmp56_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp55_); _tmp57_ = _tmp56_; _vala_ccode_node_unref0 (_tmp55_); set_error = _tmp57_; _tmp58_ = set_error; _tmp59_ = vala_ccode_identifier_new ("error"); _tmp60_ = _tmp59_; vala_ccode_function_call_add_argument (_tmp58_, (ValaCCodeExpression*) _tmp60_); _vala_ccode_node_unref0 (_tmp60_); _tmp61_ = set_error; _tmp62_ = vala_ccode_identifier_new ("G_IO_ERROR"); _tmp63_ = _tmp62_; vala_ccode_function_call_add_argument (_tmp61_, (ValaCCodeExpression*) _tmp63_); _vala_ccode_node_unref0 (_tmp63_); _tmp64_ = set_error; _tmp65_ = vala_ccode_identifier_new ("G_IO_ERROR_FAILED"); _tmp66_ = _tmp65_; vala_ccode_function_call_add_argument (_tmp64_, (ValaCCodeExpression*) _tmp66_); _vala_ccode_node_unref0 (_tmp66_); _tmp67_ = set_error; _tmp68_ = vala_ccode_constant_new ("\"The specified type does not support D-Bus registration\""); _tmp69_ = _tmp68_; vala_ccode_function_call_add_argument (_tmp67_, (ValaCCodeExpression*) _tmp69_); _vala_ccode_node_unref0 (_tmp69_); _tmp70_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp71_ = _tmp70_; _tmp72_ = set_error; vala_ccode_function_add_expression (_tmp71_, (ValaCCodeExpression*) _tmp72_); _tmp73_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp74_ = _tmp73_; _tmp75_ = vala_ccode_constant_new ("0"); _tmp76_ = _tmp75_; vala_ccode_function_add_return (_tmp74_, (ValaCCodeExpression*) _tmp76_); _vala_ccode_node_unref0 (_tmp76_); _tmp77_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp78_ = _tmp77_; vala_ccode_function_close (_tmp78_); _tmp79_ = vala_ccode_identifier_new ("func"); _tmp80_ = _tmp79_; _tmp81_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp80_, "guint (*) (void *, GDBusConnection *, const gchar *, GError **)"); _tmp82_ = _tmp81_; _vala_ccode_node_unref0 (_tmp80_); register_object = _tmp82_; _tmp83_ = register_object; _tmp84_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp83_); ccall = _tmp84_; _tmp85_ = ccall; _tmp86_ = vala_ccode_identifier_new ("object"); _tmp87_ = _tmp86_; vala_ccode_function_call_add_argument (_tmp85_, (ValaCCodeExpression*) _tmp87_); _vala_ccode_node_unref0 (_tmp87_); _tmp88_ = ccall; _tmp89_ = vala_ccode_identifier_new ("connection"); _tmp90_ = _tmp89_; vala_ccode_function_call_add_argument (_tmp88_, (ValaCCodeExpression*) _tmp90_); _vala_ccode_node_unref0 (_tmp90_); _tmp91_ = ccall; _tmp92_ = vala_ccode_identifier_new ("path"); _tmp93_ = _tmp92_; vala_ccode_function_call_add_argument (_tmp91_, (ValaCCodeExpression*) _tmp93_); _vala_ccode_node_unref0 (_tmp93_); _tmp94_ = ccall; _tmp95_ = vala_ccode_identifier_new ("error"); _tmp96_ = _tmp95_; vala_ccode_function_call_add_argument (_tmp94_, (ValaCCodeExpression*) _tmp96_); _vala_ccode_node_unref0 (_tmp96_); _tmp97_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp98_ = _tmp97_; _tmp99_ = ccall; vala_ccode_function_add_return (_tmp98_, (ValaCCodeExpression*) _tmp99_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp100_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp101_ = function; vala_ccode_file_add_function_declaration (_tmp100_, _tmp101_); _tmp102_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp103_ = function; vala_ccode_file_add_function (_tmp102_, _tmp103_); result = register_object_func; _vala_ccode_node_unref0 (ccall); _vala_ccode_node_unref0 (register_object); _vala_ccode_node_unref0 (set_error); _vala_ccode_node_unref0 (get_qdata); _vala_ccode_node_unref0 (quark); _vala_ccode_node_unref0 (function); return result; } static void vala_gd_bus_server_module_real_visit_method_call (ValaCodeVisitor* base, ValaMethodCall* expr) { ValaGDBusServerModule * self; ValaMethodCall* _tmp0_; ValaExpression* _tmp1_; ValaExpression* _tmp2_; ValaDataType* _tmp3_; ValaDataType* _tmp4_; ValaMethodType* _tmp5_; ValaMethodType* mtype; gboolean _tmp6_ = FALSE; ValaMethodType* _tmp7_; gboolean _tmp13_; ValaMethodCall* _tmp15_; ValaExpression* _tmp16_; ValaExpression* _tmp17_; ValaMemberAccess* _tmp18_; ValaMemberAccess* ma; ValaMemberAccess* _tmp19_; ValaList* _tmp20_ = NULL; ValaList* _tmp21_; gpointer _tmp22_ = NULL; ValaDataType* _tmp23_; ValaDataType* type_arg; ValaCCodeFunctionCall* cregister = NULL; ValaDataType* _tmp24_; ValaObjectType* _tmp25_; ValaObjectType* object_type; ValaObjectType* _tmp26_; ValaMethodCall* _tmp55_; ValaList* _tmp56_ = NULL; ValaList* args; ValaList* _tmp57_; gpointer _tmp58_ = NULL; ValaExpression* path_arg; ValaList* _tmp59_; gpointer _tmp60_ = NULL; ValaExpression* obj_arg; ValaCCodeFunctionCall* _tmp61_; ValaExpression* _tmp62_; ValaCCodeExpression* _tmp63_ = NULL; ValaCCodeExpression* _tmp64_; ValaCCodeFunctionCall* _tmp65_; ValaMemberAccess* _tmp66_; ValaExpression* _tmp67_; ValaExpression* _tmp68_; ValaCCodeExpression* _tmp69_ = NULL; ValaCCodeExpression* _tmp70_; ValaCCodeFunctionCall* _tmp71_; ValaExpression* _tmp72_; ValaCCodeExpression* _tmp73_ = NULL; ValaCCodeExpression* _tmp74_; ValaCCodeFunctionCall* _tmp75_; ValaCCodeExpression* _tmp76_ = NULL; ValaCCodeExpression* _tmp77_; ValaCCodeUnaryExpression* _tmp78_; ValaCCodeUnaryExpression* _tmp79_; ValaMethodCall* _tmp80_; ValaCodeNode* _tmp81_; ValaCodeNode* _tmp82_; self = (ValaGDBusServerModule*) base; g_return_if_fail (expr != NULL); _tmp0_ = expr; _tmp1_ = vala_method_call_get_call (_tmp0_); _tmp2_ = _tmp1_; _tmp3_ = vala_expression_get_value_type (_tmp2_); _tmp4_ = _tmp3_; _tmp5_ = _vala_code_node_ref0 (VALA_IS_METHOD_TYPE (_tmp4_) ? ((ValaMethodType*) _tmp4_) : NULL); mtype = _tmp5_; _tmp7_ = mtype; if (_tmp7_ == NULL) { _tmp6_ = TRUE; } else { ValaMethodType* _tmp8_; ValaMethod* _tmp9_; ValaMethod* _tmp10_; gchar* _tmp11_ = NULL; gchar* _tmp12_; _tmp8_ = mtype; _tmp9_ = vala_method_type_get_method_symbol (_tmp8_); _tmp10_ = _tmp9_; _tmp11_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp10_); _tmp12_ = _tmp11_; _tmp6_ = g_strcmp0 (_tmp12_, "g_dbus_connection_register_object") != 0; _g_free0 (_tmp12_); } _tmp13_ = _tmp6_; if (_tmp13_) { ValaMethodCall* _tmp14_; _tmp14_ = expr; VALA_CODE_VISITOR_CLASS (vala_gd_bus_server_module_parent_class)->visit_method_call ((ValaCodeVisitor*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp14_); _vala_code_node_unref0 (mtype); return; } _tmp15_ = expr; _tmp16_ = vala_method_call_get_call (_tmp15_); _tmp17_ = _tmp16_; _tmp18_ = _vala_code_node_ref0 (VALA_MEMBER_ACCESS (_tmp17_)); ma = _tmp18_; _tmp19_ = ma; _tmp20_ = vala_member_access_get_type_arguments (_tmp19_); _tmp21_ = _tmp20_; _tmp22_ = vala_list_get (_tmp21_, 0); _tmp23_ = (ValaDataType*) _tmp22_; _vala_iterable_unref0 (_tmp21_); type_arg = _tmp23_; _tmp24_ = type_arg; _tmp25_ = _vala_code_node_ref0 (VALA_IS_OBJECT_TYPE (_tmp24_) ? ((ValaObjectType*) _tmp24_) : NULL); object_type = _tmp25_; _tmp26_ = object_type; if (_tmp26_ != NULL) { ValaObjectType* _tmp27_; ValaObjectTypeSymbol* _tmp28_; ValaObjectTypeSymbol* _tmp29_; gchar* _tmp30_ = NULL; gchar* _tmp31_; gboolean _tmp32_; ValaObjectType* _tmp36_; ValaObjectTypeSymbol* _tmp37_; ValaObjectTypeSymbol* _tmp38_; gchar* _tmp39_ = NULL; gchar* _tmp40_; gchar* _tmp41_ = NULL; gchar* _tmp42_; ValaCCodeIdentifier* _tmp43_; ValaCCodeIdentifier* _tmp44_; ValaCCodeFunctionCall* _tmp45_; _tmp27_ = object_type; _tmp28_ = vala_object_type_get_type_symbol (_tmp27_); _tmp29_ = _tmp28_; _tmp30_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp29_); _tmp31_ = _tmp30_; _tmp32_ = _tmp31_ == NULL; _g_free0 (_tmp31_); if (_tmp32_) { ValaMethodCall* _tmp33_; ValaSourceReference* _tmp34_; ValaSourceReference* _tmp35_; _tmp33_ = expr; _tmp34_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp33_); _tmp35_ = _tmp34_; vala_report_error (_tmp35_, "DBusConnection.register_object requires type argument with [DBus (name" \ " = ...)] attribute"); _vala_code_node_unref0 (object_type); _vala_ccode_node_unref0 (cregister); _vala_code_node_unref0 (type_arg); _vala_code_node_unref0 (ma); _vala_code_node_unref0 (mtype); return; } _tmp36_ = object_type; _tmp37_ = vala_object_type_get_type_symbol (_tmp36_); _tmp38_ = _tmp37_; _tmp39_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp38_); _tmp40_ = _tmp39_; _tmp41_ = g_strdup_printf ("%sregister_object", _tmp40_); _tmp42_ = _tmp41_; _tmp43_ = vala_ccode_identifier_new (_tmp42_); _tmp44_ = _tmp43_; _tmp45_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp44_); _vala_ccode_node_unref0 (cregister); cregister = _tmp45_; _vala_ccode_node_unref0 (_tmp44_); _g_free0 (_tmp42_); _g_free0 (_tmp40_); } else { gchar* _tmp46_ = NULL; gchar* _tmp47_; ValaCCodeIdentifier* _tmp48_; ValaCCodeIdentifier* _tmp49_; ValaCCodeFunctionCall* _tmp50_; ValaCCodeFunctionCall* _tmp51_; ValaDataType* _tmp52_; ValaCCodeExpression* _tmp53_ = NULL; ValaCCodeExpression* _tmp54_; _tmp46_ = vala_gd_bus_server_module_generate_register_object_function (self); _tmp47_ = _tmp46_; _tmp48_ = vala_ccode_identifier_new (_tmp47_); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp49_); _vala_ccode_node_unref0 (cregister); cregister = _tmp50_; _vala_ccode_node_unref0 (_tmp49_); _g_free0 (_tmp47_); _tmp51_ = cregister; _tmp52_ = type_arg; _tmp53_ = vala_ccode_base_module_get_type_id_expression ((ValaCCodeBaseModule*) self, _tmp52_, FALSE); _tmp54_ = _tmp53_; vala_ccode_function_call_add_argument (_tmp51_, _tmp54_); _vala_ccode_node_unref0 (_tmp54_); } _tmp55_ = expr; _tmp56_ = vala_method_call_get_argument_list (_tmp55_); args = _tmp56_; _tmp57_ = args; _tmp58_ = vala_list_get (_tmp57_, 0); path_arg = (ValaExpression*) _tmp58_; _tmp59_ = args; _tmp60_ = vala_list_get (_tmp59_, 1); obj_arg = (ValaExpression*) _tmp60_; vala_ccode_base_module_set_current_method_inner_error ((ValaCCodeBaseModule*) self, TRUE); _tmp61_ = cregister; _tmp62_ = obj_arg; _tmp63_ = vala_ccode_base_module_get_cvalue ((ValaCCodeBaseModule*) self, _tmp62_); _tmp64_ = _tmp63_; vala_ccode_function_call_add_argument (_tmp61_, _tmp64_); _vala_ccode_node_unref0 (_tmp64_); _tmp65_ = cregister; _tmp66_ = ma; _tmp67_ = vala_member_access_get_inner (_tmp66_); _tmp68_ = _tmp67_; _tmp69_ = vala_ccode_base_module_get_cvalue ((ValaCCodeBaseModule*) self, _tmp68_); _tmp70_ = _tmp69_; vala_ccode_function_call_add_argument (_tmp65_, _tmp70_); _vala_ccode_node_unref0 (_tmp70_); _tmp71_ = cregister; _tmp72_ = path_arg; _tmp73_ = vala_ccode_base_module_get_cvalue ((ValaCCodeBaseModule*) self, _tmp72_); _tmp74_ = _tmp73_; vala_ccode_function_call_add_argument (_tmp71_, _tmp74_); _vala_ccode_node_unref0 (_tmp74_); _tmp75_ = cregister; _tmp76_ = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, "_inner_error_"); _tmp77_ = _tmp76_; _tmp78_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp77_); _tmp79_ = _tmp78_; vala_ccode_function_call_add_argument (_tmp75_, (ValaCCodeExpression*) _tmp79_); _vala_ccode_node_unref0 (_tmp79_); _vala_ccode_node_unref0 (_tmp77_); _tmp80_ = expr; _tmp81_ = vala_code_node_get_parent_node ((ValaCodeNode*) _tmp80_); _tmp82_ = _tmp81_; if (VALA_IS_EXPRESSION_STATEMENT (_tmp82_)) { ValaCCodeFunction* _tmp83_; ValaCCodeFunction* _tmp84_; ValaCCodeFunctionCall* _tmp85_; _tmp83_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp84_ = _tmp83_; _tmp85_ = cregister; vala_ccode_function_add_expression (_tmp84_, (ValaCCodeExpression*) _tmp85_); } else { ValaMethodCall* _tmp86_; ValaDataType* _tmp87_; ValaDataType* _tmp88_; ValaMethodCall* _tmp89_; ValaDataType* _tmp90_; ValaDataType* _tmp91_; gboolean _tmp92_; gboolean _tmp93_; ValaLocalVariable* _tmp94_ = NULL; ValaLocalVariable* temp_var; ValaLocalVariable* _tmp95_; const gchar* _tmp96_; const gchar* _tmp97_; ValaCCodeExpression* _tmp98_ = NULL; ValaCCodeExpression* temp_ref; ValaLocalVariable* _tmp99_; ValaCCodeFunction* _tmp100_; ValaCCodeFunction* _tmp101_; ValaCCodeExpression* _tmp102_; ValaCCodeFunctionCall* _tmp103_; ValaMethodCall* _tmp104_; ValaCCodeExpression* _tmp105_; _tmp86_ = expr; _tmp87_ = vala_expression_get_value_type ((ValaExpression*) _tmp86_); _tmp88_ = _tmp87_; _tmp89_ = expr; _tmp90_ = vala_expression_get_value_type ((ValaExpression*) _tmp89_); _tmp91_ = _tmp90_; _tmp92_ = vala_data_type_get_value_owned (_tmp91_); _tmp93_ = _tmp92_; _tmp94_ = vala_ccode_base_module_get_temp_variable ((ValaCCodeBaseModule*) self, _tmp88_, _tmp93_, NULL, TRUE); temp_var = _tmp94_; _tmp95_ = temp_var; _tmp96_ = vala_symbol_get_name ((ValaSymbol*) _tmp95_); _tmp97_ = _tmp96_; _tmp98_ = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, _tmp97_); temp_ref = _tmp98_; _tmp99_ = temp_var; vala_ccode_base_module_emit_temp_var ((ValaCCodeBaseModule*) self, _tmp99_); _tmp100_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp101_ = _tmp100_; _tmp102_ = temp_ref; _tmp103_ = cregister; vala_ccode_function_add_assignment (_tmp101_, _tmp102_, (ValaCCodeExpression*) _tmp103_); _tmp104_ = expr; _tmp105_ = temp_ref; vala_ccode_base_module_set_cvalue ((ValaCCodeBaseModule*) self, (ValaExpression*) _tmp104_, _tmp105_); _vala_ccode_node_unref0 (temp_ref); _vala_code_node_unref0 (temp_var); } _vala_code_node_unref0 (obj_arg); _vala_code_node_unref0 (path_arg); _vala_iterable_unref0 (args); _vala_code_node_unref0 (object_type); _vala_ccode_node_unref0 (cregister); _vala_code_node_unref0 (type_arg); _vala_code_node_unref0 (ma); _vala_code_node_unref0 (mtype); } static void vala_gd_bus_server_module_real_generate_class_declaration (ValaCCodeBaseModule* base, ValaClass* cl, ValaCCodeFile* decl_space) { ValaGDBusServerModule * self; ValaClass* _tmp0_; ValaCCodeFile* _tmp1_; ValaClass* _tmp2_; ValaCCodeFile* _tmp3_; self = (ValaGDBusServerModule*) base; g_return_if_fail (cl != NULL); g_return_if_fail (decl_space != NULL); _tmp0_ = cl; _tmp1_ = decl_space; VALA_CCODE_BASE_MODULE_CLASS (vala_gd_bus_server_module_parent_class)->generate_class_declaration ((ValaCCodeBaseModule*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp0_, _tmp1_); _tmp2_ = cl; _tmp3_ = decl_space; vala_gd_bus_server_module_generate_object_type_symbol_declaration (self, (ValaObjectTypeSymbol*) _tmp2_, _tmp3_); } static void vala_gd_bus_server_module_real_generate_interface_declaration (ValaCCodeBaseModule* base, ValaInterface* iface, ValaCCodeFile* decl_space) { ValaGDBusServerModule * self; ValaInterface* _tmp0_; ValaCCodeFile* _tmp1_; ValaInterface* _tmp2_; ValaCCodeFile* _tmp3_; self = (ValaGDBusServerModule*) base; g_return_if_fail (iface != NULL); g_return_if_fail (decl_space != NULL); _tmp0_ = iface; _tmp1_ = decl_space; VALA_CCODE_BASE_MODULE_CLASS (vala_gd_bus_server_module_parent_class)->generate_interface_declaration ((ValaCCodeBaseModule*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp0_, _tmp1_); _tmp2_ = iface; _tmp3_ = decl_space; vala_gd_bus_server_module_generate_object_type_symbol_declaration (self, (ValaObjectTypeSymbol*) _tmp2_, _tmp3_); } static void vala_gd_bus_server_module_real_visit_class (ValaCodeVisitor* base, ValaClass* cl) { ValaGDBusServerModule * self; ValaClass* _tmp0_; ValaClass* _tmp1_; self = (ValaGDBusServerModule*) base; g_return_if_fail (cl != NULL); _tmp0_ = cl; VALA_CODE_VISITOR_CLASS (vala_gd_bus_server_module_parent_class)->visit_class ((ValaCodeVisitor*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp0_); _tmp1_ = cl; vala_gd_bus_server_module_visit_object_type_symbol (self, (ValaObjectTypeSymbol*) _tmp1_); } static void vala_gd_bus_server_module_real_visit_interface (ValaCodeVisitor* base, ValaInterface* iface) { ValaGDBusServerModule * self; ValaInterface* _tmp0_; ValaInterface* _tmp1_; self = (ValaGDBusServerModule*) base; g_return_if_fail (iface != NULL); _tmp0_ = iface; VALA_CODE_VISITOR_CLASS (vala_gd_bus_server_module_parent_class)->visit_interface ((ValaCodeVisitor*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp0_); _tmp1_ = iface; vala_gd_bus_server_module_visit_object_type_symbol (self, (ValaObjectTypeSymbol*) _tmp1_); } static void vala_gd_bus_server_module_generate_object_type_symbol_declaration (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym, ValaCCodeFile* decl_space) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* dbus_iface_name; const gchar* _tmp2_; ValaObjectTypeSymbol* _tmp3_; gchar* _tmp4_ = NULL; gchar* _tmp5_; gchar* _tmp6_ = NULL; gchar* _tmp7_; gchar* register_object_name; ValaCCodeFile* _tmp8_; ValaObjectTypeSymbol* _tmp9_; const gchar* _tmp10_; gboolean _tmp11_ = FALSE; ValaCCodeFile* _tmp12_; const gchar* _tmp13_; ValaCCodeFunction* _tmp14_; ValaCCodeFunction* cfunc; ValaCCodeFunction* _tmp15_; ValaCCodeParameter* _tmp16_; ValaCCodeParameter* _tmp17_; ValaCCodeFunction* _tmp18_; ValaCCodeParameter* _tmp19_; ValaCCodeParameter* _tmp20_; ValaCCodeFunction* _tmp21_; ValaCCodeParameter* _tmp22_; ValaCCodeParameter* _tmp23_; ValaCCodeFunction* _tmp24_; ValaCCodeParameter* _tmp25_; ValaCCodeParameter* _tmp26_; ValaObjectTypeSymbol* _tmp27_; gboolean _tmp28_ = FALSE; ValaCCodeFile* _tmp33_; ValaCCodeFunction* _tmp34_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); g_return_if_fail (decl_space != NULL); _tmp0_ = sym; _tmp1_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp0_); dbus_iface_name = _tmp1_; _tmp2_ = dbus_iface_name; if (_tmp2_ == NULL) { _g_free0 (dbus_iface_name); return; } _tmp3_ = sym; _tmp4_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp3_); _tmp5_ = _tmp4_; _tmp6_ = g_strdup_printf ("%sregister_object", _tmp5_); _tmp7_ = _tmp6_; _g_free0 (_tmp5_); register_object_name = _tmp7_; _tmp8_ = decl_space; _tmp9_ = sym; _tmp10_ = register_object_name; _tmp11_ = vala_ccode_base_module_add_symbol_declaration ((ValaCCodeBaseModule*) self, _tmp8_, (ValaSymbol*) _tmp9_, _tmp10_); if (_tmp11_) { _g_free0 (register_object_name); _g_free0 (dbus_iface_name); return; } _tmp12_ = decl_space; vala_ccode_file_add_include (_tmp12_, "gio/gio.h", FALSE); _tmp13_ = register_object_name; _tmp14_ = vala_ccode_function_new (_tmp13_, "guint"); cfunc = _tmp14_; _tmp15_ = cfunc; _tmp16_ = vala_ccode_parameter_new ("object", "void*"); _tmp17_ = _tmp16_; vala_ccode_function_add_parameter (_tmp15_, _tmp17_); _vala_ccode_node_unref0 (_tmp17_); _tmp18_ = cfunc; _tmp19_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp20_ = _tmp19_; vala_ccode_function_add_parameter (_tmp18_, _tmp20_); _vala_ccode_node_unref0 (_tmp20_); _tmp21_ = cfunc; _tmp22_ = vala_ccode_parameter_new ("path", "const gchar*"); _tmp23_ = _tmp22_; vala_ccode_function_add_parameter (_tmp21_, _tmp23_); _vala_ccode_node_unref0 (_tmp23_); _tmp24_ = cfunc; _tmp25_ = vala_ccode_parameter_new ("error", "GError**"); _tmp26_ = _tmp25_; vala_ccode_function_add_parameter (_tmp24_, _tmp26_); _vala_ccode_node_unref0 (_tmp26_); _tmp27_ = sym; _tmp28_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp27_); if (_tmp28_) { ValaCCodeFunction* _tmp29_; ValaCCodeFunction* _tmp30_; ValaCCodeModifiers _tmp31_; ValaCCodeModifiers _tmp32_; _tmp29_ = cfunc; _tmp30_ = cfunc; _tmp31_ = vala_ccode_function_get_modifiers (_tmp30_); _tmp32_ = _tmp31_; vala_ccode_function_set_modifiers (_tmp30_, _tmp32_ | VALA_CCODE_MODIFIERS_STATIC); } _tmp33_ = decl_space; _tmp34_ = cfunc; vala_ccode_file_add_function_declaration (_tmp33_, _tmp34_); _vala_ccode_node_unref0 (cfunc); _g_free0 (register_object_name); _g_free0 (dbus_iface_name); } static void vala_gd_bus_server_module_visit_object_type_symbol (ValaGDBusServerModule* self, ValaObjectTypeSymbol* sym) { ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* dbus_iface_name; const gchar* _tmp2_; ValaCCodeFile* _tmp3_; ValaObjectTypeSymbol* _tmp4_; gchar* _tmp5_ = NULL; gchar* _tmp6_; gchar* _tmp7_; gchar* _tmp8_; ValaCCodeFunction* _tmp9_; ValaCCodeFunction* _tmp10_; ValaCCodeFunction* cfunc; ValaCCodeFunction* _tmp11_; ValaCCodeParameter* _tmp12_; ValaCCodeParameter* _tmp13_; ValaCCodeFunction* _tmp14_; ValaCCodeParameter* _tmp15_; ValaCCodeParameter* _tmp16_; ValaCCodeFunction* _tmp17_; ValaCCodeParameter* _tmp18_; ValaCCodeParameter* _tmp19_; ValaCCodeFunction* _tmp20_; ValaCCodeParameter* _tmp21_; ValaCCodeParameter* _tmp22_; ValaObjectTypeSymbol* _tmp23_; gboolean _tmp24_ = FALSE; ValaCCodeFunction* _tmp29_; ValaCCodeFunction* _tmp30_; ValaCCodeFunction* _tmp31_; ValaCCodeVariableDeclarator* _tmp32_; ValaCCodeVariableDeclarator* _tmp33_; ValaCCodeFunction* _tmp34_; ValaCCodeFunction* _tmp35_; ValaCCodeVariableDeclarator* _tmp36_; ValaCCodeVariableDeclarator* _tmp37_; ValaCCodeIdentifier* _tmp38_; ValaCCodeIdentifier* _tmp39_; ValaCCodeFunctionCall* _tmp40_; ValaCCodeFunctionCall* _tmp41_; ValaCCodeFunctionCall* alloc_data; ValaCCodeFunctionCall* _tmp42_; ValaCCodeIdentifier* _tmp43_; ValaCCodeIdentifier* _tmp44_; ValaCCodeFunctionCall* _tmp45_; ValaCCodeConstant* _tmp46_; ValaCCodeConstant* _tmp47_; ValaCCodeFunction* _tmp48_; ValaCCodeFunction* _tmp49_; ValaCCodeIdentifier* _tmp50_; ValaCCodeIdentifier* _tmp51_; ValaCCodeFunctionCall* _tmp52_; ValaObjectTypeSymbol* _tmp53_; gchar* _tmp54_ = NULL; gchar* ref_function; gboolean _tmp55_ = FALSE; ValaObjectTypeSymbol* _tmp56_; gboolean _tmp58_; const gchar* _tmp67_; ValaCCodeIdentifier* _tmp68_; ValaCCodeIdentifier* _tmp69_; ValaCCodeFunctionCall* _tmp70_; ValaCCodeFunctionCall* _tmp71_; ValaCCodeFunctionCall* ref_object; ValaCCodeFunctionCall* _tmp72_; ValaCCodeIdentifier* _tmp73_; ValaCCodeIdentifier* _tmp74_; ValaCCodeFunction* _tmp75_; ValaCCodeFunction* _tmp76_; ValaCCodeIdentifier* _tmp77_; ValaCCodeIdentifier* _tmp78_; ValaCCodeConstant* _tmp79_; ValaCCodeConstant* _tmp80_; ValaCCodeElementAccess* _tmp81_; ValaCCodeElementAccess* _tmp82_; ValaCCodeFunctionCall* _tmp83_; ValaCCodeIdentifier* _tmp84_; ValaCCodeIdentifier* _tmp85_; ValaCCodeFunctionCall* _tmp86_; ValaCCodeFunctionCall* _tmp87_; ValaCCodeIdentifier* _tmp88_; ValaCCodeIdentifier* _tmp89_; ValaCCodeFunction* _tmp90_; ValaCCodeFunction* _tmp91_; ValaCCodeIdentifier* _tmp92_; ValaCCodeIdentifier* _tmp93_; ValaCCodeConstant* _tmp94_; ValaCCodeConstant* _tmp95_; ValaCCodeElementAccess* _tmp96_; ValaCCodeElementAccess* _tmp97_; ValaCCodeFunctionCall* _tmp98_; ValaCCodeIdentifier* _tmp99_; ValaCCodeIdentifier* _tmp100_; ValaCCodeFunctionCall* _tmp101_; ValaCCodeFunctionCall* _tmp102_; ValaCCodeFunctionCall* dup_path; ValaCCodeFunctionCall* _tmp103_; ValaCCodeIdentifier* _tmp104_; ValaCCodeIdentifier* _tmp105_; ValaCCodeFunction* _tmp106_; ValaCCodeFunction* _tmp107_; ValaCCodeIdentifier* _tmp108_; ValaCCodeIdentifier* _tmp109_; ValaCCodeConstant* _tmp110_; ValaCCodeConstant* _tmp111_; ValaCCodeElementAccess* _tmp112_; ValaCCodeElementAccess* _tmp113_; ValaCCodeFunctionCall* _tmp114_; ValaCCodeIdentifier* _tmp115_; ValaCCodeIdentifier* _tmp116_; ValaCCodeFunctionCall* _tmp117_; ValaCCodeFunctionCall* _tmp118_; ValaCCodeFunctionCall* cregister; ValaCCodeFunctionCall* _tmp119_; ValaCCodeIdentifier* _tmp120_; ValaCCodeIdentifier* _tmp121_; ValaCCodeFunctionCall* _tmp122_; ValaCCodeIdentifier* _tmp123_; ValaCCodeIdentifier* _tmp124_; ValaCCodeFunctionCall* _tmp125_; ValaObjectTypeSymbol* _tmp126_; ValaCCodeExpression* _tmp127_ = NULL; ValaCCodeExpression* _tmp128_; ValaCCodeUnaryExpression* _tmp129_; ValaCCodeUnaryExpression* _tmp130_; ValaCCodeCastExpression* _tmp131_; ValaCCodeCastExpression* _tmp132_; ValaCCodeFunctionCall* _tmp133_; ValaObjectTypeSymbol* _tmp134_; ValaCCodeExpression* _tmp135_ = NULL; ValaCCodeExpression* _tmp136_; ValaCCodeUnaryExpression* _tmp137_; ValaCCodeUnaryExpression* _tmp138_; ValaCCodeFunctionCall* _tmp139_; ValaCCodeIdentifier* _tmp140_; ValaCCodeIdentifier* _tmp141_; ValaCCodeFunctionCall* _tmp142_; ValaObjectTypeSymbol* _tmp143_; gchar* _tmp144_ = NULL; gchar* _tmp145_; gchar* _tmp146_; gchar* _tmp147_; gchar* _tmp148_; gchar* _tmp149_; ValaCCodeIdentifier* _tmp150_; ValaCCodeIdentifier* _tmp151_; ValaCCodeFunctionCall* _tmp152_; ValaCCodeIdentifier* _tmp153_; ValaCCodeIdentifier* _tmp154_; ValaCCodeFunction* _tmp155_; ValaCCodeFunction* _tmp156_; ValaCCodeIdentifier* _tmp157_; ValaCCodeIdentifier* _tmp158_; ValaCCodeFunctionCall* _tmp159_; ValaCCodeFunction* _tmp160_; ValaCCodeFunction* _tmp161_; ValaCCodeIdentifier* _tmp162_; ValaCCodeIdentifier* _tmp163_; ValaCCodeUnaryExpression* _tmp164_; ValaCCodeUnaryExpression* _tmp165_; ValaCCodeFunction* _tmp166_; ValaCCodeFunction* _tmp167_; ValaCCodeConstant* _tmp168_; ValaCCodeConstant* _tmp169_; ValaCCodeFunction* _tmp170_; ValaCCodeFunction* _tmp171_; ValaObjectTypeSymbol* _tmp172_; ValaCCodeFunction* _tmp173_; ValaCCodeFunction* _tmp174_; ValaCCodeIdentifier* _tmp175_; ValaCCodeIdentifier* _tmp176_; ValaCCodeFile* _tmp177_; ValaCCodeFunction* _tmp178_; ValaObjectTypeSymbol* _tmp179_; gchar* _tmp180_ = NULL; gchar* _tmp181_; gchar* _tmp182_; gchar* _tmp183_; gchar* _tmp184_; gchar* _tmp185_; ValaCCodeFunction* _tmp186_; ValaCCodeFunction* _tmp187_; ValaCCodeParameter* _tmp188_; ValaCCodeParameter* _tmp189_; ValaCCodeFunction* _tmp190_; ValaCCodeFunction* _tmp191_; ValaCCodeModifiers _tmp192_; ValaCCodeModifiers _tmp193_; ValaCCodeFunction* _tmp194_; ValaCCodeFunction* _tmp195_; ValaCCodeFunction* _tmp196_; ValaCCodeIdentifier* _tmp197_; ValaCCodeIdentifier* _tmp198_; ValaCCodeVariableDeclarator* _tmp199_; ValaCCodeVariableDeclarator* _tmp200_; ValaObjectTypeSymbol* _tmp201_; ValaObjectTypeSymbol* _tmp202_; gchar* _tmp203_ = NULL; gchar* _tmp204_; ValaCCodeIdentifier* _tmp205_; ValaCCodeIdentifier* _tmp206_; ValaCCodeFunctionCall* _tmp207_; ValaCCodeFunctionCall* _tmp208_; ValaCCodeFunctionCall* unref_object; ValaCCodeFunctionCall* _tmp209_; ValaCCodeIdentifier* _tmp210_; ValaCCodeIdentifier* _tmp211_; ValaCCodeConstant* _tmp212_; ValaCCodeConstant* _tmp213_; ValaCCodeElementAccess* _tmp214_; ValaCCodeElementAccess* _tmp215_; ValaCCodeFunction* _tmp216_; ValaCCodeFunction* _tmp217_; ValaCCodeFunctionCall* _tmp218_; ValaCCodeIdentifier* _tmp219_; ValaCCodeIdentifier* _tmp220_; ValaCCodeFunctionCall* _tmp221_; ValaCCodeFunctionCall* _tmp222_; ValaCCodeIdentifier* _tmp223_; ValaCCodeIdentifier* _tmp224_; ValaCCodeConstant* _tmp225_; ValaCCodeConstant* _tmp226_; ValaCCodeElementAccess* _tmp227_; ValaCCodeElementAccess* _tmp228_; ValaCCodeFunction* _tmp229_; ValaCCodeFunction* _tmp230_; ValaCCodeFunctionCall* _tmp231_; ValaCCodeIdentifier* _tmp232_; ValaCCodeIdentifier* _tmp233_; ValaCCodeFunctionCall* _tmp234_; ValaCCodeFunctionCall* _tmp235_; ValaCCodeFunctionCall* free_path; ValaCCodeFunctionCall* _tmp236_; ValaCCodeIdentifier* _tmp237_; ValaCCodeIdentifier* _tmp238_; ValaCCodeConstant* _tmp239_; ValaCCodeConstant* _tmp240_; ValaCCodeElementAccess* _tmp241_; ValaCCodeElementAccess* _tmp242_; ValaCCodeFunction* _tmp243_; ValaCCodeFunction* _tmp244_; ValaCCodeFunctionCall* _tmp245_; ValaCCodeIdentifier* _tmp246_; ValaCCodeIdentifier* _tmp247_; ValaCCodeFunctionCall* _tmp248_; ValaCCodeFunctionCall* _tmp249_; ValaCCodeFunctionCall* free_data; ValaCCodeFunctionCall* _tmp250_; ValaCCodeIdentifier* _tmp251_; ValaCCodeIdentifier* _tmp252_; ValaCCodeFunction* _tmp253_; ValaCCodeFunction* _tmp254_; ValaCCodeFunctionCall* _tmp255_; ValaCCodeFile* _tmp256_; ValaCCodeFunction* _tmp257_; ValaCCodeFile* _tmp258_; ValaCCodeFunction* _tmp259_; g_return_if_fail (self != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp0_); dbus_iface_name = _tmp1_; _tmp2_ = dbus_iface_name; if (_tmp2_ == NULL) { _g_free0 (dbus_iface_name); return; } _tmp3_ = ((ValaCCodeBaseModule*) self)->cfile; vala_ccode_file_add_include (_tmp3_, "gio/gio.h", FALSE); _tmp4_ = sym; _tmp5_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp4_); _tmp6_ = _tmp5_; _tmp7_ = g_strconcat (_tmp6_, "register_object", NULL); _tmp8_ = _tmp7_; _tmp9_ = vala_ccode_function_new (_tmp8_, "guint"); _tmp10_ = _tmp9_; _g_free0 (_tmp8_); _g_free0 (_tmp6_); cfunc = _tmp10_; _tmp11_ = cfunc; _tmp12_ = vala_ccode_parameter_new ("object", "gpointer"); _tmp13_ = _tmp12_; vala_ccode_function_add_parameter (_tmp11_, _tmp13_); _vala_ccode_node_unref0 (_tmp13_); _tmp14_ = cfunc; _tmp15_ = vala_ccode_parameter_new ("connection", "GDBusConnection*"); _tmp16_ = _tmp15_; vala_ccode_function_add_parameter (_tmp14_, _tmp16_); _vala_ccode_node_unref0 (_tmp16_); _tmp17_ = cfunc; _tmp18_ = vala_ccode_parameter_new ("path", "const gchar*"); _tmp19_ = _tmp18_; vala_ccode_function_add_parameter (_tmp17_, _tmp19_); _vala_ccode_node_unref0 (_tmp19_); _tmp20_ = cfunc; _tmp21_ = vala_ccode_parameter_new ("error", "GError**"); _tmp22_ = _tmp21_; vala_ccode_function_add_parameter (_tmp20_, _tmp22_); _vala_ccode_node_unref0 (_tmp22_); _tmp23_ = sym; _tmp24_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp23_); if (_tmp24_) { ValaCCodeFunction* _tmp25_; ValaCCodeFunction* _tmp26_; ValaCCodeModifiers _tmp27_; ValaCCodeModifiers _tmp28_; _tmp25_ = cfunc; _tmp26_ = cfunc; _tmp27_ = vala_ccode_function_get_modifiers (_tmp26_); _tmp28_ = _tmp27_; vala_ccode_function_set_modifiers (_tmp26_, _tmp28_ | VALA_CCODE_MODIFIERS_STATIC); } _tmp29_ = cfunc; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp29_); _tmp30_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp31_ = _tmp30_; _tmp32_ = vala_ccode_variable_declarator_new ("result", NULL, NULL); _tmp33_ = _tmp32_; vala_ccode_function_add_declaration (_tmp31_, "guint", (ValaCCodeDeclarator*) _tmp33_, 0); _vala_ccode_node_unref0 (_tmp33_); _tmp34_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp35_ = _tmp34_; _tmp36_ = vala_ccode_variable_declarator_new ("*data", NULL, NULL); _tmp37_ = _tmp36_; vala_ccode_function_add_declaration (_tmp35_, "gpointer", (ValaCCodeDeclarator*) _tmp37_, 0); _vala_ccode_node_unref0 (_tmp37_); _tmp38_ = vala_ccode_identifier_new ("g_new"); _tmp39_ = _tmp38_; _tmp40_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp39_); _tmp41_ = _tmp40_; _vala_ccode_node_unref0 (_tmp39_); alloc_data = _tmp41_; _tmp42_ = alloc_data; _tmp43_ = vala_ccode_identifier_new ("gpointer"); _tmp44_ = _tmp43_; vala_ccode_function_call_add_argument (_tmp42_, (ValaCCodeExpression*) _tmp44_); _vala_ccode_node_unref0 (_tmp44_); _tmp45_ = alloc_data; _tmp46_ = vala_ccode_constant_new ("3"); _tmp47_ = _tmp46_; vala_ccode_function_call_add_argument (_tmp45_, (ValaCCodeExpression*) _tmp47_); _vala_ccode_node_unref0 (_tmp47_); _tmp48_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp49_ = _tmp48_; _tmp50_ = vala_ccode_identifier_new ("data"); _tmp51_ = _tmp50_; _tmp52_ = alloc_data; vala_ccode_function_add_assignment (_tmp49_, (ValaCCodeExpression*) _tmp51_, (ValaCCodeExpression*) _tmp52_); _vala_ccode_node_unref0 (_tmp51_); _tmp53_ = sym; _tmp54_ = vala_ccode_base_module_get_ccode_ref_function ((ValaTypeSymbol*) _tmp53_); ref_function = _tmp54_; _tmp56_ = sym; if (VALA_IS_INTERFACE (_tmp56_)) { const gchar* _tmp57_; _tmp57_ = ref_function; _tmp55_ = _tmp57_ == NULL; } else { _tmp55_ = FALSE; } _tmp58_ = _tmp55_; if (_tmp58_) { ValaObjectTypeSymbol* _tmp59_; ValaSourceReference* _tmp60_; ValaSourceReference* _tmp61_; ValaObjectTypeSymbol* _tmp62_; gchar* _tmp63_ = NULL; gchar* _tmp64_; gchar* _tmp65_ = NULL; gchar* _tmp66_; _tmp59_ = sym; _tmp60_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp59_); _tmp61_ = _tmp60_; _tmp62_ = sym; _tmp63_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp62_); _tmp64_ = _tmp63_; _tmp65_ = g_strdup_printf ("missing class prerequisite for interface `%s', add GLib.Object to inte" \ "rface declaration if unsure", _tmp64_); _tmp66_ = _tmp65_; vala_report_error (_tmp61_, _tmp66_); _g_free0 (_tmp66_); _g_free0 (_tmp64_); _g_free0 (ref_function); _vala_ccode_node_unref0 (alloc_data); _vala_ccode_node_unref0 (cfunc); _g_free0 (dbus_iface_name); return; } _tmp67_ = ref_function; _tmp68_ = vala_ccode_identifier_new (_tmp67_); _tmp69_ = _tmp68_; _tmp70_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp69_); _tmp71_ = _tmp70_; _vala_ccode_node_unref0 (_tmp69_); ref_object = _tmp71_; _tmp72_ = ref_object; _tmp73_ = vala_ccode_identifier_new ("object"); _tmp74_ = _tmp73_; vala_ccode_function_call_add_argument (_tmp72_, (ValaCCodeExpression*) _tmp74_); _vala_ccode_node_unref0 (_tmp74_); _tmp75_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp76_ = _tmp75_; _tmp77_ = vala_ccode_identifier_new ("data"); _tmp78_ = _tmp77_; _tmp79_ = vala_ccode_constant_new ("0"); _tmp80_ = _tmp79_; _tmp81_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp78_, (ValaCCodeExpression*) _tmp80_); _tmp82_ = _tmp81_; _tmp83_ = ref_object; vala_ccode_function_add_assignment (_tmp76_, (ValaCCodeExpression*) _tmp82_, (ValaCCodeExpression*) _tmp83_); _vala_ccode_node_unref0 (_tmp82_); _vala_ccode_node_unref0 (_tmp80_); _vala_ccode_node_unref0 (_tmp78_); _tmp84_ = vala_ccode_identifier_new ("g_object_ref"); _tmp85_ = _tmp84_; _tmp86_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp85_); _vala_ccode_node_unref0 (ref_object); ref_object = _tmp86_; _vala_ccode_node_unref0 (_tmp85_); _tmp87_ = ref_object; _tmp88_ = vala_ccode_identifier_new ("connection"); _tmp89_ = _tmp88_; vala_ccode_function_call_add_argument (_tmp87_, (ValaCCodeExpression*) _tmp89_); _vala_ccode_node_unref0 (_tmp89_); _tmp90_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp91_ = _tmp90_; _tmp92_ = vala_ccode_identifier_new ("data"); _tmp93_ = _tmp92_; _tmp94_ = vala_ccode_constant_new ("1"); _tmp95_ = _tmp94_; _tmp96_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp93_, (ValaCCodeExpression*) _tmp95_); _tmp97_ = _tmp96_; _tmp98_ = ref_object; vala_ccode_function_add_assignment (_tmp91_, (ValaCCodeExpression*) _tmp97_, (ValaCCodeExpression*) _tmp98_); _vala_ccode_node_unref0 (_tmp97_); _vala_ccode_node_unref0 (_tmp95_); _vala_ccode_node_unref0 (_tmp93_); _tmp99_ = vala_ccode_identifier_new ("g_strdup"); _tmp100_ = _tmp99_; _tmp101_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp100_); _tmp102_ = _tmp101_; _vala_ccode_node_unref0 (_tmp100_); dup_path = _tmp102_; _tmp103_ = dup_path; _tmp104_ = vala_ccode_identifier_new ("path"); _tmp105_ = _tmp104_; vala_ccode_function_call_add_argument (_tmp103_, (ValaCCodeExpression*) _tmp105_); _vala_ccode_node_unref0 (_tmp105_); _tmp106_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp107_ = _tmp106_; _tmp108_ = vala_ccode_identifier_new ("data"); _tmp109_ = _tmp108_; _tmp110_ = vala_ccode_constant_new ("2"); _tmp111_ = _tmp110_; _tmp112_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp109_, (ValaCCodeExpression*) _tmp111_); _tmp113_ = _tmp112_; _tmp114_ = dup_path; vala_ccode_function_add_assignment (_tmp107_, (ValaCCodeExpression*) _tmp113_, (ValaCCodeExpression*) _tmp114_); _vala_ccode_node_unref0 (_tmp113_); _vala_ccode_node_unref0 (_tmp111_); _vala_ccode_node_unref0 (_tmp109_); _tmp115_ = vala_ccode_identifier_new ("g_dbus_connection_register_object"); _tmp116_ = _tmp115_; _tmp117_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp116_); _tmp118_ = _tmp117_; _vala_ccode_node_unref0 (_tmp116_); cregister = _tmp118_; _tmp119_ = cregister; _tmp120_ = vala_ccode_identifier_new ("connection"); _tmp121_ = _tmp120_; vala_ccode_function_call_add_argument (_tmp119_, (ValaCCodeExpression*) _tmp121_); _vala_ccode_node_unref0 (_tmp121_); _tmp122_ = cregister; _tmp123_ = vala_ccode_identifier_new ("path"); _tmp124_ = _tmp123_; vala_ccode_function_call_add_argument (_tmp122_, (ValaCCodeExpression*) _tmp124_); _vala_ccode_node_unref0 (_tmp124_); _tmp125_ = cregister; _tmp126_ = sym; _tmp127_ = vala_gd_bus_server_module_get_interface_info (self, _tmp126_); _tmp128_ = _tmp127_; _tmp129_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp128_); _tmp130_ = _tmp129_; _tmp131_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp130_, "GDBusInterfaceInfo *"); _tmp132_ = _tmp131_; vala_ccode_function_call_add_argument (_tmp125_, (ValaCCodeExpression*) _tmp132_); _vala_ccode_node_unref0 (_tmp132_); _vala_ccode_node_unref0 (_tmp130_); _vala_ccode_node_unref0 (_tmp128_); _tmp133_ = cregister; _tmp134_ = sym; _tmp135_ = vala_gd_bus_server_module_get_interface_vtable (self, _tmp134_); _tmp136_ = _tmp135_; _tmp137_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _tmp136_); _tmp138_ = _tmp137_; vala_ccode_function_call_add_argument (_tmp133_, (ValaCCodeExpression*) _tmp138_); _vala_ccode_node_unref0 (_tmp138_); _vala_ccode_node_unref0 (_tmp136_); _tmp139_ = cregister; _tmp140_ = vala_ccode_identifier_new ("data"); _tmp141_ = _tmp140_; vala_ccode_function_call_add_argument (_tmp139_, (ValaCCodeExpression*) _tmp141_); _vala_ccode_node_unref0 (_tmp141_); _tmp142_ = cregister; _tmp143_ = sym; _tmp144_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp143_); _tmp145_ = _tmp144_; _tmp146_ = g_strconcat ("_", _tmp145_, NULL); _tmp147_ = _tmp146_; _tmp148_ = g_strconcat (_tmp147_, "unregister_object", NULL); _tmp149_ = _tmp148_; _tmp150_ = vala_ccode_identifier_new (_tmp149_); _tmp151_ = _tmp150_; vala_ccode_function_call_add_argument (_tmp142_, (ValaCCodeExpression*) _tmp151_); _vala_ccode_node_unref0 (_tmp151_); _g_free0 (_tmp149_); _g_free0 (_tmp147_); _g_free0 (_tmp145_); _tmp152_ = cregister; _tmp153_ = vala_ccode_identifier_new ("error"); _tmp154_ = _tmp153_; vala_ccode_function_call_add_argument (_tmp152_, (ValaCCodeExpression*) _tmp154_); _vala_ccode_node_unref0 (_tmp154_); _tmp155_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp156_ = _tmp155_; _tmp157_ = vala_ccode_identifier_new ("result"); _tmp158_ = _tmp157_; _tmp159_ = cregister; vala_ccode_function_add_assignment (_tmp156_, (ValaCCodeExpression*) _tmp158_, (ValaCCodeExpression*) _tmp159_); _vala_ccode_node_unref0 (_tmp158_); _tmp160_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp161_ = _tmp160_; _tmp162_ = vala_ccode_identifier_new ("result"); _tmp163_ = _tmp162_; _tmp164_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_LOGICAL_NEGATION, (ValaCCodeExpression*) _tmp163_); _tmp165_ = _tmp164_; vala_ccode_function_open_if (_tmp161_, (ValaCCodeExpression*) _tmp165_); _vala_ccode_node_unref0 (_tmp165_); _vala_ccode_node_unref0 (_tmp163_); _tmp166_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp167_ = _tmp166_; _tmp168_ = vala_ccode_constant_new ("0"); _tmp169_ = _tmp168_; vala_ccode_function_add_return (_tmp167_, (ValaCCodeExpression*) _tmp169_); _vala_ccode_node_unref0 (_tmp169_); _tmp170_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp171_ = _tmp170_; vala_ccode_function_close (_tmp171_); _tmp172_ = sym; vala_gd_bus_server_module_handle_signals (self, _tmp172_, TRUE); _tmp173_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp174_ = _tmp173_; _tmp175_ = vala_ccode_identifier_new ("result"); _tmp176_ = _tmp175_; vala_ccode_function_add_return (_tmp174_, (ValaCCodeExpression*) _tmp176_); _vala_ccode_node_unref0 (_tmp176_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp177_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp178_ = cfunc; vala_ccode_file_add_function (_tmp177_, _tmp178_); _tmp179_ = sym; _tmp180_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp179_); _tmp181_ = _tmp180_; _tmp182_ = g_strconcat ("_", _tmp181_, NULL); _tmp183_ = _tmp182_; _tmp184_ = g_strconcat (_tmp183_, "unregister_object", NULL); _tmp185_ = _tmp184_; _tmp186_ = vala_ccode_function_new (_tmp185_, "void"); _vala_ccode_node_unref0 (cfunc); cfunc = _tmp186_; _g_free0 (_tmp185_); _g_free0 (_tmp183_); _g_free0 (_tmp181_); _tmp187_ = cfunc; _tmp188_ = vala_ccode_parameter_new ("user_data", "gpointer"); _tmp189_ = _tmp188_; vala_ccode_function_add_parameter (_tmp187_, _tmp189_); _vala_ccode_node_unref0 (_tmp189_); _tmp190_ = cfunc; _tmp191_ = cfunc; _tmp192_ = vala_ccode_function_get_modifiers (_tmp191_); _tmp193_ = _tmp192_; vala_ccode_function_set_modifiers (_tmp191_, _tmp193_ | VALA_CCODE_MODIFIERS_STATIC); _tmp194_ = cfunc; vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp194_); _tmp195_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp196_ = _tmp195_; _tmp197_ = vala_ccode_identifier_new ("user_data"); _tmp198_ = _tmp197_; _tmp199_ = vala_ccode_variable_declarator_new ("data", (ValaCCodeExpression*) _tmp198_, NULL); _tmp200_ = _tmp199_; vala_ccode_function_add_declaration (_tmp196_, "gpointer*", (ValaCCodeDeclarator*) _tmp200_, 0); _vala_ccode_node_unref0 (_tmp200_); _vala_ccode_node_unref0 (_tmp198_); _tmp201_ = sym; vala_gd_bus_server_module_handle_signals (self, _tmp201_, FALSE); _tmp202_ = sym; _tmp203_ = vala_ccode_base_module_get_ccode_unref_function (_tmp202_); _tmp204_ = _tmp203_; _tmp205_ = vala_ccode_identifier_new (_tmp204_); _tmp206_ = _tmp205_; _tmp207_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp206_); _tmp208_ = _tmp207_; _vala_ccode_node_unref0 (_tmp206_); _g_free0 (_tmp204_); unref_object = _tmp208_; _tmp209_ = unref_object; _tmp210_ = vala_ccode_identifier_new ("data"); _tmp211_ = _tmp210_; _tmp212_ = vala_ccode_constant_new ("0"); _tmp213_ = _tmp212_; _tmp214_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp211_, (ValaCCodeExpression*) _tmp213_); _tmp215_ = _tmp214_; vala_ccode_function_call_add_argument (_tmp209_, (ValaCCodeExpression*) _tmp215_); _vala_ccode_node_unref0 (_tmp215_); _vala_ccode_node_unref0 (_tmp213_); _vala_ccode_node_unref0 (_tmp211_); _tmp216_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp217_ = _tmp216_; _tmp218_ = unref_object; vala_ccode_function_add_expression (_tmp217_, (ValaCCodeExpression*) _tmp218_); _tmp219_ = vala_ccode_identifier_new ("g_object_unref"); _tmp220_ = _tmp219_; _tmp221_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp220_); _vala_ccode_node_unref0 (unref_object); unref_object = _tmp221_; _vala_ccode_node_unref0 (_tmp220_); _tmp222_ = unref_object; _tmp223_ = vala_ccode_identifier_new ("data"); _tmp224_ = _tmp223_; _tmp225_ = vala_ccode_constant_new ("1"); _tmp226_ = _tmp225_; _tmp227_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp224_, (ValaCCodeExpression*) _tmp226_); _tmp228_ = _tmp227_; vala_ccode_function_call_add_argument (_tmp222_, (ValaCCodeExpression*) _tmp228_); _vala_ccode_node_unref0 (_tmp228_); _vala_ccode_node_unref0 (_tmp226_); _vala_ccode_node_unref0 (_tmp224_); _tmp229_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp230_ = _tmp229_; _tmp231_ = unref_object; vala_ccode_function_add_expression (_tmp230_, (ValaCCodeExpression*) _tmp231_); _tmp232_ = vala_ccode_identifier_new ("g_free"); _tmp233_ = _tmp232_; _tmp234_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp233_); _tmp235_ = _tmp234_; _vala_ccode_node_unref0 (_tmp233_); free_path = _tmp235_; _tmp236_ = free_path; _tmp237_ = vala_ccode_identifier_new ("data"); _tmp238_ = _tmp237_; _tmp239_ = vala_ccode_constant_new ("2"); _tmp240_ = _tmp239_; _tmp241_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp238_, (ValaCCodeExpression*) _tmp240_); _tmp242_ = _tmp241_; vala_ccode_function_call_add_argument (_tmp236_, (ValaCCodeExpression*) _tmp242_); _vala_ccode_node_unref0 (_tmp242_); _vala_ccode_node_unref0 (_tmp240_); _vala_ccode_node_unref0 (_tmp238_); _tmp243_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp244_ = _tmp243_; _tmp245_ = free_path; vala_ccode_function_add_expression (_tmp244_, (ValaCCodeExpression*) _tmp245_); _tmp246_ = vala_ccode_identifier_new ("g_free"); _tmp247_ = _tmp246_; _tmp248_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp247_); _tmp249_ = _tmp248_; _vala_ccode_node_unref0 (_tmp247_); free_data = _tmp249_; _tmp250_ = free_data; _tmp251_ = vala_ccode_identifier_new ("data"); _tmp252_ = _tmp251_; vala_ccode_function_call_add_argument (_tmp250_, (ValaCCodeExpression*) _tmp252_); _vala_ccode_node_unref0 (_tmp252_); _tmp253_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self); _tmp254_ = _tmp253_; _tmp255_ = free_data; vala_ccode_function_add_expression (_tmp254_, (ValaCCodeExpression*) _tmp255_); vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self); _tmp256_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp257_ = cfunc; vala_ccode_file_add_function_declaration (_tmp256_, _tmp257_); _tmp258_ = ((ValaCCodeBaseModule*) self)->cfile; _tmp259_ = cfunc; vala_ccode_file_add_function (_tmp258_, _tmp259_); _vala_ccode_node_unref0 (free_data); _vala_ccode_node_unref0 (free_path); _vala_ccode_node_unref0 (unref_object); _vala_ccode_node_unref0 (cregister); _vala_ccode_node_unref0 (dup_path); _vala_ccode_node_unref0 (ref_object); _g_free0 (ref_function); _vala_ccode_node_unref0 (alloc_data); _vala_ccode_node_unref0 (cfunc); _g_free0 (dbus_iface_name); } static void vala_gd_bus_server_module_real_register_dbus_info (ValaCCodeBaseModule* base, ValaCCodeBlock* block, ValaObjectTypeSymbol* sym) { ValaGDBusServerModule * self; ValaObjectTypeSymbol* _tmp0_; gchar* _tmp1_ = NULL; gchar* dbus_iface_name; const gchar* _tmp2_; ValaCCodeBlock* _tmp3_; ValaObjectTypeSymbol* _tmp4_; ValaCCodeIdentifier* _tmp5_; ValaCCodeIdentifier* _tmp6_; ValaCCodeFunctionCall* _tmp7_; ValaCCodeFunctionCall* _tmp8_; ValaCCodeFunctionCall* quark; ValaCCodeFunctionCall* _tmp9_; ValaCCodeConstant* _tmp10_; ValaCCodeConstant* _tmp11_; ValaCCodeIdentifier* _tmp12_; ValaCCodeIdentifier* _tmp13_; ValaCCodeFunctionCall* _tmp14_; ValaCCodeFunctionCall* _tmp15_; ValaCCodeFunctionCall* set_qdata; ValaCCodeFunctionCall* _tmp16_; ValaObjectTypeSymbol* _tmp17_; gchar* _tmp18_ = NULL; gchar* _tmp19_; gchar* _tmp20_ = NULL; gchar* _tmp21_; ValaCCodeIdentifier* _tmp22_; ValaCCodeIdentifier* _tmp23_; ValaCCodeFunctionCall* _tmp24_; ValaCCodeFunctionCall* _tmp25_; ValaCCodeFunctionCall* _tmp26_; ValaObjectTypeSymbol* _tmp27_; gchar* _tmp28_ = NULL; gchar* _tmp29_; gchar* _tmp30_; gchar* _tmp31_; ValaCCodeIdentifier* _tmp32_; ValaCCodeIdentifier* _tmp33_; ValaCCodeCastExpression* _tmp34_; ValaCCodeCastExpression* _tmp35_; ValaCCodeBlock* _tmp36_; ValaCCodeFunctionCall* _tmp37_; ValaCCodeExpressionStatement* _tmp38_; ValaCCodeExpressionStatement* _tmp39_; self = (ValaGDBusServerModule*) base; g_return_if_fail (block != NULL); g_return_if_fail (sym != NULL); _tmp0_ = sym; _tmp1_ = vala_gd_bus_module_get_dbus_name ((ValaTypeSymbol*) _tmp0_); dbus_iface_name = _tmp1_; _tmp2_ = dbus_iface_name; if (_tmp2_ == NULL) { _g_free0 (dbus_iface_name); return; } _tmp3_ = block; _tmp4_ = sym; VALA_CCODE_BASE_MODULE_CLASS (vala_gd_bus_server_module_parent_class)->register_dbus_info ((ValaCCodeBaseModule*) VALA_GD_BUS_CLIENT_MODULE (self), _tmp3_, _tmp4_); _tmp5_ = vala_ccode_identifier_new ("g_quark_from_static_string"); _tmp6_ = _tmp5_; _tmp7_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp6_); _tmp8_ = _tmp7_; _vala_ccode_node_unref0 (_tmp6_); quark = _tmp8_; _tmp9_ = quark; _tmp10_ = vala_ccode_constant_new ("\"vala-dbus-register-object\""); _tmp11_ = _tmp10_; vala_ccode_function_call_add_argument (_tmp9_, (ValaCCodeExpression*) _tmp11_); _vala_ccode_node_unref0 (_tmp11_); _tmp12_ = vala_ccode_identifier_new ("g_type_set_qdata"); _tmp13_ = _tmp12_; _tmp14_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp13_); _tmp15_ = _tmp14_; _vala_ccode_node_unref0 (_tmp13_); set_qdata = _tmp15_; _tmp16_ = set_qdata; _tmp17_ = sym; _tmp18_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp17_, NULL); _tmp19_ = _tmp18_; _tmp20_ = g_strdup_printf ("%s_type_id", _tmp19_); _tmp21_ = _tmp20_; _tmp22_ = vala_ccode_identifier_new (_tmp21_); _tmp23_ = _tmp22_; vala_ccode_function_call_add_argument (_tmp16_, (ValaCCodeExpression*) _tmp23_); _vala_ccode_node_unref0 (_tmp23_); _g_free0 (_tmp21_); _g_free0 (_tmp19_); _tmp24_ = set_qdata; _tmp25_ = quark; vala_ccode_function_call_add_argument (_tmp24_, (ValaCCodeExpression*) _tmp25_); _tmp26_ = set_qdata; _tmp27_ = sym; _tmp28_ = vala_ccode_base_module_get_ccode_lower_case_prefix ((ValaSymbol*) _tmp27_); _tmp29_ = _tmp28_; _tmp30_ = g_strconcat (_tmp29_, "register_object", NULL); _tmp31_ = _tmp30_; _tmp32_ = vala_ccode_identifier_new (_tmp31_); _tmp33_ = _tmp32_; _tmp34_ = vala_ccode_cast_expression_new ((ValaCCodeExpression*) _tmp33_, "void*"); _tmp35_ = _tmp34_; vala_ccode_function_call_add_argument (_tmp26_, (ValaCCodeExpression*) _tmp35_); _vala_ccode_node_unref0 (_tmp35_); _vala_ccode_node_unref0 (_tmp33_); _g_free0 (_tmp31_); _g_free0 (_tmp29_); _tmp36_ = block; _tmp37_ = set_qdata; _tmp38_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) _tmp37_); _tmp39_ = _tmp38_; vala_ccode_block_add_statement (_tmp36_, (ValaCCodeNode*) _tmp39_); _vala_ccode_node_unref0 (_tmp39_); _vala_ccode_node_unref0 (set_qdata); _vala_ccode_node_unref0 (quark); _g_free0 (dbus_iface_name); } ValaGDBusServerModule* vala_gd_bus_server_module_construct (GType object_type) { ValaGDBusServerModule* self = NULL; self = (ValaGDBusServerModule*) vala_gd_bus_client_module_construct (object_type); return self; } ValaGDBusServerModule* vala_gd_bus_server_module_new (void) { return vala_gd_bus_server_module_construct (VALA_TYPE_GD_BUS_SERVER_MODULE); } static void vala_gd_bus_server_module_class_init (ValaGDBusServerModuleClass * klass) { vala_gd_bus_server_module_parent_class = g_type_class_peek_parent (klass); VALA_CODE_VISITOR_CLASS (klass)->visit_method_call = vala_gd_bus_server_module_real_visit_method_call; VALA_CCODE_BASE_MODULE_CLASS (klass)->generate_class_declaration = vala_gd_bus_server_module_real_generate_class_declaration; VALA_CCODE_BASE_MODULE_CLASS (klass)->generate_interface_declaration = vala_gd_bus_server_module_real_generate_interface_declaration; VALA_CODE_VISITOR_CLASS (klass)->visit_class = vala_gd_bus_server_module_real_visit_class; VALA_CODE_VISITOR_CLASS (klass)->visit_interface = vala_gd_bus_server_module_real_visit_interface; VALA_CCODE_BASE_MODULE_CLASS (klass)->register_dbus_info = vala_gd_bus_server_module_real_register_dbus_info; } static void vala_gd_bus_server_module_instance_init (ValaGDBusServerModule * self) { } GType vala_gd_bus_server_module_get_type (void) { static volatile gsize vala_gd_bus_server_module_type_id__volatile = 0; if (g_once_init_enter (&vala_gd_bus_server_module_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (ValaGDBusServerModuleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_gd_bus_server_module_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaGDBusServerModule), 0, (GInstanceInitFunc) vala_gd_bus_server_module_instance_init, NULL }; GType vala_gd_bus_server_module_type_id; vala_gd_bus_server_module_type_id = g_type_register_static (VALA_TYPE_GD_BUS_CLIENT_MODULE, "ValaGDBusServerModule", &g_define_type_info, 0); g_once_init_leave (&vala_gd_bus_server_module_type_id__volatile, vala_gd_bus_server_module_type_id); } return vala_gd_bus_server_module_type_id__volatile; }