PageRenderTime 58ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/i386-apple-darwin10.4.0/gnu_io_RXTXPort.h

https://github.com/neophob/librxtx
C Header | 533 lines | 176 code | 60 blank | 297 comment | 0 complexity | c8caa2fd07cd9212f5224d91551417ae MD5 | raw file
  1. /* DO NOT EDIT THIS FILE - it is machine generated */
  2. #include <jni.h>
  3. /* Header for class gnu_io_RXTXPort */
  4. #ifndef _Included_gnu_io_RXTXPort
  5. #define _Included_gnu_io_RXTXPort
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. #undef gnu_io_RXTXPort_debug
  10. #define gnu_io_RXTXPort_debug 0L
  11. #undef gnu_io_RXTXPort_DATABITS_5
  12. #define gnu_io_RXTXPort_DATABITS_5 5L
  13. #undef gnu_io_RXTXPort_DATABITS_6
  14. #define gnu_io_RXTXPort_DATABITS_6 6L
  15. #undef gnu_io_RXTXPort_DATABITS_7
  16. #define gnu_io_RXTXPort_DATABITS_7 7L
  17. #undef gnu_io_RXTXPort_DATABITS_8
  18. #define gnu_io_RXTXPort_DATABITS_8 8L
  19. #undef gnu_io_RXTXPort_PARITY_NONE
  20. #define gnu_io_RXTXPort_PARITY_NONE 0L
  21. #undef gnu_io_RXTXPort_PARITY_ODD
  22. #define gnu_io_RXTXPort_PARITY_ODD 1L
  23. #undef gnu_io_RXTXPort_PARITY_EVEN
  24. #define gnu_io_RXTXPort_PARITY_EVEN 2L
  25. #undef gnu_io_RXTXPort_PARITY_MARK
  26. #define gnu_io_RXTXPort_PARITY_MARK 3L
  27. #undef gnu_io_RXTXPort_PARITY_SPACE
  28. #define gnu_io_RXTXPort_PARITY_SPACE 4L
  29. #undef gnu_io_RXTXPort_STOPBITS_1
  30. #define gnu_io_RXTXPort_STOPBITS_1 1L
  31. #undef gnu_io_RXTXPort_STOPBITS_2
  32. #define gnu_io_RXTXPort_STOPBITS_2 2L
  33. #undef gnu_io_RXTXPort_STOPBITS_1_5
  34. #define gnu_io_RXTXPort_STOPBITS_1_5 3L
  35. #undef gnu_io_RXTXPort_FLOWCONTROL_NONE
  36. #define gnu_io_RXTXPort_FLOWCONTROL_NONE 0L
  37. #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN
  38. #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN 1L
  39. #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT
  40. #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT 2L
  41. #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN
  42. #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN 4L
  43. #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT
  44. #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT 8L
  45. #undef gnu_io_RXTXPort_debug
  46. #define gnu_io_RXTXPort_debug 0L
  47. #undef gnu_io_RXTXPort_debug_read
  48. #define gnu_io_RXTXPort_debug_read 0L
  49. #undef gnu_io_RXTXPort_debug_read_results
  50. #define gnu_io_RXTXPort_debug_read_results 0L
  51. #undef gnu_io_RXTXPort_debug_write
  52. #define gnu_io_RXTXPort_debug_write 0L
  53. #undef gnu_io_RXTXPort_debug_events
  54. #define gnu_io_RXTXPort_debug_events 0L
  55. #undef gnu_io_RXTXPort_debug_verbose
  56. #define gnu_io_RXTXPort_debug_verbose 0L
  57. /*
  58. * Class: gnu_io_RXTXPort
  59. * Method: Initialize
  60. * Signature: ()V
  61. */
  62. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_Initialize
  63. (JNIEnv *, jclass);
  64. /*
  65. * Class: gnu_io_RXTXPort
  66. * Method: open
  67. * Signature: (Ljava/lang/String;)I
  68. */
  69. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_open
  70. (JNIEnv *, jobject, jstring);
  71. /*
  72. * Class: gnu_io_RXTXPort
  73. * Method: nativeGetParity
  74. * Signature: (I)I
  75. */
  76. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetParity
  77. (JNIEnv *, jobject, jint);
  78. /*
  79. * Class: gnu_io_RXTXPort
  80. * Method: nativeGetFlowControlMode
  81. * Signature: (I)I
  82. */
  83. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetFlowControlMode
  84. (JNIEnv *, jobject, jint);
  85. /*
  86. * Class: gnu_io_RXTXPort
  87. * Method: nativeSetSerialPortParams
  88. * Signature: (IIII)Z
  89. */
  90. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams
  91. (JNIEnv *, jobject, jint, jint, jint, jint);
  92. /*
  93. * Class: gnu_io_RXTXPort
  94. * Method: setflowcontrol
  95. * Signature: (I)V
  96. */
  97. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setflowcontrol
  98. (JNIEnv *, jobject, jint);
  99. /*
  100. * Class: gnu_io_RXTXPort
  101. * Method: NativegetReceiveTimeout
  102. * Signature: ()I
  103. */
  104. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_NativegetReceiveTimeout
  105. (JNIEnv *, jobject);
  106. /*
  107. * Class: gnu_io_RXTXPort
  108. * Method: NativeisReceiveTimeoutEnabled
  109. * Signature: ()Z
  110. */
  111. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled
  112. (JNIEnv *, jobject);
  113. /*
  114. * Class: gnu_io_RXTXPort
  115. * Method: NativeEnableReceiveTimeoutThreshold
  116. * Signature: (III)V
  117. */
  118. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold
  119. (JNIEnv *, jobject, jint, jint, jint);
  120. /*
  121. * Class: gnu_io_RXTXPort
  122. * Method: isDTR
  123. * Signature: ()Z
  124. */
  125. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDTR
  126. (JNIEnv *, jobject);
  127. /*
  128. * Class: gnu_io_RXTXPort
  129. * Method: setDTR
  130. * Signature: (Z)V
  131. */
  132. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDTR
  133. (JNIEnv *, jobject, jboolean);
  134. /*
  135. * Class: gnu_io_RXTXPort
  136. * Method: setRTS
  137. * Signature: (Z)V
  138. */
  139. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setRTS
  140. (JNIEnv *, jobject, jboolean);
  141. /*
  142. * Class: gnu_io_RXTXPort
  143. * Method: setDSR
  144. * Signature: (Z)V
  145. */
  146. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDSR
  147. (JNIEnv *, jobject, jboolean);
  148. /*
  149. * Class: gnu_io_RXTXPort
  150. * Method: isCTS
  151. * Signature: ()Z
  152. */
  153. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCTS
  154. (JNIEnv *, jobject);
  155. /*
  156. * Class: gnu_io_RXTXPort
  157. * Method: isDSR
  158. * Signature: ()Z
  159. */
  160. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDSR
  161. (JNIEnv *, jobject);
  162. /*
  163. * Class: gnu_io_RXTXPort
  164. * Method: isCD
  165. * Signature: ()Z
  166. */
  167. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCD
  168. (JNIEnv *, jobject);
  169. /*
  170. * Class: gnu_io_RXTXPort
  171. * Method: isRI
  172. * Signature: ()Z
  173. */
  174. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRI
  175. (JNIEnv *, jobject);
  176. /*
  177. * Class: gnu_io_RXTXPort
  178. * Method: isRTS
  179. * Signature: ()Z
  180. */
  181. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRTS
  182. (JNIEnv *, jobject);
  183. /*
  184. * Class: gnu_io_RXTXPort
  185. * Method: sendBreak
  186. * Signature: (I)V
  187. */
  188. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_sendBreak
  189. (JNIEnv *, jobject, jint);
  190. /*
  191. * Class: gnu_io_RXTXPort
  192. * Method: writeByte
  193. * Signature: (IZ)V
  194. */
  195. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeByte
  196. (JNIEnv *, jobject, jint, jboolean);
  197. /*
  198. * Class: gnu_io_RXTXPort
  199. * Method: writeArray
  200. * Signature: ([BIIZ)V
  201. */
  202. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeArray
  203. (JNIEnv *, jobject, jbyteArray, jint, jint, jboolean);
  204. /*
  205. * Class: gnu_io_RXTXPort
  206. * Method: nativeDrain
  207. * Signature: (Z)Z
  208. */
  209. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeDrain
  210. (JNIEnv *, jobject, jboolean);
  211. /*
  212. * Class: gnu_io_RXTXPort
  213. * Method: nativeavailable
  214. * Signature: ()I
  215. */
  216. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeavailable
  217. (JNIEnv *, jobject);
  218. /*
  219. * Class: gnu_io_RXTXPort
  220. * Method: readByte
  221. * Signature: ()I
  222. */
  223. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readByte
  224. (JNIEnv *, jobject);
  225. /*
  226. * Class: gnu_io_RXTXPort
  227. * Method: readArray
  228. * Signature: ([BII)I
  229. */
  230. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readArray
  231. (JNIEnv *, jobject, jbyteArray, jint, jint);
  232. /*
  233. * Class: gnu_io_RXTXPort
  234. * Method: readTerminatedArray
  235. * Signature: ([BII[B)I
  236. */
  237. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readTerminatedArray
  238. (JNIEnv *, jobject, jbyteArray, jint, jint, jbyteArray);
  239. /*
  240. * Class: gnu_io_RXTXPort
  241. * Method: eventLoop
  242. * Signature: ()V
  243. */
  244. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_eventLoop
  245. (JNIEnv *, jobject);
  246. /*
  247. * Class: gnu_io_RXTXPort
  248. * Method: interruptEventLoop
  249. * Signature: ()V
  250. */
  251. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_interruptEventLoop
  252. (JNIEnv *, jobject);
  253. /*
  254. * Class: gnu_io_RXTXPort
  255. * Method: nativeSetEventFlag
  256. * Signature: (IIZ)V
  257. */
  258. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetEventFlag
  259. (JNIEnv *, jobject, jint, jint, jboolean);
  260. /*
  261. * Class: gnu_io_RXTXPort
  262. * Method: nativeClose
  263. * Signature: (Ljava/lang/String;)V
  264. */
  265. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeClose
  266. (JNIEnv *, jobject, jstring);
  267. /*
  268. * Class: gnu_io_RXTXPort
  269. * Method: nativeStaticSetSerialPortParams
  270. * Signature: (Ljava/lang/String;IIII)V
  271. */
  272. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams
  273. (JNIEnv *, jclass, jstring, jint, jint, jint, jint);
  274. /*
  275. * Class: gnu_io_RXTXPort
  276. * Method: nativeStaticSetDSR
  277. * Signature: (Ljava/lang/String;Z)Z
  278. */
  279. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDSR
  280. (JNIEnv *, jclass, jstring, jboolean);
  281. /*
  282. * Class: gnu_io_RXTXPort
  283. * Method: nativeStaticSetDTR
  284. * Signature: (Ljava/lang/String;Z)Z
  285. */
  286. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDTR
  287. (JNIEnv *, jclass, jstring, jboolean);
  288. /*
  289. * Class: gnu_io_RXTXPort
  290. * Method: nativeStaticSetRTS
  291. * Signature: (Ljava/lang/String;Z)Z
  292. */
  293. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetRTS
  294. (JNIEnv *, jclass, jstring, jboolean);
  295. /*
  296. * Class: gnu_io_RXTXPort
  297. * Method: nativeStaticIsDSR
  298. * Signature: (Ljava/lang/String;)Z
  299. */
  300. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDSR
  301. (JNIEnv *, jclass, jstring);
  302. /*
  303. * Class: gnu_io_RXTXPort
  304. * Method: nativeStaticIsDTR
  305. * Signature: (Ljava/lang/String;)Z
  306. */
  307. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDTR
  308. (JNIEnv *, jclass, jstring);
  309. /*
  310. * Class: gnu_io_RXTXPort
  311. * Method: nativeStaticIsRTS
  312. * Signature: (Ljava/lang/String;)Z
  313. */
  314. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRTS
  315. (JNIEnv *, jclass, jstring);
  316. /*
  317. * Class: gnu_io_RXTXPort
  318. * Method: nativeStaticIsCTS
  319. * Signature: (Ljava/lang/String;)Z
  320. */
  321. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCTS
  322. (JNIEnv *, jclass, jstring);
  323. /*
  324. * Class: gnu_io_RXTXPort
  325. * Method: nativeStaticIsCD
  326. * Signature: (Ljava/lang/String;)Z
  327. */
  328. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCD
  329. (JNIEnv *, jclass, jstring);
  330. /*
  331. * Class: gnu_io_RXTXPort
  332. * Method: nativeStaticIsRI
  333. * Signature: (Ljava/lang/String;)Z
  334. */
  335. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRI
  336. (JNIEnv *, jclass, jstring);
  337. /*
  338. * Class: gnu_io_RXTXPort
  339. * Method: nativeStaticGetBaudRate
  340. * Signature: (Ljava/lang/String;)I
  341. */
  342. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetBaudRate
  343. (JNIEnv *, jclass, jstring);
  344. /*
  345. * Class: gnu_io_RXTXPort
  346. * Method: nativeStaticGetDataBits
  347. * Signature: (Ljava/lang/String;)I
  348. */
  349. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetDataBits
  350. (JNIEnv *, jclass, jstring);
  351. /*
  352. * Class: gnu_io_RXTXPort
  353. * Method: nativeStaticGetParity
  354. * Signature: (Ljava/lang/String;)I
  355. */
  356. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetParity
  357. (JNIEnv *, jclass, jstring);
  358. /*
  359. * Class: gnu_io_RXTXPort
  360. * Method: nativeStaticGetStopBits
  361. * Signature: (Ljava/lang/String;)I
  362. */
  363. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetStopBits
  364. (JNIEnv *, jclass, jstring);
  365. /*
  366. * Class: gnu_io_RXTXPort
  367. * Method: nativeGetParityErrorChar
  368. * Signature: ()B
  369. */
  370. JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar
  371. (JNIEnv *, jobject);
  372. /*
  373. * Class: gnu_io_RXTXPort
  374. * Method: nativeSetParityErrorChar
  375. * Signature: (B)Z
  376. */
  377. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar
  378. (JNIEnv *, jobject, jbyte);
  379. /*
  380. * Class: gnu_io_RXTXPort
  381. * Method: nativeGetEndOfInputChar
  382. * Signature: ()B
  383. */
  384. JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetEndOfInputChar
  385. (JNIEnv *, jobject);
  386. /*
  387. * Class: gnu_io_RXTXPort
  388. * Method: nativeSetEndOfInputChar
  389. * Signature: (B)Z
  390. */
  391. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetEndOfInputChar
  392. (JNIEnv *, jobject, jbyte);
  393. /*
  394. * Class: gnu_io_RXTXPort
  395. * Method: nativeSetUartType
  396. * Signature: (Ljava/lang/String;Z)Z
  397. */
  398. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetUartType
  399. (JNIEnv *, jobject, jstring, jboolean);
  400. /*
  401. * Class: gnu_io_RXTXPort
  402. * Method: nativeGetUartType
  403. * Signature: ()Ljava/lang/String;
  404. */
  405. JNIEXPORT jstring JNICALL Java_gnu_io_RXTXPort_nativeGetUartType
  406. (JNIEnv *, jobject);
  407. /*
  408. * Class: gnu_io_RXTXPort
  409. * Method: nativeSetBaudBase
  410. * Signature: (I)Z
  411. */
  412. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetBaudBase
  413. (JNIEnv *, jobject, jint);
  414. /*
  415. * Class: gnu_io_RXTXPort
  416. * Method: nativeGetBaudBase
  417. * Signature: ()I
  418. */
  419. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetBaudBase
  420. (JNIEnv *, jobject);
  421. /*
  422. * Class: gnu_io_RXTXPort
  423. * Method: nativeSetDivisor
  424. * Signature: (I)Z
  425. */
  426. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetDivisor
  427. (JNIEnv *, jobject, jint);
  428. /*
  429. * Class: gnu_io_RXTXPort
  430. * Method: nativeGetDivisor
  431. * Signature: ()I
  432. */
  433. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetDivisor
  434. (JNIEnv *, jobject);
  435. /*
  436. * Class: gnu_io_RXTXPort
  437. * Method: nativeSetLowLatency
  438. * Signature: ()Z
  439. */
  440. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetLowLatency
  441. (JNIEnv *, jobject);
  442. /*
  443. * Class: gnu_io_RXTXPort
  444. * Method: nativeGetLowLatency
  445. * Signature: ()Z
  446. */
  447. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetLowLatency
  448. (JNIEnv *, jobject);
  449. /*
  450. * Class: gnu_io_RXTXPort
  451. * Method: nativeSetCallOutHangup
  452. * Signature: (Z)Z
  453. */
  454. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetCallOutHangup
  455. (JNIEnv *, jobject, jboolean);
  456. /*
  457. * Class: gnu_io_RXTXPort
  458. * Method: nativeGetCallOutHangup
  459. * Signature: ()Z
  460. */
  461. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetCallOutHangup
  462. (JNIEnv *, jobject);
  463. /*
  464. * Class: gnu_io_RXTXPort
  465. * Method: nativeClearCommInput
  466. * Signature: ()Z
  467. */
  468. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeClearCommInput
  469. (JNIEnv *, jobject);
  470. #ifdef __cplusplus
  471. }
  472. #endif
  473. #endif