]> git.proxmox.com Git - spiceterm.git/commitdiff
remove batch commands
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 6 Aug 2013 11:01:22 +0000 (13:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 6 Aug 2013 11:01:22 +0000 (13:01 +0200)
test_display_base.c
test_display_base.h
test_display_no_ssl.c

index dfd869f0f7dfbb727f30c5a13b28e4278d502adb..74645e1ffc912ab47a58370592130e62ffaf32ff 100644 (file)
@@ -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;
index 948f5be0892367db83148b30d59967f6e7ddf7e7..29b3319aebeb8f1c5d5ab74c6c14d03b731c9cc8 100644 (file)
@@ -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);
index 973526f824318a30ecfd3cf5834c5e9dfd319b77..8eb66cf72476f3f70ffb96ef24dadc325022e727 100644 (file)
@@ -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);