Debian Codegraph @

Include/internal/pycore_audit.h

raw
1 #ifndef Py_INTERNAL_AUDIT_H
2 #define Py_INTERNAL_AUDIT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #ifndef Py_BUILD_CORE
8 # error "this header requires Py_BUILD_CORE define"
9 #endif
10
11
12 /* Runtime audit hook state */
13
14 typedef struct _Py_AuditHookEntry {
15 struct _Py_AuditHookEntry *next;
16 Py_AuditHookFunction hookCFunction;
17 void *userData;
18 } _Py_AuditHookEntry;
19
20
21 extern 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 than
28 // PyAPI_FUNC(). We want minimal exposure of this function.
29 extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
30
31
32 #ifdef __cplusplus
33 }
34 #endif
35 #endif /* !Py_INTERNAL_AUDIT_H */