mirror of
https://github.com/python/cpython.git
synced 2025-10-13 02:13:03 +00:00

Move the private _PyInterpreterID C API to the internal C API: add a new pycore_interp_id.h header file. Remove Include/interpreteridobject.h and Include/cpython/interpreteridobject.h header files.
28 lines
775 B
C
28 lines
775 B
C
/* Interpreter ID Object */
|
|
|
|
#ifndef Py_INTERNAL_INTERPRETERIDOBJECT_H
|
|
#define Py_INTERNAL_INTERPRETERIDOBJECT_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
// Export for the _xxsubinterpreters shared extension
|
|
PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type;
|
|
|
|
// Export for the _xxsubinterpreters shared extension
|
|
PyAPI_FUNC(PyObject*) _PyInterpreterID_New(int64_t);
|
|
|
|
// Export for the _xxinterpchannels shared extension
|
|
PyAPI_FUNC(PyObject*) _PyInterpreterState_GetIDObject(PyInterpreterState *);
|
|
|
|
// Export for the _testinternalcapi shared extension
|
|
PyAPI_FUNC(PyInterpreterState*) _PyInterpreterID_LookUp(PyObject *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // !Py_INTERNAL_INTERPRETERIDOBJECT_H
|