28 #define DEBUG_LOG(...) clib_warning(__VA_ARGS__) 30 #define DEBUG_LOG(...) 35 #include "jvpp-pppoe/io_fd_vpp_jvpp_pppoe_JVppPppoeImpl.h" 37 #include "jvpp-pppoe/jvpp_pppoe_gen.h" 45 (JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index) {
47 clib_warning (
"Java_io_fd_vpp_jvpp_pppoe_JVppPppoeImpl_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)
unix_shared_memory_queue_t * vl_input_queue
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_pppoe_JVppPppoeImpl_init0(JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index)
JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_pppoe_JVppPppoeImpl_close0(JNIEnv *env, jclass clazz)
#define clib_warning(format, args...)
jint JNI_OnLoad(JavaVM *vm, void *reserved)
struct _unix_shared_memory_queue unix_shared_memory_queue_t