diff options
author | Alon Levy <alevy@redhat.com> | 2011-08-07 10:26:45 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-23 17:01:14 +0300 |
commit | 5c99a6da4fb2b8d91799cc3eaa86c2e92d55388e (patch) | |
tree | b210b70eb77f2f17c5ee2a0019a81c62cd55d5de /server/tests | |
parent | 9a444f66c22023e3e048d993ca735ffeff9057a5 (diff) | |
download | spice-5c99a6da4fb2b8d91799cc3eaa86c2e92d55388e.tar.gz spice-5c99a6da4fb2b8d91799cc3eaa86c2e92d55388e.tar.xz spice-5c99a6da4fb2b8d91799cc3eaa86c2e92d55388e.zip |
server/tests/test_display_base: fix compile
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/test_display_base.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index 76817d97..d69f8064 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -402,10 +402,11 @@ static void produce_command() SpiceTimer *wakeup_timer; int wakeup_ms = 50; +SpiceCoreInterface *g_core; static int req_cmd_notification(QXLInstance *qin) { - core->timer_start(wakeup_timer, wakeup_ms); + g_core->timer_start(wakeup_timer, wakeup_ms); return TRUE; } @@ -418,7 +419,7 @@ static void do_wakeup() produce_command(); } - core->timer_start(wakeup_timer, wakeup_ms); + g_core->timer_start(wakeup_timer, wakeup_ms); qxl_worker->wakeup(qxl_worker); } @@ -561,6 +562,7 @@ SpiceServer* test_init(SpiceCoreInterface *core) { int port = 5912; SpiceServer* server = spice_server_new(); + g_core = core; // some common initialization for all display tests printf("TESTER: listening on port %d (unsecure)\n", port); |