
#
# Autogenerated by Thrift
#
# DO NOT EDIT
#  @generated
#

from thrift.python.capi.cpp_converter cimport cpp_to_python, python_to_cpp
from libcpp.utility cimport move as cmove

cdef extern from "thrift/compiler/test/fixtures/py3/gen-python-capi/module/thrift_types_capi.h":
    pass

cdef cSimpleException SimpleException_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cSimpleException](inst))

cdef object SimpleException_from_cpp(const cSimpleException& c_struct):
    return cpp_to_python[cSimpleException](c_struct)

cdef cOptionalRefStruct OptionalRefStruct_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cOptionalRefStruct](inst))

cdef object OptionalRefStruct_from_cpp(const cOptionalRefStruct& c_struct):
    return cpp_to_python[cOptionalRefStruct](c_struct)

cdef cSimpleStruct SimpleStruct_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cSimpleStruct](inst))

cdef object SimpleStruct_from_cpp(const cSimpleStruct& c_struct):
    return cpp_to_python[cSimpleStruct](c_struct)

cdef cHiddenTypeFieldsStruct HiddenTypeFieldsStruct_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cHiddenTypeFieldsStruct](inst))

cdef object HiddenTypeFieldsStruct_from_cpp(const cHiddenTypeFieldsStruct& c_struct):
    return cpp_to_python[cHiddenTypeFieldsStruct](c_struct)

cdef cAdaptedUnion AdaptedUnion_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cAdaptedUnion](inst))

cdef object AdaptedUnion_from_cpp(const cAdaptedUnion& c_struct):
    return cpp_to_python[cAdaptedUnion](c_struct)

cdef cHiddenException HiddenException_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cHiddenException](inst))

cdef object HiddenException_from_cpp(const cHiddenException& c_struct):
    return cpp_to_python[cHiddenException](c_struct)

cdef cComplexStruct ComplexStruct_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cComplexStruct](inst))

cdef object ComplexStruct_from_cpp(const cComplexStruct& c_struct):
    return cpp_to_python[cComplexStruct](c_struct)

cdef cBinaryUnion BinaryUnion_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cBinaryUnion](inst))

cdef object BinaryUnion_from_cpp(const cBinaryUnion& c_struct):
    return cpp_to_python[cBinaryUnion](c_struct)

cdef cBinaryUnionStruct BinaryUnionStruct_convert_to_cpp(object inst) except *:
    return cmove(python_to_cpp[cBinaryUnionStruct](inst))

cdef object BinaryUnionStruct_from_cpp(const cBinaryUnionStruct& c_struct):
    return cpp_to_python[cBinaryUnionStruct](c_struct)

