27 #define vl_print(handle, ...) 58 #include "io_fd_vpp_jvpp_core_JVppCoreImpl.h" 59 #include "jvpp_core_gen.h" 62 (JNIEnv * env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index) {
68 plugin_main->
callbackClass = (jclass)(*env)->NewGlobalRef(env, (*env)->GetObjectClass(env, callback));
71 vl_msg_api_set_handlers(VL_API_##N, #n, \ 72 vl_api_##n##_t_handler, \ 76 sizeof(vl_api_##n##_t), 1); 77 foreach_api_reply_handler;
82 (JNIEnv *env, jclass clazz) {
96 if ((*vm)->GetEnv(vm, (
void**) &env, JNI_VERSION_1_8) != JNI_OK) {
100 if (cache_class_references(env) != 0) {
105 return JNI_VERSION_1_8;
110 if ((*vm)->GetEnv(vm, (
void**) &env, JNI_VERSION_1_8) != JNI_OK) {
113 delete_class_references(env);
unix_shared_memory_queue_t * vl_input_queue
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_core_JVppCoreImpl_init0(JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index)
jint JNI_OnLoad(JavaVM *vm, void *reserved)
#define clib_warning(format, args...)
void JNI_OnUnload(JavaVM *vm, void *reserved)
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_core_JVppCoreImpl_close0(JNIEnv *env, jclass clazz)
struct _unix_shared_memory_queue unix_shared_memory_queue_t