SaxonC 12.4
Saxon Processor library for C/C++, PHP and Python
|
This C header file contains a number of factory functions for running SaxonC C/C++ APIs, including GraalVM create and destroy functions. More...
#include <libsaxon-eec-12.4.2.h>
#include <stdint.h>
#include <stdio.h>
#include <windows.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | sxnc_environment |
struct | sxnc_parameter |
struct | sxnc_property |
struct | sxnc_value |
struct | sxnc_processor |
Macros | |
#define | EXTERN_SAXONC |
#define | EXTERN_SAXONC_END |
#define | sxn_license 0 |
Typedefs | |
typedef void *(* | allocFn) (size_t length) |
Functions | |
char * | _getResourceDirectory () |
int | create_graalvm_isolate (sxnc_environment *env) |
int | attach_graalvm_thread (sxnc_environment *env) |
int | detach_graalvm_thread (sxnc_environment *env) |
int64_t | createSaxonProcessor2 (graal_isolatethread_t *thread, int license) |
int | c_createSaxonProcessor (sxnc_environment *environi, sxnc_processor *processor, int license) |
const char * | checkForException (sxnc_environment *environi) |
void | graal_tear_down (graal_isolatethread_t *thread) |
int64_t | getParameter (sxnc_parameter *parameters, int parLen, const char *name) |
char * | getProperty (sxnc_property *properties, int propLen, const char *name) |
void | setParameter (sxnc_parameter **parameters, int *parLen, int *parCap, const char *name, sxnc_value *value) |
void | setProperty (sxnc_property **properties, int *propLen, int *propCap, const char *name, const char *value) |
void | clearSettings (sxnc_parameter **parameters, int *parLen, sxnc_property **properties, int *propLen) |
Variables | |
EXTERN_SAXONC char * | dllname |
char * | resources_dir |
int | jvmCreated |
int64_t | cpp |
const char * | failure |
This C header file contains a number of factory functions for running SaxonC C/C++ APIs, including GraalVM create and destroy functions.
char * _getResourceDirectory | ( | ) |
Get resources directory.
int c_createSaxonProcessor | ( | sxnc_environment * | environi, |
sxnc_processor * | processor, | ||
int | license | ||
) |
Create a pointer to the Saxon Processor. Here we pass in the processor pointer which should have been allocated memory space in advance. Return status true = success, false = failed to create Saxon Processor.
const char * checkForException | ( | sxnc_environment * | environi | ) |
Callback to check for exceptions. When called it returns the exception as a string.
void clearSettings | ( | sxnc_parameter ** | parameters, |
int * | parLen, | ||
sxnc_property ** | properties, | ||
int * | propLen | ||
) |
Clear parameters and properties.
int create_graalvm_isolate | ( | sxnc_environment * | env | ) |
Load dll using the default setting in SaxonC. Recommended method to use to load library.
int detach_graalvm_thread | ( | sxnc_environment * | env | ) |
Closes down the GraalVM environment used by SaxonC
int64_t getParameter | ( | sxnc_parameter * | parameters, |
int | parLen, | ||
const char * | name | ||
) |
Get a parameter from the list.
char * getProperty | ( | sxnc_property * | properties, |
int | propLen, | ||
const char * | name | ||
) |
Get a property from the list.
void graal_tear_down | ( | graal_isolatethread_t * | thread | ) |
Clean up and destroy GraalVM to release memory used.
void setParameter | ( | sxnc_parameter ** | parameters, |
int * | parLen, | ||
int * | parCap, | ||
const char * | name, | ||
sxnc_value * | value | ||
) |
Set a parameter.
void setProperty | ( | sxnc_property ** | properties, |
int * | propLen, | ||
int * | propCap, | ||
const char * | name, | ||
const char * | value | ||
) |
Set a property.