mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
7f0ee3d8e2
commit
ce1582581b
1 changed files with 14 additions and 0 deletions
|
@ -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 = {
|
static const dc_custom_cbs_t callbacks = {
|
||||||
.set_timeout = qt_ble_set_timeout,
|
.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,
|
.poll = qt_ble_poll,
|
||||||
.read = qt_ble_read,
|
.read = qt_ble_read,
|
||||||
.write = qt_ble_write,
|
.write = qt_ble_write,
|
||||||
.ioctl = qt_ble_ioctl,
|
.ioctl = qt_ble_ioctl,
|
||||||
|
.flush = nullptr,
|
||||||
|
.purge = nullptr,
|
||||||
.sleep = qt_custom_sleep,
|
.sleep = qt_custom_sleep,
|
||||||
.close = qt_ble_close,
|
.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 = {
|
static const dc_custom_cbs_t callbacks = {
|
||||||
.set_timeout = qt_serial_set_timeout,
|
.set_timeout = qt_serial_set_timeout,
|
||||||
|
.set_break = nullptr,
|
||||||
|
.set_dtr = nullptr,
|
||||||
|
.set_rts = nullptr,
|
||||||
|
.get_lines = nullptr,
|
||||||
.get_available = qt_serial_get_available,
|
.get_available = qt_serial_get_available,
|
||||||
|
.configure = nullptr,
|
||||||
.poll = qt_serial_poll,
|
.poll = qt_serial_poll,
|
||||||
.read = qt_serial_read,
|
.read = qt_serial_read,
|
||||||
.write = qt_serial_write,
|
.write = qt_serial_write,
|
||||||
.ioctl = qt_serial_ioctl,
|
.ioctl = qt_serial_ioctl,
|
||||||
|
.flush = nullptr,
|
||||||
.purge = qt_serial_purge,
|
.purge = qt_serial_purge,
|
||||||
.sleep = qt_custom_sleep,
|
.sleep = qt_custom_sleep,
|
||||||
.close = qt_serial_close,
|
.close = qt_serial_close,
|
||||||
|
|
Loading…
Reference in a new issue