2022-11-25 07:56:56 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include "ph7.h"
|
|
|
|
|
|
|
|
int engine_config_err_log(ph7 *pEngine, const char **pzPtr, int *pLen);
|
|
|
|
int vm_extract_output(ph7_vm *pVm, const char **pzPtr, int *pLen);
|
2022-11-28 00:10:28 +00:00
|
|
|
int vm_config_err_report(ph7_vm *pVm);
|
2022-11-28 04:49:36 +00:00
|
|
|
int vm_output_length(ph7_vm *pVm, unsigned int *pLength);
|
2022-11-28 17:06:31 +00:00
|
|
|
int vm_add_import_path(ph7_vm *pVm, const char *zIncludePath);
|
2022-11-25 07:56:56 +00:00
|
|
|
|
|
|
|
extern int write_vm_output(void*, unsigned int, void*);
|
|
|
|
int vm_set_output_callback(ph7_vm *pVm, void *pUserData);
|
2022-11-27 04:45:16 +00:00
|
|
|
|
|
|
|
extern int call_foreign_function(ph7_context *pCtx, int argc, ph7_value **argv);
|
|
|
|
int vm_create_function(ph7_vm *pVm, const char *zName, void *pUserData);
|