[Spice-commits] 4 commits - server/common-graphics-channel.c server/cursor-channel.h server/event-loop.c server/inputs-channel.c server/red-channel.c server/smartcard-channel-client.c server/tests
Frediano Ziglio
fziglio at kemper.freedesktop.org
Tue Nov 1 12:49:01 UTC 2016
server/common-graphics-channel.c | 1 -
server/cursor-channel.h | 2 +-
server/event-loop.c | 3 +++
server/inputs-channel.c | 2 +-
server/red-channel.c | 2 +-
server/smartcard-channel-client.c | 1 -
server/tests/stream-test.c | 21 +++++++++++++++++++++
server/tests/test-loop.c | 1 -
server/tests/test-qxl-parsing.c | 22 +++++++++++++++++++++-
9 files changed, 48 insertions(+), 7 deletions(-)
New commits:
commit c7f492b75c56d4c77bd7c22446cf6236e3128c95
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Thu Oct 27 16:12:17 2016 +0200
syntax-check: Add missing license headers
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/tests/stream-test.c b/server/tests/stream-test.c
index 9c43d74..8a34a0d 100644
--- a/server/tests/stream-test.c
+++ b/server/tests/stream-test.c
@@ -1,3 +1,20 @@
+/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ Copyright (C) 2016 Red Hat, Inc.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
+*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/server/tests/test-qxl-parsing.c b/server/tests/test-qxl-parsing.c
index dc1ea7c..db486c1 100644
--- a/server/tests/test-qxl-parsing.c
+++ b/server/tests/test-qxl-parsing.c
@@ -1,3 +1,21 @@
+/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ Copyright (C) 2016 Red Hat, Inc.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
+*/
+
/* Do some tests on memory parsing
*/
#ifdef HAVE_CONFIG_H
commit c979647a77edb9ebd867a4d1923c95aac2352116
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Thu Oct 27 16:12:16 2016 +0200
syntax-check: Remove unused header includes
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/tests/test-loop.c b/server/tests/test-loop.c
index 0bcc953..c8d3fb1 100644
--- a/server/tests/test-loop.c
+++ b/server/tests/test-loop.c
@@ -24,7 +24,6 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#include <signal.h>
#include <unistd.h>
#include <pthread.h>
#include <glib.h>
diff --git a/server/tests/test-qxl-parsing.c b/server/tests/test-qxl-parsing.c
index a8dd27b..dc1ea7c 100644
--- a/server/tests/test-qxl-parsing.c
+++ b/server/tests/test-qxl-parsing.c
@@ -8,7 +8,6 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#include <strings.h>
#include <unistd.h>
#include <assert.h>
commit 9c21b474c0f1d27f6c3b75c9bdadd67c2b4f33d1
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Thu Oct 27 16:12:15 2016 +0200
syntax-check: Add missing <config.h> includes
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/event-loop.c b/server/event-loop.c
index 1b57460..80add0b 100644
--- a/server/event-loop.c
+++ b/server/event-loop.c
@@ -21,6 +21,9 @@
*
* const SpiceCoreInterfaceInternal event_loop_core;
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include "red-common.h"
diff --git a/server/tests/stream-test.c b/server/tests/stream-test.c
index 623a394..9c43d74 100644
--- a/server/tests/stream-test.c
+++ b/server/tests/stream-test.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
diff --git a/server/tests/test-qxl-parsing.c b/server/tests/test-qxl-parsing.c
index a3b2e6c..a8dd27b 100644
--- a/server/tests/test-qxl-parsing.c
+++ b/server/tests/test-qxl-parsing.c
@@ -1,5 +1,8 @@
/* Do some tests on memory parsing
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#undef NDEBUG
#include <string.h>
commit d6c5b5c0580abf7207d4c057b26f0826bc4cb2b7
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Thu Oct 27 16:12:14 2016 +0200
syntax-check: Remove trailing whitespace from EOL and EOF
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/common-graphics-channel.c b/server/common-graphics-channel.c
index e3a3ded..0311cae 100644
--- a/server/common-graphics-channel.c
+++ b/server/common-graphics-channel.c
@@ -199,4 +199,3 @@ QXLInstance* common_graphics_channel_get_qxl(CommonGraphicsChannel *self)
{
return self->priv->qxl;
}
-
diff --git a/server/cursor-channel.h b/server/cursor-channel.h
index 26b2cbb..ec9d44f 100644
--- a/server/cursor-channel.h
+++ b/server/cursor-channel.h
@@ -72,7 +72,7 @@ void cursor_channel_set_mouse_mode(CursorChannel *cursor, uint32
* This is the equivalent of RedChannel client connect callback.
* See comment on cursor_channel_new.
*/
-void cursor_channel_connect (CursorChannel *cursor, RedClient *client,
+void cursor_channel_connect (CursorChannel *cursor, RedClient *client,
RedsStream *stream,
int migrate,
uint32_t *common_caps, int num_common_caps,
diff --git a/server/inputs-channel.c b/server/inputs-channel.c
index aadcf4b..f96a64c 100644
--- a/server/inputs-channel.c
+++ b/server/inputs-channel.c
@@ -590,7 +590,7 @@ InputsChannel* inputs_channel_new(RedsState *reds)
"channel-type", (int)SPICE_CHANNEL_INPUTS,
"id", 0,
"handle-acks", FALSE,
- "migration-flags",
+ "migration-flags",
(guint)(SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER),
NULL);
diff --git a/server/red-channel.c b/server/red-channel.c
index bb896c7..1b6ab32 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -81,7 +81,7 @@ struct RedChannelPrivate
SpiceCoreInterfaceInternal *core;
gboolean handle_acks;
- // RedChannel will hold only connected channel clients
+ // RedChannel will hold only connected channel clients
// (logic - when pushing pipe item to all channel clients, there
// is no need to go over disconnect clients)
// . While client will hold the channel clients till it is destroyed
diff --git a/server/smartcard-channel-client.c b/server/smartcard-channel-client.c
index ec99e07..30b2249 100644
--- a/server/smartcard-channel-client.c
+++ b/server/smartcard-channel-client.c
@@ -415,4 +415,3 @@ RedCharDeviceSmartcard* smartcard_channel_client_get_char_device(SmartCardChanne
{
return scc->priv->smartcard;
}
-
More information about the Spice-commits
mailing list