cleanup: remove typedef in qtserialbluetooth.cpp

This was very odd: A typedef to the same name as the structure
was named. Huh?

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-14 22:57:39 +02:00 committed by bstoeger
parent 058485e374
commit 37be879e17

View file

@ -31,13 +31,13 @@ static std::string to_str(const T &v)
return v.toString().toStdString(); return v.toString().toStdString();
} }
typedef struct qt_serial_t { struct qt_serial_t {
/* /*
* RFCOMM socket used for Bluetooth Serial communication. * RFCOMM socket used for Bluetooth Serial communication.
*/ */
QBluetoothSocket *socket; QBluetoothSocket *socket;
long timeout; long timeout;
} qt_serial_t; };
static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t*, const char *devaddr) static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t*, const char *devaddr)
{ {