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

Submitted by Frediano Ziglio on July 5, 2019, 8:22 a.m.

Details

Message ID 20190705082259.10991-2-fziglio@redhat.com
State Superseded
Headers show
Series "reds: Add ability to query the video-codecs currently enabled" ( rev: 5 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 5, 2019, 8:22 a.m.
Minor style updates
---
 server/spice-server.h | 14 +++++++++-----
 server/video-stream.c |  3 ++-
 2 files changed, 11 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

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("");