stream-device: Separate declaration in a separate header

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 8 March 2018 10:58 EST

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 makes it easier to extend the interface without changing char-device.h header.

6bd9a486 stream-device: Separate declaration in a separate header
server/Makefile.am | 1 +
server/char-device.h | 1 -
server/reds.c | 3 ++-
server/stream-device.c | 20 ++++----------------
server/stream-device.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 55 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share