28 #define DEBUG_LOG(...) clib_warning(__VA_ARGS__) 30 #define DEBUG_LOG(...) 35 #include "jvpp-nat/io_fd_vpp_jvpp_nat_JVppNatImpl.h" 37 #include "jvpp-nat/jvpp_nat_gen.h" 45 (JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index) {
47 clib_warning (
"Java_io_fd_vpp_jvpp_nat_JVppNatImpl_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);
svm_queue_t * vl_input_queue
jint JNI_OnLoad(JavaVM *vm, void *reserved)
void JNI_OnUnload(JavaVM *vm, void *reserved)
#define clib_warning(format, args...)
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_nat_JVppNatImpl_init0(JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index)
#define uword_to_pointer(u, type)
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_nat_JVppNatImpl_close0(JNIEnv *env, jclass clazz)
struct _svm_queue svm_queue_t