| 1 | // NB: unlike C, we do not need to forward declare structs in Rust. |
| 2 | // So we only define opaque structs for those which do not have public structure. |
| 3 | |
| 4 | // PyModuleDef |
| 5 | // PyModuleDef_Slot |
| 6 | // PyMethodDef |
| 7 | // PyGetSetDef |
| 8 | // PyMemberDef |
| 9 | |
| 10 | // PyObject |
| 11 | // PyLongObject |
| 12 | // PyTypeObject |
| 13 | opaque_struct!(pub PyCodeObject); |
| 14 | opaque_struct!(pub PyFrameObject); |
| 15 | |
| 16 | opaque_struct!(pub PyThreadState); |
| 17 | opaque_struct!(pub PyInterpreterState); |