#include <jni.h>
#include <jvpp-common/jvpp_common.h>
-#include "org_openvpp_jvpp_VppJNIConnection.h"
-#include "org_openvpp_jvpp_JVppRegistryImpl.h"
+#include "io_fd_vpp_jvpp_VppJNIConnection.h"
+#include "io_fd_vpp_jvpp_JVppRegistryImpl.h"
#include <vpp-api/vpe_msg_enum.h>
#define vl_typedefs /* define message structures */
rm->controlPingReplyClass, "<init>", "()V");
jmethodID callbackMethod = (*env)->GetMethodID(env,
rm->registryClass, "onControlPingReply",
- "(Lorg/openvpp/jvpp/dto/ControlPingReply;)V");
+ "(Lio/fd/vpp/jvpp/dto/ControlPingReply;)V");
jobject dto = (*env)->NewObject(env, rm->controlPingReplyClass,
constructor);
return 0;
}
-JNIEXPORT jobject JNICALL Java_org_openvpp_jvpp_VppJNIConnection_clientConnect(
+JNIEXPORT jobject JNICALL Java_io_fd_vpp_jvpp_VppJNIConnection_clientConnect(
JNIEnv *env, jclass obj, jstring clientName) {
int rv;
const char *client_name;
jvpp_registry_main_t * rm = &jvpp_registry_main;
jclass connectionInfoClass = (*env)->FindClass(env,
- "org/openvpp/jvpp/VppJNIConnection$ConnectionInfo");
+ "io/fd/vpp/jvpp/VppJNIConnection$ConnectionInfo");
jmethodID connectionInfoConstructor = (*env)->GetMethodID(env,
connectionInfoClass, "<init>", "(JII)V");
(jint) jm->my_client_index, (jint) rv);
}
-JNIEXPORT jint JNICALL Java_org_openvpp_jvpp_JVppRegistryImpl_controlPing0(
+JNIEXPORT jint JNICALL Java_io_fd_vpp_jvpp_JVppRegistryImpl_controlPing0(
JNIEnv *env, jobject regstryObject) {
jvpp_main_t * jm = &jvpp_main;
vl_api_control_ping_t * mp;
return my_context_id;
}
-JNIEXPORT void JNICALL Java_org_openvpp_jvpp_VppJNIConnection_clientDisconnect(
+JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_VppJNIConnection_clientDisconnect(
JNIEnv *env, jclass clazz) {
jvpp_registry_main_t * rm = &jvpp_registry_main;
rm->is_connected = 0; // TODO make thread safe
}
rm->controlPingReplyClass = (jclass) (*env)->NewGlobalRef(env,
- (*env)->FindClass(env, "org/openvpp/jvpp/dto/ControlPingReply"));
+ (*env)->FindClass(env, "io/fd/vpp/jvpp/dto/ControlPingReply"));
if ((*env)->ExceptionCheck(env)) {
(*env)->ExceptionDescribe(env);
clib_warning("Failed to cache class references\n");
}
rm->callbackExceptionClass = (jclass) (*env)->NewGlobalRef(env,
- (*env)->FindClass(env, "org/openvpp/jvpp/VppCallbackException"));
+ (*env)->FindClass(env, "io/fd/vpp/jvpp/VppCallbackException"));
if ((*env)->ExceptionCheck(env)) {
(*env)->ExceptionDescribe(env);
return JNI_ERR;