Steve Dower | b82e17e | 2019-05-23 08:45:22 -0700 | [diff] [blame] | 1 | #ifndef Py_CPYTHON_SYSMODULE_H |
| 2 | # error "this header file must not be included directly" |
| 3 | #endif |
| 4 | |
| 5 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key); |
| 10 | PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *); |
| 11 | |
| 12 | PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *); |
| 13 | |
| 14 | typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *); |
| 15 | |
Victor Stinner | 08faf00 | 2020-03-26 18:57:32 +0100 | [diff] [blame^] | 16 | PyAPI_FUNC(int) PySys_Audit( |
| 17 | const char *event, |
| 18 | const char *argFormat, |
| 19 | ...); |
Steve Dower | b82e17e | 2019-05-23 08:45:22 -0700 | [diff] [blame] | 20 | PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*); |
| 21 | |
| 22 | #ifdef __cplusplus |
| 23 | } |
| 24 | #endif |