summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetooth.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-04 17:19:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-11 12:03:27 +0200
commitbc7ccdb362b79c441010175bbae1421089d291e2 (patch)
treecd97a43bedf46639173327a7e84b57a33c220095 /src/bluetooth/qbluetooth.h
parent1a9a359b9bdee646cd964fd5af13b239da79f9c9 (diff)
Convert characteristic and descriptor handles to int
ATT protocol defines them as int and just because Bluez5 happens to parse them from command line doesn't mean all other platforms have to deal with strings too. This avoids a lot of string to int conversions and vice versa. Handles should probably fit into short as well but this needs further verification. For we play safe. Change-Id: If75ca539b4b2956b9a65ee2a9ef738b0fe3aa2ee Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetooth.h')
-rw-r--r--src/bluetooth/qbluetooth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetooth.h b/src/bluetooth/qbluetooth.h
index 3d92e1f8..5636c823 100644
--- a/src/bluetooth/qbluetooth.h
+++ b/src/bluetooth/qbluetooth.h
@@ -59,6 +59,8 @@ Q_DECLARE_FLAGS(SecurityFlags, Security)
Q_DECLARE_OPERATORS_FOR_FLAGS(SecurityFlags)
}
+typedef quint32 QLowEnergyHandle;
+
QT_END_NAMESPACE
#endif // QBLUETOOTH_H