[Spice-devel] Purpose of interface version checks in server/reds.c

Gerd Hoffmann kraxel at redhat.com
Mon Jul 4 06:04:36 PDT 2011


   Hi,

> I see, thanks. In this case, the change adds new messages and new methods
> for the Playback and Record channels, so nothing should change unless these
> new methods are explicitly called from qemu, which means raising the minor
> version number was probably not strictly needed (but not harmful either).

It is still useful so you can ifdef code using the new methods like this ...

#if SPICE_INTERFACE_CORE_MINOR >= 3
     .channel_event      = channel_event,
#endif

in qemu.

cheers,
   Gerd


More information about the Spice-devel mailing list