[Spice-devel] [PATCH spice-server 2/3] fixup! reds: Add ability to query the video-codecs currently enabled

Frediano Ziglio fziglio at redhat.com
Fri Jul 5 08:22:58 UTC 2019


Minor style updates
---
 server/spice-server.h | 14 +++++++++-----
 server/video-stream.c |  3 ++-
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/server/spice-server.h b/server/spice-server.h
index 24df8e651..c6c8646ae 100644
--- a/server/spice-server.h
+++ b/server/spice-server.h
@@ -136,18 +136,22 @@ enum {
 };
 
 int spice_server_set_video_codecs(SpiceServer *s, const char* video_codecs);
-/* Returns a newly allocated string describing video encoders/codecs
- * currently allowed in @reds Spice server. The string returned by
+
+/**
+ * Returns a newly allocated string describing video encoders/codecs
+ * currently allowed in @s Spice server. The string returned by
  * this function must be released with spice_server_free_video_codecs.
  *
- * @reds: the Spice server to query
+ * @s: the Spice server to query
  * @return the string describing the video encoders/codecs currently enabled
  */
 const char *spice_server_get_video_codecs(SpiceServer *s);
-/* Releases the memory of the video-codec string returned by
+
+/**
+ * Releases the memory of the video-codec string returned by
  * spice_server_get_video_codecs.
  */
-void spice_server_free_video_codecs(SpiceServer *reds, const char *video_codecs);
+void spice_server_free_video_codecs(SpiceServer *s, const char *video_codecs);
 int spice_server_set_playback_compression(SpiceServer *s, int enable);
 int spice_server_set_agent_mouse(SpiceServer *s, int enable);
 int spice_server_set_agent_copypaste(SpiceServer *s, int enable);
diff --git a/server/video-stream.c b/server/video-stream.c
index a39262d55..d22784f5f 100644
--- a/server/video-stream.c
+++ b/server/video-stream.c
@@ -978,7 +978,8 @@ void video_stream_trace_add_drawable(DisplayChannel *display,
  * returns a string of "enc:codec<sep>"* that must be released
  *         with g_free.
  */
-char *video_codecs_to_string(GArray *video_codecs, const char *sep) {
+char *video_codecs_to_string(GArray *video_codecs, const char *sep)
+{
     int i;
     GString *msg = g_string_new("");
 
-- 
2.20.1



More information about the Spice-devel mailing list