Re: [Spice-devel] [PATCH spice-server v2 1/2] stream-device: Separate declaration in a separate header

2018-03-08 Thread Frediano Ziglio
> > On Wed, Mar 07, 2018 at 08:26:15AM +, Frediano Ziglio wrote: > > Move public declaration (stream_device_connect) from char-device.h > > to a new stream-device.h. > > Add type declaration for StreamDevice. > > This allows to use the type outside the implementation file and > > "outside *of

Re: [Spice-devel] [PATCH spice-server v2 1/2] stream-device: Separate declaration in a separate header

2018-03-08 Thread Christophe Fergeau
On Wed, Mar 07, 2018 at 08:26:15AM +, Frediano Ziglio wrote: > Move public declaration (stream_device_connect) from char-device.h > to a new stream-device.h. > Add type declaration for StreamDevice. > This allows to use the type outside the implementation file and "outside *of* the implementat

[Spice-devel] [PATCH spice-server v2 1/2] stream-device: Separate declaration in a separate header

2018-03-07 Thread Frediano Ziglio
Move public declaration (stream_device_connect) from char-device.h to a new stream-device.h. Add type declaration for StreamDevice. This allows to use the type outside the implementation file and make easier to extend the interface without changing char-device.h header. Signed-off-by: Frediano Zig