47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
|
From 4d0f47c214c7bc833b1f04dbab9bf7800946caa9 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
|
||
|
Date: Thu, 18 Oct 2012 12:01:29 +0200
|
||
|
Subject: [PATCH 17/21] Print list of supported channels
|
||
|
|
||
|
https://bugzilla.redhat.com/show_bug.cgi?id=834513
|
||
|
---
|
||
|
gtk/spice-session.c | 18 ++++++++++++++++++
|
||
|
1 file changed, 18 insertions(+)
|
||
|
|
||
|
diff --git a/gtk/spice-session.c b/gtk/spice-session.c
|
||
|
index 28ebe8a..526d05b 100644
|
||
|
--- a/gtk/spice-session.c
|
||
|
+++ b/gtk/spice-session.c
|
||
|
@@ -118,10 +118,28 @@ static guint signals[SPICE_SESSION_LAST_SIGNAL];
|
||
|
static void spice_session_init(SpiceSession *session)
|
||
|
{
|
||
|
SpiceSessionPrivate *s;
|
||
|
+ gchar *channels;
|
||
|
|
||
|
SPICE_DEBUG("New session (compiled from package " PACKAGE_STRING ")");
|
||
|
s = session->priv = SPICE_SESSION_GET_PRIVATE(session);
|
||
|
|
||
|
+ channels = g_strjoin(", ",
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_MAIN),
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_DISPLAY),
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_INPUTS),
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_CURSOR),
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_PLAYBACK),
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_RECORD),
|
||
|
+#ifdef USE_SMARTCARD
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_SMARTCARD),
|
||
|
+#endif
|
||
|
+#ifdef USE_USBREDIR
|
||
|
+ spice_channel_type_to_string(SPICE_CHANNEL_USBREDIR),
|
||
|
+#endif
|
||
|
+ NULL);
|
||
|
+ SPICE_DEBUG("Supported channels: %s", channels);
|
||
|
+ g_free(channels);
|
||
|
+
|
||
|
ring_init(&s->channels);
|
||
|
cache_init(&s->images, "image");
|
||
|
cache_init(&s->palettes, "palette");
|
||
|
--
|
||
|
1.7.12.1
|
||
|
|