]> git.proxmox.com Git - spiceterm.git/blob - test_display_no_ssl.c
use new unicode spice input extension
[spiceterm.git] / test_display_no_ssl.c
1 /**
2 * Test ground for developing specific tests.
3 *
4 * Any specific test can start of from here and set the server to the
5 * specific required state, and create specific operations or reuse
6 * existing ones in the test_display_base supplied queue.
7 */
8
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include "test_display_base.h"
12
13 SpiceCoreInterface *core;
14 SpiceTimer *ping_timer;
15
16 int ping_ms = 1000;
17
18 void pinger(void *opaque)
19 {
20 printf("TEST PINGER\n");
21
22 core->timer_start(ping_timer, ping_ms);
23 }
24
25 int main(void)
26 {
27 Test *test;
28
29 core = basic_event_loop_init();
30 test = test_new(core);
31 //spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF);
32 test_add_display_interface(test);
33
34 test_add_agent_interface(test->server);
35
36 test_add_keyboard_interface(test);
37
38 //ping_timer = core->timer_add(pinger, NULL);
39 //core->timer_start(ping_timer, ping_ms);
40
41 basic_event_loop_mainloop();
42
43 return 0;
44 }