Updated Windows native "openPort()" function signature, and function comment

This commit is contained in:
Alexey Sokolov 2013-04-18 11:35:58 +03:00
parent d0b558aa17
commit 521909e65a
1 changed files with 4 additions and 2 deletions

View File

@ -27,12 +27,14 @@
#include <windows.h>
#include "../jssc_SerialNativeInterface.h"
#include <iostream>
//#include <iostream>
/*
* Port opening.
*
* In 2.2.0 added useTIOCEXCL (not used only for compatibility with _nix version)
*/
JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, jobject object, jstring portName){
JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, jobject object, jstring portName, jboolean useTIOCEXCL){
char prefix[] = "\\\\.\\";
const char* port = env->GetStringUTFChars(portName, JNI_FALSE);