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