Skip to content

Commit

Permalink
import some PyCapsule related python C API (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
songjhaha authored Sep 22, 2022
1 parent e2a0d7f commit bbfddd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TyPython/src/CPython.APIs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ mutable struct PythonAPIStruct
PyEval_EvalCode::cfunc_t(C.Ptr{PyObject}, C.Ptr{PyObject}, C.Ptr{PyObject}, Except(Py_NULLPTR, C.Ptr{PyObject}))
Py_CompileString::cfunc_t(Cstring, Cstring, Cint, Except(Py_NULLPTR, C.Ptr{PyObject}))

PyCapsule_Type::C.Ptr{PyObject}
PyCapsule_SetDestructor::cfunc_t(C.Ptr{PyObject}, Ptr{Cvoid}, Cint)
PyCapsule_GetPointer::cfunc_t(C.Ptr{PyObject}, Cstring, Ptr{Cvoid})
PyCapsule_GetName::cfunc_t(C.Ptr{PyObject}, Cstring)
PyCapsule_SetName::cfunc_t(C.Ptr{PyObject}, Cstring, Cint)
PyCapsule_New::cfunc_t(Ptr{Cvoid}, Cstring, Ptr{Cvoid}, C.Ptr{PyObject})
PyObject_ClearWeakRefs::cfunc_t(C.Ptr{PyObject}, Cvoid)
PyCFunction_NewEx::cfunc_t(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Except(Py_NULLPTR, C.Ptr{PyObject}))
Expand Down

0 comments on commit bbfddd4

Please sign in to comment.