Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python2....
File: pycapsule.h
[0] Fix | Delete
/* Capsule objects let you wrap a C "void *" pointer in a Python
[1] Fix | Delete
object. They're a way of passing data through the Python interpreter
[2] Fix | Delete
without creating your own custom type.
[3] Fix | Delete
[4] Fix | Delete
Capsules are used for communication between extension modules.
[5] Fix | Delete
They provide a way for an extension module to export a C interface
[6] Fix | Delete
to other extension modules, so that extension modules can use the
[7] Fix | Delete
Python import mechanism to link to one another.
[8] Fix | Delete
[9] Fix | Delete
For more information, please see "c-api/capsule.html" in the
[10] Fix | Delete
documentation.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
#ifndef Py_CAPSULE_H
[14] Fix | Delete
#define Py_CAPSULE_H
[15] Fix | Delete
#ifdef __cplusplus
[16] Fix | Delete
extern "C" {
[17] Fix | Delete
#endif
[18] Fix | Delete
[19] Fix | Delete
PyAPI_DATA(PyTypeObject) PyCapsule_Type;
[20] Fix | Delete
[21] Fix | Delete
typedef void (*PyCapsule_Destructor)(PyObject *);
[22] Fix | Delete
[23] Fix | Delete
#define PyCapsule_CheckExact(op) (Py_TYPE(op) == &PyCapsule_Type)
[24] Fix | Delete
[25] Fix | Delete
[26] Fix | Delete
PyAPI_FUNC(PyObject *) PyCapsule_New(
[27] Fix | Delete
void *pointer,
[28] Fix | Delete
const char *name,
[29] Fix | Delete
PyCapsule_Destructor destructor);
[30] Fix | Delete
[31] Fix | Delete
PyAPI_FUNC(void *) PyCapsule_GetPointer(PyObject *capsule, const char *name);
[32] Fix | Delete
[33] Fix | Delete
PyAPI_FUNC(PyCapsule_Destructor) PyCapsule_GetDestructor(PyObject *capsule);
[34] Fix | Delete
[35] Fix | Delete
PyAPI_FUNC(const char *) PyCapsule_GetName(PyObject *capsule);
[36] Fix | Delete
[37] Fix | Delete
PyAPI_FUNC(void *) PyCapsule_GetContext(PyObject *capsule);
[38] Fix | Delete
[39] Fix | Delete
PyAPI_FUNC(int) PyCapsule_IsValid(PyObject *capsule, const char *name);
[40] Fix | Delete
[41] Fix | Delete
PyAPI_FUNC(int) PyCapsule_SetPointer(PyObject *capsule, void *pointer);
[42] Fix | Delete
[43] Fix | Delete
PyAPI_FUNC(int) PyCapsule_SetDestructor(PyObject *capsule, PyCapsule_Destructor destructor);
[44] Fix | Delete
[45] Fix | Delete
PyAPI_FUNC(int) PyCapsule_SetName(PyObject *capsule, const char *name);
[46] Fix | Delete
[47] Fix | Delete
PyAPI_FUNC(int) PyCapsule_SetContext(PyObject *capsule, void *context);
[48] Fix | Delete
[49] Fix | Delete
PyAPI_FUNC(void *) PyCapsule_Import(const char *name, int no_block);
[50] Fix | Delete
[51] Fix | Delete
#ifdef __cplusplus
[52] Fix | Delete
}
[53] Fix | Delete
#endif
[54] Fix | Delete
#endif /* !Py_CAPSULE_H */
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function