mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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:
parent
ea58b27aff
commit
69356fabcb
@ -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;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
SpiceCoreInterface *core;
|
||||
|
||||
int simple_commands[] = {
|
||||
static const int simple_commands[] = {
|
||||
//SIMPLE_CREATE_SURFACE,
|
||||
//SIMPLE_DRAW,
|
||||
//SIMPLE_DESTROY_SURFACE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user