diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-06-17 17:02:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-06-18 09:05:13 -0700 |
commit | ce1582581b881e67626fc6081def04533c9a9d37 (patch) | |
tree | 8560b268ac03e0c3c7c1af94870b8a2461bf90e7 | |
parent | 7f0ee3d8e2ae99ae21305c647cd501565846cf8f (diff) | |
download | subsurface-ce1582581b881e67626fc6081def04533c9a9d37.tar.gz |
core: fix compile issue with older g++
Having the full list of all members in the exact order should be enough to get
g++ to accept the named initializers.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/qtserialbluetooth.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 16dec0ee7..0114a54f5 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -284,10 +284,18 @@ ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* dev static const dc_custom_cbs_t callbacks = { .set_timeout = qt_ble_set_timeout, + .set_break = nullptr, + .set_dtr = nullptr, + .set_rts = nullptr, + .get_lines = nullptr, + .get_available = nullptr, + .configure = nullptr, .poll = qt_ble_poll, .read = qt_ble_read, .write = qt_ble_write, .ioctl = qt_ble_ioctl, + .flush = nullptr, + .purge = nullptr, .sleep = qt_custom_sleep, .close = qt_ble_close, }; @@ -310,11 +318,17 @@ rfcomm_stream_open(dc_iostream_t **iostream, dc_context_t *context, const char* static const dc_custom_cbs_t callbacks = { .set_timeout = qt_serial_set_timeout, + .set_break = nullptr, + .set_dtr = nullptr, + .set_rts = nullptr, + .get_lines = nullptr, .get_available = qt_serial_get_available, + .configure = nullptr, .poll = qt_serial_poll, .read = qt_serial_read, .write = qt_serial_write, .ioctl = qt_serial_ioctl, + .flush = nullptr, .purge = qt_serial_purge, .sleep = qt_custom_sleep, .close = qt_serial_close, |