quote
$(Expr(:toplevel, quote
    function boxed_copy(_boxed_type::Integer, _src_boxed::Nothing)
        ret = ccall(("g_boxed_copy", libgobject), Ptr{Nothing}, (UInt64, Ptr{Nothing}), _boxed_type, _src_boxed)
        ret2 = convert(Nothing, ret)
        ret2
    end
    function boxed_free(_boxed_type::Integer, _boxed::Nothing)
        ret = ccall(("g_boxed_free", libgobject), Nothing, (UInt64, Ptr{Nothing}), _boxed_type, _boxed)
        nothing
    end
    function clear_signal_handler(_handler_id_ptr::UInt64, _instance::GObject)
        ret = ccall(("g_clear_signal_handler", libgobject), Nothing, (Ptr{UInt64}, Ptr{GObject}), _handler_id_ptr, _instance)
        nothing
    end
    function enum_to_string(_g_enum_type::Integer, _value::Integer)
        ret = ccall(("g_enum_to_string", libgobject), Cstring, (UInt64, Int32), _g_enum_type, _value)
        ret2 = if ret == C_NULL
                nothing
            else
                bytestring(ret, true)
            end
        ret2
    end
    function flags_to_string(_flags_type::Integer, _value::Integer)
        ret = ccall(("g_flags_to_string", libgobject), Cstring, (UInt64, UInt32), _flags_type, _value)
        ret2 = if ret == C_NULL
                nothing
            else
                bytestring(ret, true)
            end
        ret2
    end
    function gtype_get_type()
        ret = ccall(("g_gtype_get_type", libgobject), UInt64, ())
        ret
    end
    function pointer_type_register_static(_name::Union{AbstractString, Symbol})
        ret = ccall(("g_pointer_type_register_static", libgobject), UInt64, (Cstring,), _name)
        ret
    end
    function signal_chain_from_overridden(_instance_and_params, _return_value::Union{GValue, Ref{_GValue}})
        _instance_and_params = convert(Vector{_GValue}, _instance_and_params)
        ret = ccall(("g_signal_chain_from_overridden", libgobject), Nothing, (Ptr{_GValue}, Ptr{_GValue}), _instance_and_params, _return_value)
        nothing
    end
    function signal_handler_block(_instance::GObject, _handler_id::Integer)
        ret = ccall(("g_signal_handler_block", libgobject), Nothing, (Ptr{GObject}, UInt64), _instance, _handler_id)
        nothing
    end
    function signal_handler_disconnect(_instance::GObject, _handler_id::Integer)
        ret = ccall(("g_signal_handler_disconnect", libgobject), Nothing, (Ptr{GObject}, UInt64), _instance, _handler_id)
        nothing
    end
    function signal_handler_is_connected(_instance::GObject, _handler_id::Integer)
        ret = ccall(("g_signal_handler_is_connected", libgobject), Cint, (Ptr{GObject}, UInt64), _instance, _handler_id)
        ret2 = convert(Bool, ret)
        ret2
    end
    function signal_handler_unblock(_instance::GObject, _handler_id::Integer)
        ret = ccall(("g_signal_handler_unblock", libgobject), Nothing, (Ptr{GObject}, UInt64), _instance, _handler_id)
        nothing
    end
    function signal_handlers_destroy(_instance::GObject)
        ret = ccall(("g_signal_handlers_destroy", libgobject), Nothing, (Ptr{GObject},), _instance)
        nothing
    end
    function signal_has_handler_pending(_instance::GObject, _signal_id::Integer, _detail::Integer, _may_be_blocked::Bool)
        ret = ccall(("g_signal_has_handler_pending", libgobject), Cint, (Ptr{GObject}, UInt32, UInt32, Cint), _instance, _signal_id, _detail, _may_be_blocked)
        ret2 = convert(Bool, ret)
        ret2
    end
    function signal_is_valid_name(_name::Union{AbstractString, Symbol})
        ret = ccall(("g_signal_is_valid_name", libgobject), Cint, (Cstring,), _name)
        ret2 = convert(Bool, ret)
        ret2
    end
    function signal_list_ids(_itype::Integer)
        m_n_ids = Ref{UInt32}()
        ret = ccall(("g_signal_list_ids", libgobject), Ptr{UInt32}, (UInt64, Ptr{UInt32}), _itype, m_n_ids)
        _n_ids = m_n_ids[]
        ret
    end
    function signal_lookup(_name::Union{AbstractString, Symbol}, _itype::Integer)
        ret = ccall(("g_signal_lookup", libgobject), UInt32, (Cstring, UInt64), _name, _itype)
        ret
    end
    function signal_name(_signal_id::Integer)
        ret = ccall(("g_signal_name", libgobject), Cstring, (UInt32,), _signal_id)
        ret2 = if ret == C_NULL
                nothing
            else
                bytestring(ret, false)
            end
        ret2
    end
    function signal_parse_name(_detailed_signal::Union{AbstractString, Symbol}, _itype::Integer, _force_detail_quark::Bool)
        m_signal_id_p = Ref{UInt32}()
        m_detail_p = Ref{UInt32}()
        ret = ccall(("g_signal_parse_name", libgobject), Cint, (Cstring, UInt64, Ptr{UInt32}, Ptr{UInt32}, Cint), _detailed_signal, _itype, m_signal_id_p, m_detail_p, _force_detail_quark)
        ret2 = convert(Bool, ret)
        _signal_id_p = m_signal_id_p[]
        _detail_p = m_detail_p[]
        (ret2, _signal_id_p, _detail_p)
    end
    function signal_remove_emission_hook(_signal_id::Integer, _hook_id::Integer)
        ret = ccall(("g_signal_remove_emission_hook", libgobject), Nothing, (UInt32, UInt64), _signal_id, _hook_id)
        nothing
    end
    function signal_stop_emission(_instance::GObject, _signal_id::Integer, _detail::Integer)
        ret = ccall(("g_signal_stop_emission", libgobject), Nothing, (Ptr{GObject}, UInt32, UInt32), _instance, _signal_id, _detail)
        nothing
    end
    function signal_stop_emission_by_name(_instance::GObject, _detailed_signal::Union{AbstractString, Symbol})
        ret = ccall(("g_signal_stop_emission_by_name", libgobject), Nothing, (Ptr{GObject}, Cstring), _instance, _detailed_signal)
        nothing
    end
    function strdup_value_contents(_value::Union{GValue, Ref{_GValue}})
        ret = ccall(("g_strdup_value_contents", libgobject), Cstring, (Ptr{_GValue},), _value)
        ret2 = if ret == C_NULL
                nothing
            else
                bytestring(ret, true)
            end
        ret2
    end
    function type_add_class_private(_class_type::Integer, _private_size::Integer)
        ret = ccall(("g_type_add_class_private", libgobject), Nothing, (UInt64, UInt64), _class_type, _private_size)
        nothing
    end
    function type_add_instance_private(_class_type::Integer, _private_size::Integer)
        ret = ccall(("g_type_add_instance_private", libgobject), Int32, (UInt64, UInt64), _class_type, _private_size)
        ret
    end
    function type_add_interface_dynamic(_instance_type::Integer, _interface_type::Integer, _plugin::GTypePlugin)
        ret = ccall(("g_type_add_interface_dynamic", libgobject), Nothing, (UInt64, UInt64, Ptr{GObject}), _instance_type, _interface_type, _plugin)
        nothing
    end
    function type_check_class_is_a(_g_class::_GTypeClass, _is_a_type::Integer)
        ret = ccall(("g_type_check_class_is_a", libgobject), Cint, (Ptr{_GTypeClass}, UInt64), _g_class, _is_a_type)
        ret2 = convert(Bool, ret)
        ret2
    end
    function type_check_is_value_type(_type::Integer)
        ret = ccall(("g_type_check_is_value_type", libgobject), Cint, (UInt64,), _type)
        ret2 = convert(Bool, ret)
        ret2
    end
    function type_check_value(_value::Union{GValue, Ref{_GValue}})
        ret = ccall(("g_type_check_value", libgobject), Cint, (Ptr{_GValue},), _value)
        ret2 = convert(Bool, ret)
        ret2
    end
    function type_check_value_holds(_value::Union{GValue, Ref{_GValue}}, _type::Integer)
        ret = ccall(("g_type_check_value_holds", libgobject), Cint, (Ptr{_GValue}, UInt64), _value, _type)
        ret2 = convert(Bool, ret)
        ret2
    end
    function type_children(_type::Integer)
        m_n_children = Ref{UInt32}()
        ret = ccall(("g_type_children", libgobject), Ptr{UInt64}, (UInt64, Ptr{UInt32}), _type, m_n_children)
        _n_children = m_n_children[]
        ret
    end
    function type_class_adjust_private_offset(_g_class::Maybe(Nothing), _private_size_or_offset::Int32)
        _g_class = if _g_class == nothing
                C_NULL
            else
                _g_class
            end
        ret = ccall(("g_type_class_adjust_private_offset", libgobject), Nothing, (Ptr{Nothing}, Ptr{Int32}), _g_class, _private_size_or_offset)
        nothing
    end
    function type_depth(_type::Integer)
        ret = ccall(("g_type_depth", libgobject), UInt32, (UInt64,), _type)
        ret
    end
    function type_ensure(_type::Integer)
        ret = ccall(("g_type_ensure", libgobject), Nothing, (UInt64,), _type)
        nothing
    end
    function type_fundamental(_type_id::Integer)
        ret = ccall(("g_type_fundamental", libgobject), UInt64, (UInt64,), _type_id)
        ret
    end
    function type_fundamental_next()
        ret = ccall(("g_type_fundamental_next", libgobject), UInt64, ())
        ret
    end
    function type_get_instance_count(_type::Integer)
        ret = ccall(("g_type_get_instance_count", libgobject), Int32, (UInt64,), _type)
        ret
    end
    function type_get_plugin(_type::Integer)
        ret = ccall(("g_type_get_plugin", libgobject), Ptr{GObject}, (UInt64,), _type)
        ret2 = begin
                leaftype = GLib.find_leaf_type(ret)
                convert(leaftype, ret, false)
            end
        ret2
    end
    function type_get_qdata(_type::Integer, _quark::Integer)
        ret = ccall(("g_type_get_qdata", libgobject), Ptr{Nothing}, (UInt64, UInt32), _type, _quark)
        ret2 = convert(Nothing, ret)
        ret2
    end
    function type_get_type_registration_serial()
        ret = ccall(("g_type_get_type_registration_serial", libgobject), UInt32, ())
        ret
    end
    function type_interface_add_prerequisite(_interface_type::Integer, _prerequisite_type::Integer)
        ret = ccall(("g_type_interface_add_prerequisite", libgobject), Nothing, (UInt64, UInt64), _interface_type, _prerequisite_type)
        nothing
    end
    function type_interface_get_plugin(_instance_type::Integer, _interface_type::Integer)
        ret = ccall(("g_type_interface_get_plugin", libgobject), Ptr{GObject}, (UInt64, UInt64), _instance_type, _interface_type)
        ret2 = begin
                leaftype = GLib.find_leaf_type(ret)
                convert(leaftype, ret, false)
            end
        ret2
    end
    function type_interface_instantiatable_prerequisite(_interface_type::Integer)
        ret = ccall(("g_type_interface_instantiatable_prerequisite", libgobject), UInt64, (UInt64,), _interface_type)
        ret
    end
    function type_interface_prerequisites(_interface_type::Integer)
        m_n_prerequisites = Ref{UInt32}()
        ret = ccall(("g_type_interface_prerequisites", libgobject), Ptr{UInt64}, (UInt64, Ptr{UInt32}), _interface_type, m_n_prerequisites)
        _n_prerequisites = m_n_prerequisites[]
        ret
    end
    function type_interfaces(_type::Integer)
        m_n_interfaces = Ref{UInt32}()
        ret = ccall(("g_type_interfaces", libgobject), Ptr{UInt64}, (UInt64, Ptr{UInt32}), _type, m_n_interfaces)
        _n_interfaces = m_n_interfaces[]
        ret
    end
    function type_name_from_class(_g_class::_GTypeClass)
        ret = ccall(("g_type_name_from_class", libgobject), Cstring, (Ptr{_GTypeClass},), _g_class)
        ret2 = if ret == C_NULL
                nothing
            else
                bytestring(ret, false)
            end
        ret2
    end
    function type_next_base(_leaf_type::Integer, _root_type::Integer)
        ret = ccall(("g_type_next_base", libgobject), UInt64, (UInt64, UInt64), _leaf_type, _root_type)
        ret
    end
    function type_qname(_type::Integer)
        ret = ccall(("g_type_qname", libgobject), UInt32, (UInt64,), _type)
        ret
    end
    function type_query(_type::Integer)
        m_query = Ref{_GTypeQuery}()
        ret = ccall(("g_type_query", libgobject), Nothing, (UInt64, Ptr{_GTypeQuery}), _type, m_query)
        _query = m_query[]
        _query
    end
    function type_register_dynamic(_parent_type::Integer, _type_name::Union{AbstractString, Symbol}, _plugin::GTypePlugin, _flags)
        ret = ccall(("g_type_register_dynamic", libgobject), UInt64, (UInt64, Cstring, Ptr{GObject}, UInt32), _parent_type, _type_name, _plugin, _flags)
        ret
    end
    function type_set_qdata(_type::Integer, _quark::Integer, _data::Maybe(Nothing))
        _data = if _data == nothing
                C_NULL
            else
                _data
            end
        ret = ccall(("g_type_set_qdata", libgobject), Nothing, (UInt64, UInt32, Ptr{Nothing}), _type, _quark, _data)
        nothing
    end
    function value_type_compatible(_src_type::Integer, _dest_type::Integer)
        ret = ccall(("g_value_type_compatible", libgobject), Cint, (UInt64, UInt64), _src_type, _dest_type)
        ret2 = convert(Bool, ret)
        ret2
    end
    function value_type_transformable(_src_type::Integer, _dest_type::Integer)
        ret = ccall(("g_value_type_transformable", libgobject), Cint, (UInt64, UInt64), _src_type, _dest_type)
        ret2 = convert(Bool, ret)
        ret2
    end
end))
end
