diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-06-27 13:00:55 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-06-27 13:00:55 +0200 |
commit | 77bddab03e8905fcd1bd84778d097be745a3e08d (patch) | |
tree | 7a6d64aa131368b76aaacda71c3ed1fb23c7b2e7 /src/main/native/flow.c | |
parent | f007a17cca8213193f5a6b51e3bcb61653230ff4 (diff) | |
download | akka-serial-77bddab03e8905fcd1bd84778d097be745a3e08d.tar.gz akka-serial-77bddab03e8905fcd1bd84778d097be745a3e08d.tar.bz2 akka-serial-77bddab03e8905fcd1bd84778d097be745a3e08d.zip |
lots of changes mon internal thread handling and serial operation
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); |