UnQLite C/C++ API Reference - Extract Jx9 Variable.
unqlite_value * unqlite_vm_extract_variable(unqlite_vm *pVm,const char *zVarname);
This routine is used to extract the content of some variable declared inside your Jx9 script which is a very useful way to share information between the host application and the target Jx9 script. After successful return from this routine, you can use the following interfaces to extract the raw content of the variable:
If you want to modify the content of the extracted variable, use the following interfaces:
A pointer to a unQLite Virtual Machine.
A pointer to a null terminated string holding the name of the variable to be extracted.
Variable content is returned on success. NULL is returned on failure (i.e. variable not declared).
Compile this C file for a smart introduction to this interface.