workflows / ComfyUI-Easy-Install-Windows /Helper-CEI-NEXT /ComfyUI-Easy-Install /python_embeded_3.12 /include /descrobject.h
| /* Descriptors */ | |
| extern "C" { | |
| typedef PyObject *(*getter)(PyObject *, void *); | |
| typedef int (*setter)(PyObject *, PyObject *, void *); | |
| struct PyGetSetDef { | |
| const char *name; | |
| getter get; | |
| setter set; | |
| const char *doc; | |
| void *closure; | |
| }; | |
| PyAPI_DATA(PyTypeObject) PyClassMethodDescr_Type; | |
| PyAPI_DATA(PyTypeObject) PyGetSetDescr_Type; | |
| PyAPI_DATA(PyTypeObject) PyMemberDescr_Type; | |
| PyAPI_DATA(PyTypeObject) PyMethodDescr_Type; | |
| PyAPI_DATA(PyTypeObject) PyWrapperDescr_Type; | |
| PyAPI_DATA(PyTypeObject) PyDictProxy_Type; | |
| PyAPI_DATA(PyTypeObject) PyProperty_Type; | |
| PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *); | |
| PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *); | |
| PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *, PyMemberDef *); | |
| PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *, PyGetSetDef *); | |
| PyAPI_FUNC(PyObject *) PyDictProxy_New(PyObject *); | |
| PyAPI_FUNC(PyObject *) PyWrapper_New(PyObject *, PyObject *); | |
| /* An array of PyMemberDef structures defines the name, type and offset | |
| of selected members of a C structure. These can be read by | |
| PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY | |
| flag is set). The array must be terminated with an entry whose name | |
| pointer is NULL. */ | |
| struct PyMemberDef { | |
| const char *name; | |
| int type; | |
| Py_ssize_t offset; | |
| int flags; | |
| const char *doc; | |
| }; | |
| // These constants used to be in structmember.h, not prefixed by Py_. | |
| // (structmember.h now has aliases to the new names.) | |
| /* Types */ | |
| /* the ordering here is weird for binary compatibility */ | |
| /* unsigned variants: */ | |
| /* Added by Jack: strings contained in the structure */ | |
| /* Added by Lillo: bools contained in the structure (assumed char) */ | |
| /* Flags */ | |
| PyAPI_FUNC(PyObject *) PyMember_GetOne(const char *, PyMemberDef *); | |
| PyAPI_FUNC(int) PyMember_SetOne(char *, PyMemberDef *, PyObject *); | |
| } | |