[Spice-devel] [PATCH spice-gtk 2/2] display: use streams_ namespace for stream related functions
Victor Toso
victortoso at redhat.com
Fri Jun 30 10:51:17 UTC 2017
From: Victor Toso <me at victortoso.com>
Changing the name from clear_streams() to streams_finalize() to better
match streams_check_init().
This function is called on:
- display_handle_stream_destroy_all()
- spice_display_channel_reset()
- spice_display_channel_finalize()
Signed-off-by: Victor Toso <victortoso at redhat.com>
---
src/channel-display.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/channel-display.c b/src/channel-display.c
index 9ae2851..a68a1ca 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -104,7 +104,7 @@ static void spice_display_channel_up(SpiceChannel *channel);
static void channel_set_handlers(SpiceChannelClass *klass);
static void clear_surfaces(SpiceChannel *channel, gboolean keep_primary);
-static void clear_streams(SpiceChannel *channel);
+static void streams_finalize(SpiceChannel *channel);
static void streams_check_init(SpiceChannel *channel, guint stream_id);
static display_surface *find_surface(SpiceDisplayChannelPrivate *c, guint32 surface_id);
static void spice_display_channel_reset(SpiceChannel *channel, gboolean migrating);
@@ -172,7 +172,7 @@ static void spice_display_channel_finalize(GObject *object)
g_clear_pointer(&c->monitors, g_array_unref);
clear_surfaces(SPICE_CHANNEL(object), FALSE);
g_hash_table_unref(c->surfaces);
- clear_streams(SPICE_CHANNEL(object));
+ streams_finalize(SPICE_CHANNEL(object));
g_clear_pointer(&c->palettes, cache_free);
if (G_OBJECT_CLASS(spice_display_channel_parent_class)->finalize)
@@ -253,7 +253,7 @@ static void spice_display_set_property(GObject *object,
static void spice_display_channel_reset(SpiceChannel *channel, gboolean migrating)
{
/* palettes, images, and glz_window are cleared in the session */
- clear_streams(channel);
+ streams_finalize(channel);
clear_surfaces(channel, TRUE);
SPICE_CHANNEL_CLASS(spice_display_channel_parent_class)->channel_reset(channel, migrating);
@@ -1572,7 +1572,7 @@ static void destroy_display_stream(display_stream *st, int id)
g_free(st);
}
-static void clear_streams(SpiceChannel *channel)
+static void streams_finalize(SpiceChannel *channel)
{
SpiceDisplayChannelPrivate *c = SPICE_DISPLAY_CHANNEL(channel)->priv;
int i;
@@ -1626,7 +1626,7 @@ static void display_handle_stream_destroy(SpiceChannel *channel, SpiceMsgIn *in)
/* coroutine context */
static void display_handle_stream_destroy_all(SpiceChannel *channel, SpiceMsgIn *in)
{
- clear_streams(channel);
+ streams_finalize(channel);
}
/* coroutine context */
--
2.13.0
More information about the Spice-devel
mailing list