summaryrefslogtreecommitdiff
path: root/server/tests
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-05-17 10:36:09 -0400
committerAlon Levy <alevy@redhat.com>2013-05-17 11:06:34 -0400
commit7d6e813b2c3009d124edf97e557598a69a6b4fc4 (patch)
tree16bd6799a6295d71a89233e4e7412e93d9786a35 /server/tests
parentf844a995bb6c4ac39cd0b115335f27f9ee1b747e (diff)
server/tests/test_display_base: add missing set_client_capabilities, fix client_monitors_config signature
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/test_display_base.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index 588e960f..8657e915 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -701,13 +701,22 @@ static int flush_resources(QXLInstance *qin)
return TRUE;
}
-static void client_monitors_config(QXLInstance *qin, VDAgentMonitorsConfig *monitors_config)
+static int client_monitors_config(QXLInstance *qin,
+ VDAgentMonitorsConfig *monitors_config)
{
if (!monitors_config) {
printf("%s: NULL monitors_config\n", __func__);
} else {
printf("%s: %d\n", __func__, monitors_config->num_of_monitors);
}
+ return 0;
+}
+
+static void set_client_capabilities(QXLInstance *qin,
+ uint8_t client_present,
+ uint8_t caps[58])
+{
+ printf("%s: present %d caps %d\n", __func__, client_present, caps[0]);
}
QXLInterface display_sif = {
@@ -731,6 +740,7 @@ QXLInterface display_sif = {
.notify_update = notify_update,
.flush_resources = flush_resources,
.client_monitors_config = client_monitors_config,
+ .set_client_capabilities = set_client_capabilities,
};
/* interface for tests */