summaryrefslogtreecommitdiffstats
path: root/tools/runonphone/serenum.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-07-09 10:16:35 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-07-09 12:37:09 (GMT)
commit767aa8d648bf81a3303da66a4fef98657ea5ece3 (patch)
tree79a7899be5e77ac75b43f89fcd9905009be9c6f0 /tools/runonphone/serenum.h
parentc950283638f05176f80b1fc6711a5340184e25e3 (diff)
downloadQt-767aa8d648bf81a3303da66a4fef98657ea5ece3.zip
Qt-767aa8d648bf81a3303da66a4fef98657ea5ece3.tar.gz
Qt-767aa8d648bf81a3303da66a4fef98657ea5ece3.tar.bz2
Fix USB serial port detection of the Nokia N95 on linux
The interface numbers in /dev/serial/by-id are hex rather than decimal. Also added code to read the manufacturer name and product name from string descriptors in order to get a better match. Unfortunately, root privilege is needed or the API returns an error. In this case, we still use the weak matching on interface number only. Task-Number: QTBUG-11794 Reviewed-By: Thomas Zander
Diffstat (limited to 'tools/runonphone/serenum.h')
-rw-r--r--tools/runonphone/serenum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/runonphone/serenum.h b/tools/runonphone/serenum.h
index b794b97..a65c8cb 100644
--- a/tools/runonphone/serenum.h
+++ b/tools/runonphone/serenum.h
@@ -51,6 +51,6 @@ struct SerialPortId
QString friendlyName;
};
-QList<SerialPortId> enumerateSerialPorts();
+QList<SerialPortId> enumerateSerialPorts(int loglevel);
#endif // WIN32SERENUM_H