tests: Pass command list as constant

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-09-01 14:40:44 +01:00
parent ea58b27aff
commit 69356fabcb
4 changed files with 4 additions and 4 deletions

View File

@ -864,7 +864,7 @@ void test_add_agent_interface(SpiceServer *server)
spice_server_add_interface(server, &vdagent_sin.base);
}
void test_set_simple_command_list(Test *test, int *simple_commands, int num_commands)
void test_set_simple_command_list(Test *test, const int *simple_commands, int num_commands)
{
int i;

View File

@ -130,7 +130,7 @@ struct Test {
void (*on_client_disconnected)(Test *test);
};
void test_set_simple_command_list(Test *test, int *command, int num_commands);
void test_set_simple_command_list(Test *test, const 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

View File

@ -42,7 +42,7 @@ static void pinger(SPICE_GNUC_UNUSED void *opaque)
core->timer_start(ping_timer, ping_ms);
}
int simple_commands[] = {
static const int simple_commands[] = {
//SIMPLE_CREATE_SURFACE,
//SIMPLE_DRAW,
//SIMPLE_DESTROY_SURFACE,

View File

@ -25,7 +25,7 @@
SpiceCoreInterface *core;
int simple_commands[] = {
static const int simple_commands[] = {
//SIMPLE_CREATE_SURFACE,
//SIMPLE_DRAW,
//SIMPLE_DESTROY_SURFACE,