[Spice-devel] [PATCH spice-server 00/18] Remove DummyChannel* objects
Uri Lublin
uril at redhat.com
Thu Nov 24 16:17:25 UTC 2016
Hi Frediano,
On 11/23/2016 08:07 PM, Frediano Ziglio wrote:
> These objects were used by the sound channel as
> this channel read/write to/from client directly.
> This make the code of this channel quite different
> from the other ones.
> Also this reduce code duplication from RedChannelClient
> and increase encapsulation.
> First set of patches attempt to rename fields/structures
> to prepare for the conversion to RedChannel/RedChannelClient
> and GObject.
> Than other patches basically do the conversion and
> some cleanup.
Overall looks good to me.
I sent a few comments for some patches.
I did not test it.
I did not look much at the GObjectification magic.
One thing with GObjects is that usually they
have a private structure to keep (private) state.
That can be added later too.
Regards,
Uri.
>
> Frediano Ziglio (18):
> Remove unused fields
> sound: Unify commands
> sound: Use worker directly
> sound: Rename some objects
> sound: Rename workers to snd_channels
> sound: Rename {Record,Playback}Channel to *ChannelClient
> sound: Rename channel to client if variable used for clients
> sound: Rename worker to channel
> sound: Convert SndChannel to GObject
> sound: Implements config_socket RedChannel callback
> sound: Convert SndChannelClient to GObject
> sound: Implement on_disconnect RedChannel callback
> Remove DummyChannel* objects
> sound: Reduce message buffer
> Make RedChannelClient::incoming private
> sound: Free more on SndChannel finalize
> sound: Use default disconnect for client channels
> sound: Reuse code for snd_set_{playback,record}_peer
>
> server/Makefile.am | 4 -
> server/dummy-channel-client.c | 138 ---
> server/dummy-channel-client.h | 64 --
> server/dummy-channel.c | 94 --
> server/dummy-channel.h | 60 --
> server/red-channel-client-private.h | 11 +
> server/red-channel-client.c | 12 +-
> server/red-channel-client.h | 13 -
> server/sound.c | 1731 +++++++++++++++++------------------
> 9 files changed, 866 insertions(+), 1261 deletions(-)
> delete mode 100644 server/dummy-channel-client.c
> delete mode 100644 server/dummy-channel-client.h
> delete mode 100644 server/dummy-channel.c
> delete mode 100644 server/dummy-channel.h
>
More information about the Spice-devel
mailing list