diff options
Diffstat (limited to 'contrib/tools/python3/src/Include/cpython/sysmodule.h')
| -rw-r--r-- | contrib/tools/python3/src/Include/cpython/sysmodule.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/tools/python3/src/Include/cpython/sysmodule.h b/contrib/tools/python3/src/Include/cpython/sysmodule.h new file mode 100644 index 00000000000..1802b5b3000 --- /dev/null +++ b/contrib/tools/python3/src/Include/cpython/sysmodule.h @@ -0,0 +1,24 @@ +#ifndef Py_CPYTHON_SYSMODULE_H +# error "this header file must not be included directly" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key); +PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *); + +PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *); + +typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *); + +PyAPI_FUNC(int) PySys_Audit( + const char *event, + const char *argFormat, + ...); +PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*); + +#ifdef __cplusplus +} +#endif |
