diff --git a/server/tests/test-display-base.c b/server/tests/test-display-base.c index 636c505c..88638bde 100644 --- a/server/tests/test-display-base.c +++ b/server/tests/test-display-base.c @@ -840,10 +840,12 @@ static void vmc_state(SPICE_GNUC_UNUSED SpiceCharDeviceInstance *sin, static SpiceCharDeviceInterface vdagent_sif = { - .base.type = SPICE_INTERFACE_CHAR_DEVICE, - .base.description = "test spice virtual channel char device", - .base.major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, - .base.minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + .base = { + .type = SPICE_INTERFACE_CHAR_DEVICE, + .description = "test spice virtual channel char device", + .major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, + .minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + }, .state = vmc_state, .write = vmc_write, .read = vmc_read, diff --git a/server/tests/test-leaks.c b/server/tests/test-leaks.c index 4985a1e3..74ab2afd 100644 --- a/server/tests/test-leaks.c +++ b/server/tests/test-leaks.c @@ -88,10 +88,12 @@ static void vmc_state(SPICE_GNUC_UNUSED SpiceCharDeviceInstance *sin, } static SpiceCharDeviceInterface vmc_interface = { - .base.type = SPICE_INTERFACE_CHAR_DEVICE, - .base.description = "test spice virtual channel char device", - .base.major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, - .base.minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + .base = { + .type = SPICE_INTERFACE_CHAR_DEVICE, + .description = "test spice virtual channel char device", + .major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, + .minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + }, .state = vmc_state, .write = vmc_write, .read = vmc_read, diff --git a/server/tests/test-playback.c b/server/tests/test-playback.c index bad11a00..9e53e322 100644 --- a/server/tests/test-playback.c +++ b/server/tests/test-playback.c @@ -37,10 +37,12 @@ SpicePlaybackInstance playback_instance; static const SpicePlaybackInterface playback_sif = { - .base.type = SPICE_INTERFACE_PLAYBACK, - .base.description = "test playback", - .base.major_version = SPICE_INTERFACE_PLAYBACK_MAJOR, - .base.minor_version = SPICE_INTERFACE_PLAYBACK_MINOR, + .base = { + .type = SPICE_INTERFACE_PLAYBACK, + .description = "test playback", + .major_version = SPICE_INTERFACE_PLAYBACK_MAJOR, + .minor_version = SPICE_INTERFACE_PLAYBACK_MINOR, + } }; uint32_t *frame; diff --git a/server/tests/test-vdagent.c b/server/tests/test-vdagent.c index e1d8b82c..232e9824 100644 --- a/server/tests/test-vdagent.c +++ b/server/tests/test-vdagent.c @@ -94,10 +94,12 @@ static void vmc_state(SPICE_GNUC_UNUSED SpiceCharDeviceInstance *sin, } static SpiceCharDeviceInterface vmc_interface = { - .base.type = SPICE_INTERFACE_CHAR_DEVICE, - .base.description = "test spice virtual channel char device", - .base.major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, - .base.minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + .base = { + .type = SPICE_INTERFACE_CHAR_DEVICE, + .description = "test spice virtual channel char device", + .major_version = SPICE_INTERFACE_CHAR_DEVICE_MAJOR, + .minor_version = SPICE_INTERFACE_CHAR_DEVICE_MINOR, + }, .state = vmc_state, .write = vmc_write, .read = vmc_read,