From: Dietmar Maurer Date: Tue, 6 Aug 2013 11:01:22 +0000 (+0200) Subject: remove batch commands X-Git-Url: https://git.proxmox.com/?p=spiceterm.git;a=commitdiff_plain;h=4cc3dc5a6ab2883b9a2a6162d5d5a0747b7a680d remove batch commands --- diff --git a/test_display_base.c b/test_display_base.c index dfd869f..74645e1 100644 --- a/test_display_base.c +++ b/test_display_base.c @@ -609,30 +609,9 @@ static SpiceKbdInterface keyboard_sif = { void test_add_keyboard_interface(Test* test) { - g_error("teste"); spice_server_add_interface(test->server, &test->keyboard_sin.base); } -void test_set_simple_command_list(Test *test, int *simple_commands, int num_commands) -{ - int i; - - /* FIXME: leaks */ - test->commands = malloc(sizeof(*test->commands) * num_commands); - memset(test->commands, 0, sizeof(*test->commands) * num_commands); - test->num_commands = num_commands; - for (i = 0 ; i < num_commands; ++i) { - test->commands[i].command = simple_commands[i]; - } -} - -void test_set_command_list(Test *test, Command *commands, int num_commands) -{ - test->commands = commands; - test->num_commands = num_commands; -} - - Test *test_new(SpiceCoreInterface *core) { int port = 5912; diff --git a/test_display_base.h b/test_display_base.h index 948f5be..29b3319 100644 --- a/test_display_base.h +++ b/test_display_base.h @@ -117,11 +117,6 @@ struct Test { int width; int height; - // qxl scripted rendering commands and io - Command *commands; - int num_commands; - int cmd_index; - int target_surface; // callbacks @@ -129,8 +124,6 @@ struct Test { void (*on_client_disconnected)(Test *test); }; -void test_set_simple_command_list(Test *test, int *command, int num_commands); -void test_set_command_list(Test *test, Command *command, int num_commands); void test_add_display_interface(Test *test); void test_add_agent_interface(SpiceServer *server); // TODO - Test *test void test_add_keyboard_interface(Test *test); diff --git a/test_display_no_ssl.c b/test_display_no_ssl.c index 973526f..8eb66cf 100644 --- a/test_display_no_ssl.c +++ b/test_display_no_ssl.c @@ -22,10 +22,6 @@ void pinger(void *opaque) core->timer_start(ping_timer, ping_ms); } -int simple_commands[] = { - SIMPLE_DRAW, -}; - int main(void) { Test *test; @@ -39,9 +35,6 @@ int main(void) test_add_keyboard_interface(test); - test_set_simple_command_list(test, simple_commands, COUNT(simple_commands)); - - //ping_timer = core->timer_add(pinger, NULL); //core->timer_start(ping_timer, ping_ms);