[Spice-commits] 3 commits - src/channel-display.c src/spice-util.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 13 17:44:48 UTC 2021


 src/channel-display.c |   30 +++++++++++++++---------------
 src/spice-util.c      |    2 +-
 2 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 8f4e35a25ea14992b21c02ed832cd8185a08ba60
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Mon Apr 12 13:45:42 2021 +0400

    Annotate spice_uuid_to_string
    
    Note: that unusual function seems problematic for GI in general, we may want a simple pointer instead..
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>

diff --git a/src/spice-util.c b/src/spice-util.c
index d0c56ba..30d83c8 100644
--- a/src/spice-util.c
+++ b/src/spice-util.c
@@ -122,7 +122,7 @@ gboolean spice_strv_contains(const GStrv strv, const gchar *str)
 
 /**
  * spice_uuid_to_string:
- * @uuid: UUID byte array
+ * @uuid: (array fixed-size=16): UUID byte array
  *
  * Creates a string representation of @uuid, of the form
  * "06e023d5-86d8-420e-8103-383e4566087a"
commit a3db2b4d040aa18dc79ad2e1066a0f598fdfc271
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Sun Apr 11 13:52:34 2021 +0400

    Annotate SpiceDisplayChannel:monitors
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>

diff --git a/src/channel-display.c b/src/channel-display.c
index 5a5d6c6..e47fc3f 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -288,7 +288,7 @@ static void spice_display_channel_class_init(SpiceDisplayChannelClass *klass)
                            G_PARAM_STATIC_STRINGS));
 
     /**
-     * SpiceDisplayChannel:monitors:
+     * SpiceDisplayChannel:monitors: (type GArray(SpiceDisplayMonitorConfig))
      *
      * Current monitors configuration.
      *
commit e6c5b917a16ec43e47c9ddf627730b9918455445
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Sat Apr 10 23:59:41 2021 +0400

    Annotate a few DispayChannel methods taking Channel as argument
    
    Help bindings by setting those functions as DisplayChannel methods.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>

diff --git a/src/channel-display.c b/src/channel-display.c
index 443504b..5a5d6c6 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -506,8 +506,8 @@ static void spice_display_channel_class_init(SpiceDisplayChannelClass *klass)
 }
 
 /**
- * spice_display_get_primary:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_get_primary: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @surface_id: a surface id
  * @primary: a #SpiceDisplayPrimary
  *
@@ -525,8 +525,8 @@ gboolean spice_display_get_primary(SpiceChannel *channel, guint32 surface_id,
 }
 
 /**
- * spice_display_channel_get_primary:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_channel_get_primary: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @surface_id: a surface id
  * @primary: a #SpiceDisplayPrimary
  *
@@ -564,8 +564,8 @@ gboolean spice_display_channel_get_primary(SpiceChannel *channel, guint32 surfac
 }
 
 /**
- * spice_display_change_preferred_compression:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_change_preferred_compression: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @compression: a #SpiceImageCompression
  *
  * Tells the spice server to change the preferred image compression
@@ -580,8 +580,8 @@ void spice_display_change_preferred_compression(SpiceChannel *channel, gint comp
 }
 
 /**
- * spice_display_channel_change_preferred_compression:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_channel_change_preferred_compression: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @compression: a #SpiceImageCompression
  *
  * Tells the spice server to change the preferred image compression
@@ -635,8 +635,8 @@ static void spice_display_send_client_preferred_video_codecs(SpiceChannel *chann
 }
 
 /**
- * spice_display_change_preferred_video_codec_type:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_change_preferred_video_codec_type: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @codec_type: a #SpiceVideoCodecType
  *
  * Tells the spice server to change the preferred video codec type for
@@ -652,8 +652,8 @@ void spice_display_change_preferred_video_codec_type(SpiceChannel *channel, gint
 }
 
 /**
- * spice_display_channel_change_preferred_video_codec_type:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_channel_change_preferred_video_codec_type: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @codec_type: a #SpiceVideoCodecType
  *
  * Tells the spice server to change the preferred video codec type for
@@ -683,8 +683,8 @@ void spice_display_channel_change_preferred_video_codec_type(SpiceChannel *chann
 }
 
 /**
- * spice_display_channel_change_preferred_video_codec_types:
- * @channel: a #SpiceDisplayChannel
+ * spice_display_channel_change_preferred_video_codec_types: (method)
+ * @channel: (type SpiceDisplayChannel): a #SpiceDisplayChannel
  * @codecs: (array length=ncodecs): an array of @ncodecs #SpiceVideoCodecType types
  * @ncodecs: the number of codec types in the @codecs array
  * @err: #GError describing the reason why the change failed


More information about the Spice-commits mailing list