From 77bddab03e8905fcd1bd84778d097be745a3e08d Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Thu, 27 Jun 2013 13:00:55 +0200 Subject: lots of changes mon internal thread handling and serial operation --- src/main/native/flow.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/native/flow.c') 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 #include #include -#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); -- cgit v1.2.3