22 #include "helpers.hpp"
26 #include "jtie_lib.hpp"
29 #include "myjapi_MyJapiCtypes.hpp"
30 #include "myjapi_MyJapi.hpp"
31 #include "myjapi_classes.hpp"
38 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_A,
"myjapi/A")
39 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_B0, "myjapi/
B0")
40 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_B1, "myjapi/
B1")
41 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_CI_C0, "myjapi/CI$C0")
42 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_CI_C1, "myjapi/CI$C1")
43 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_CI_C0Array, "myjapi/CI$C0Array")
44 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_CI_C1Array, "myjapi/CI$C1Array")
45 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_D0, "myjapi/
D0")
46 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_D1, "myjapi/
D1")
47 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_D2, "myjapi/
D2")
48 JTIE_INSTANTIATE_PEER_CLASS_MAPPING(myjapi_E, "myjapi/
E")
51 JTIE_INSTANTIATE_JINT_ENUM_TYPE_MAPPING(
E::EE)
59 JNIEXPORT jint JNICALL
60 JNI_OnLoad(JavaVM * jvm,
void * reserved)
62 TRACE(
"jint JNI_OnLoad(JavaVM *, void *)");
63 VERBOSE(
"loading the MyJAPI JTie library ...");
65 const jint required_jni_version = JTie_OnLoad(jvm, reserved);
66 if (required_jni_version == JNI_ERR) {
67 PRINT_ERROR(
"JTie_OnLoad() returned: JNI_ERR");
71 VERBOSE(
"initializing the myapi resources ...");
73 VERBOSE(
"... initialized the myapi resources");
75 VERBOSE(
"... loaded the MyJAPI JTie library");
76 return required_jni_version;
82 JNIEXPORT
void JNICALL
83 JNI_OnUnload(JavaVM * jvm,
void * reserved)
85 TRACE(
"void JNI_OnUnload(JavaVM *, void *)");
86 VERBOSE(
"unloading the MyJAPI JTie library...");
88 VERBOSE(
"releasing the myapi resources ...");
90 VERBOSE(
"... released the myapi resources");
92 JTie_OnUnload(jvm, reserved);
94 VERBOSE(
"... unloaded the MyJAPI JTie library");