diff options
Diffstat (limited to 'src/main/native/flow.c')
-rw-r--r-- | src/main/native/flow.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/native/flow.c b/src/main/native/flow.c index 8cb7def..174e9c0 100644 --- a/src/main/native/flow.c +++ b/src/main/native/flow.c @@ -36,7 +36,7 @@ #include <termios.h> #include <fcntl.h> #include <poll.h> -#include "com_github_jodersky_flow_low_NativeSerial.h" +#include "com_github_jodersky_flow_internal_NativeSerial.h" #include "flow.h" static bool debug = false; @@ -234,7 +234,7 @@ inline jlong s2j(struct serial_config* pointer) { return (jlong) pointer; } -JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_open +JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_open (JNIEnv *env, jclass clazz, jstring port_name, jint baud, jlongArray jserialp) { const char *dev = (*env)->GetStringUTFChars(env, port_name, 0); @@ -248,13 +248,13 @@ JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_open return r; } -JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_close +JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_close (JNIEnv * env, jclass clazz, jlong serial) { serial_close(j2s(serial)); } -JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_read +JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_read (JNIEnv * env, jclass clazz, jlong serial, jbyteArray jbuffer) { @@ -270,7 +270,7 @@ JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_read return n; } -JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_write +JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_write (JNIEnv * env, jclass clazz, jlong serial, jbyteArray jbuffer) { unsigned char * buffer = (*env)->GetByteArrayElements(env, jbuffer, NULL); @@ -282,13 +282,13 @@ JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_write return r; } -JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_low_NativeSerial_interrupt +JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_interrupt (JNIEnv * env, jclass clazz, jlong serial) { return serial_interrupt(j2s(serial)); } -JNIEXPORT void JNICALL Java_com_github_jodersky_flow_low_NativeSerial_debug +JNIEXPORT void JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_debug (JNIEnv *env, jclass clazz, jboolean value) { serial_debug((bool) value); |