blob: 1802b5b300018e6498e0a4fdf469df0bb3a1285d [file] [log] [blame]
Steve Dowerb82e17e2019-05-23 08:45:22 -07001#ifndef Py_CPYTHON_SYSMODULE_H
2# error "this header file must not be included directly"
3#endif
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key);
10PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
11
12PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
13
14typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *);
15
Victor Stinner08faf002020-03-26 18:57:32 +010016PyAPI_FUNC(int) PySys_Audit(
17 const char *event,
18 const char *argFormat,
19 ...);
Steve Dowerb82e17e2019-05-23 08:45:22 -070020PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*);
21
22#ifdef __cplusplus
23}
24#endif