[Spice-commits] src/channel-main.h

Jonathon Jongsma jjongsma at kemper.freedesktop.org
Mon Dec 11 20:52:25 UTC 2017


 src/channel-main.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d4a6a2831c68f9b17e1eba1cfa13966128a344eb
Author: Jonathon Jongsma <jjongsma at redhat.com>
Date:   Thu Dec 7 15:42:27 2017 -0600

    MainChannel: Fix incorrect deprecations
    
    Both spice_main_set_display() and spice_main_set_display_enabled() were
    deprecated in favor of the same functions with the spice_main_channel_
    prefix. However, these new functions were never introduced. Since these
    functions merely call spice_main_channel_update_display() with a
    constant TRUE argument for the last parameter, this is probably a good
    time to simply drop the _set_display* functions in favor of the
    nearly-identical _update_display* functions (which have one additional
    parameter which determines whether to send the update to the guest).
    
    Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/src/channel-main.h b/src/channel-main.h
index 7650a03..530378d 100644
--- a/src/channel-main.h
+++ b/src/channel-main.h
@@ -111,12 +111,12 @@ void spice_main_clipboard_notify(SpiceMainChannel *channel, guint32 type, const
 G_DEPRECATED_FOR(spice_main_channel_clipboard_selection_request)
 void spice_main_clipboard_request(SpiceMainChannel *channel, guint32 type);
 
-G_DEPRECATED_FOR(spice_main_channel_set_display)
+G_DEPRECATED_FOR(spice_main_channel_update_display)
 void spice_main_set_display(SpiceMainChannel *channel, int id,int x, int y, int width, int height);
 G_DEPRECATED_FOR(spice_main_update_display)
 void spice_main_update_display(SpiceMainChannel *channel, int id, int x, int y, int width,
                                int height, gboolean update);
-G_DEPRECATED_FOR(spice_main_channel_set_display_enabled)
+G_DEPRECATED_FOR(spice_main_channel_update_display_enabled)
 void spice_main_set_display_enabled(SpiceMainChannel *channel, int id, gboolean enabled);
 G_DEPRECATED_FOR(spice_main_channel_update_display_enabled)
 void spice_main_update_display_enabled(SpiceMainChannel *channel, int id, gboolean enabled,


More information about the Spice-commits mailing list