aboutsummaryrefslogtreecommitdiff
path: root/flow-native/src/include/com_github_jodersky_flow_internal_NativeSerial.h
blob: 04364fb2bac26688d025c4c31746daf9f93f3ce0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_github_jodersky_flow_internal_NativeSerial */

#ifndef _Included_com_github_jodersky_flow_internal_NativeSerial
#define _Included_com_github_jodersky_flow_internal_NativeSerial
#ifdef __cplusplus
extern "C" {
#endif
#undef com_github_jodersky_flow_internal_NativeSerial_PARITY_NONE
#define com_github_jodersky_flow_internal_NativeSerial_PARITY_NONE 0L
#undef com_github_jodersky_flow_internal_NativeSerial_PARITY_ODD
#define com_github_jodersky_flow_internal_NativeSerial_PARITY_ODD 1L
#undef com_github_jodersky_flow_internal_NativeSerial_PARITY_EVEN
#define com_github_jodersky_flow_internal_NativeSerial_PARITY_EVEN 2L
/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    open
 * Signature: (Ljava/lang/String;IIZI)J
 */
JNIEXPORT jlong JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_open
  (JNIEnv *, jclass, jstring, jint, jint, jboolean, jint);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    readDirect
 * Signature: (JLjava/nio/ByteBuffer;)I
 */
JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_readDirect
  (JNIEnv *, jclass, jlong, jobject);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    read
 * Signature: (J[B)I
 */
JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_read
  (JNIEnv *, jclass, jlong, jbyteArray);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    cancelRead
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_cancelRead
  (JNIEnv *, jclass, jlong);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    writeDirect
 * Signature: (JLjava/nio/ByteBuffer;I)I
 */
JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_writeDirect
  (JNIEnv *, jclass, jlong, jobject, jint);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    write
 * Signature: (J[BI)I
 */
JNIEXPORT jint JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_write
  (JNIEnv *, jclass, jlong, jbyteArray, jint);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    close
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_close
  (JNIEnv *, jclass, jlong);

/*
 * Class:     com_github_jodersky_flow_internal_NativeSerial
 * Method:    debug
 * Signature: (Z)V
 */
JNIEXPORT void JNICALL Java_com_github_jodersky_flow_internal_NativeSerial_debug
  (JNIEnv *, jclass, jboolean);

#ifdef __cplusplus
}
#endif
#endif