6 typedef void (*PSI_ContextErrorFunc
)(int type
, const char *msg
, ...);
8 typedef struct PSI_ContextOps
{
9 void (*init
)(struct PSI_Context
*C
);
10 void (*dtor
)(struct PSI_Context
*C
);
11 zend_function_entry
*(*compile
)(struct PSI_Context
*C
, struct PSI_Data
*D
);
14 typedef struct PSI_Context
{
16 PSI_ContextErrorFunc error
;
17 struct PSI_ContextOps
*ops
;
18 struct PSI_Data
*data
;
19 zend_function_entry
**closures
;
23 PSI_Context
*PSI_ContextInit(PSI_Context
*C
, PSI_ContextOps
*ops
, PSI_ContextErrorFunc error
);
24 void PSI_ContextBuild(PSI_Context
*C
, const char *path
);
25 zend_function_entry
*PSI_ContextCompile(PSI_Context
*C
, PSI_Data
*D
);
26 void PSI_ContextDtor(PSI_Context
*C
);
27 void PSI_ContextFree(PSI_Context
**C
);