14 #if defined __linux__ || defined __APPLE__
22 #define LoadLibrary(x) dlopen(x, RTLD_LAZY)
23 #define GetProcAddress(x,y) dlsym(x,y)
29 #define EXTERN_SAXONC extern "C" {
30 #define EXTERN_SAXONC_END }
33 #define EXTERN_SAXONC_END
46 static const bool false = 0;
47 static const bool true = 1;
68 extern char * dllname;
70 extern char * resources_dir;
73 extern int jvmCreated;
114 extern const char * failure;
128 char * getResourceDirectory();
134 char * _getResourceDirectory();
146 HANDLE loadDefaultDll();
153 HANDLE loadDll(
char* name);
156 extern jint (JNICALL * JNI_GetDefaultJavaVMInitArgs_func) (
void *args);
158 extern jint (JNICALL * JNI_CreateJavaVM_func) (JavaVM **pvm,
void **penv,
void *args);
171 void initJavaRT(HANDLE myDllHandle, JavaVM** pjvm, JNIEnv** penv);
177 jclass lookForClass (JNIEnv* penv,
const char* name);
183 void invokeInstanceMethod (JNIEnv* penv, jclass myClassInDll,
char * name,
char * arguments);
191 void invokeStaticMethod(JNIEnv* penv, jclass myClassInDll,
char* name,
char* arguments);
197 jmethodID findConstructor (JNIEnv* penv, jclass myClassInDll,
char* arguments);
203 jobject createSaxonProcessor (JNIEnv* penv, jclass myClassInDll,
const char * arguments, jobject argument1, jboolean licensei);
209 jobject createSaxonProcessor2 (JNIEnv* penv, jclass myClassInDll,
const char * arguments, jobject argument1);
219 void finalizeJavaRT (JavaVM* jvm);
225 jobject getParameter(
sxnc_parameter *parameters,
int parLen,
const char* namespacei,
const char * name);
230 char* getProperty(
sxnc_property * properties,
int propLen,
const char* namespacei,
const char * name);
236 void setParameter(
sxnc_parameter **parameters,
int *parLen,
int *parCap,
const char * namespacei,
const char * name, jobject value);
242 void setProperty(
sxnc_property ** properties,
int *propLen,
int *propCap,
const char* name,
const char* value);
Definition: SaxonCGlue.h:80
Definition: SaxonCGlue.h:92
char * namespacei
Definition: SaxonCGlue.h:95
jobject value
Definition: SaxonCGlue.h:94
char * name
Definition: SaxonCGlue.h:93
Definition: SaxonCGlue.h:103
char * value
Definition: SaxonCGlue.h:105
char * name
Definition: SaxonCGlue.h:104