summaryrefslogtreecommitdiff
path: root/src/serialport/qserialport_p.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-09-07 20:22:40 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-09-08 08:01:05 +0000
commit23aedbb75bd6bb187756dc96157c49d79637362c (patch)
treee40a528a7335e11f4b3a3dae81d3188f88096826 /src/serialport/qserialport_p.h
parent42fd000309fe72f0209b6432144bc1f3e6b2add2 (diff)
downloadqtserialport-23aedbb75bd6bb187756dc96157c49d79637362c.tar.gz
Get rid of stored termios structure
It is better to read the current termios structure each time before changing, than to have stored it locally. Tested with the USB serial ports. Change-Id: I63e0c2c1c320ee4b98c8423963d78396f72eb3c2 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_p.h')
-rw-r--r--src/serialport/qserialport_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h
index e626723..6ad7c26 100644
--- a/src/serialport/qserialport_p.h
+++ b/src/serialport/qserialport_p.h
@@ -247,7 +247,8 @@ public:
#elif defined(Q_OS_UNIX)
bool initialize(QIODevice::OpenMode mode);
- bool updateTermios();
+ bool setTermios(const termios *tio);
+ bool getTermios(termios *tio);
bool setCustomBaudRate(qint32 baudRate, QSerialPort::Directions directions);
bool setStandardBaudRate(qint32 baudRate, QSerialPort::Directions directions);
@@ -273,7 +274,6 @@ public:
bool startAsyncWrite();
bool completeAsyncWrite();
- struct termios currentTermios;
struct termios restoredTermios;
int descriptor;