go-ph7/cgo.h

15 lines
607 B
C

#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);
int vm_config_err_report(ph7_vm *pVm);
int vm_output_length(ph7_vm *pVm, unsigned int *pLength);
int vm_add_import_path(ph7_vm *pVm, const char *zIncludePath);
extern int write_vm_output(void*, unsigned int, void*);
int vm_set_output_callback(ph7_vm *pVm, void *pUserData);
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);