From ce1582581b881e67626fc6081def04533c9a9d37 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 17 Jun 2020 17:02:46 -0700 Subject: [PATCH] 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 --- core/qtserialbluetooth.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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,