28 #define DEBUG_LOG(...) clib_warning(__VA_ARGS__) 30 #define DEBUG_LOG(...) 35 #include "jvpp-ioamexport/io_fd_vpp_jvpp_ioamexport_JVppIoamexportImpl.h" 37 #include "jvpp-ioamexport/jvpp_ioamexport_gen.h" 45 (JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index) {
47 clib_warning (
"Java_io_fd_vpp_jvpp_ioamexport_JVppIoamexportImpl_init0");
53 plugin_main->
callbackClass = (jclass)(*env)->NewGlobalRef(env, (*env)->GetObjectClass(env, callback));
57 if (get_message_id(env, #N) == 0) return; 58 foreach_supported_api_message;
62 vl_msg_api_set_handlers(get_message_id(env, #N), #n, \ 63 vl_api_##n##_t_handler, \ 67 sizeof(vl_api_##n##_t), 1); 68 foreach_api_reply_handler;
73 (JNIEnv *env, jclass clazz) {
88 if ((*vm)->GetEnv(vm, (
void**) &env, JNI_VERSION_1_8) != JNI_OK) {
92 if (cache_class_references(env) != 0) {
97 return JNI_VERSION_1_8;
103 if ((*vm)->GetEnv(vm, (
void**) &env, JNI_VERSION_1_8) != JNI_OK) {
106 delete_class_references(env);
void JNI_OnUnload(JavaVM *vm, void *reserved)
ioamexport_main_t ioamexport_main
jint JNI_OnLoad(JavaVM *vm, void *reserved)
svm_queue_t * vl_input_queue
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_ioamexport_JVppIoamexportImpl_close0(JNIEnv *env, jclass clazz)
#define clib_warning(format, args...)
#define uword_to_pointer(u, type)
struct _svm_queue svm_queue_t
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_ioamexport_JVppIoamexportImpl_init0(JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index)