codekingpro/portable-devtools
114k
1#ifndef Py_INTERNAL_AUDIT_H2#define Py_INTERNAL_AUDIT_H3#ifdef __cplusplus4extern "C" {5#endif6 7#ifndef Py_BUILD_CORE8# error "this header requires Py_BUILD_CORE define"9#endif10 11 12/* Runtime audit hook state */13 14typedef struct _Py_AuditHookEntry {15 struct _Py_AuditHookEntry *next;16 Py_AuditHookFunction hookCFunction;17 void *userData;18} _Py_AuditHookEntry;19 20 21extern int _PySys_Audit(22 PyThreadState *tstate,23 const char *event,24 const char *argFormat,25 ...);26 27// _PySys_ClearAuditHooks() must not be exported: use extern rather than28// PyAPI_FUNC(). We want minimal exposure of this function.29extern void _PySys_ClearAuditHooks(PyThreadState *tstate);30 31 32#ifdef __cplusplus33}34#endif35#endif /* !Py_INTERNAL_AUDIT_H */36 