25 #define PyCapsule_CheckExact(op) (Py_TYPE(op) == &PyCapsule_Type)
33 PyAPI_FUNC(
void *) PyCapsule_GetPointer(PyObject *capsule, const
char *name);
37 PyAPI_FUNC(const
char *) PyCapsule_GetName(PyObject *capsule);
39 PyAPI_FUNC(
void *) PyCapsule_GetContext(PyObject *capsule);
41 PyAPI_FUNC(
int) PyCapsule_IsValid(PyObject *capsule, const
char *name);
43 PyAPI_FUNC(
int) PyCapsule_SetPointer(PyObject *capsule,
void *pointer);
47 PyAPI_FUNC(
int) PyCapsule_SetName(PyObject *capsule, const
char *name);