5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

simplify code

This commit is contained in:
Dietmar Maurer 2013-09-12 09:33:24 +02:00
parent a3fd8291f7
commit 38e3e91281
3 changed files with 4 additions and 16 deletions

View File

@ -623,12 +623,6 @@ QXLInterface display_sif = {
.set_client_capabilities = set_client_capabilities,
};
void
spice_screen_add_display_interface(SpiceScreen* spice_screen)
{
spice_server_add_interface(spice_screen->server, &spice_screen->qxl_instance.base);
}
/* vdagent interface - not sure why we need that? */
static int
vmc_write(SpiceCharDeviceInstance *sin, const uint8_t *buf, int len)
@ -665,12 +659,6 @@ SpiceCharDeviceInstance vdagent_sin = {
.subtype = "vdagent",
};
void
spice_screen_add_agent_interface(SpiceServer *server)
{
spice_server_add_interface(server, &vdagent_sin.base);
}
void
spice_screen_draw_char(SpiceScreen *spice_screen, int x, int y, gunichar2 ch, TextAttributes attrib)
{
@ -739,5 +727,9 @@ spice_screen_new(SpiceCoreInterface *core)
spice_screen->conn_timeout_timer = core->timer_add(do_conn_timeout, spice_screen);
spice_screen->core->timer_start(spice_screen->conn_timeout_timer, timeout*1000);
spice_server_add_interface(spice_screen->server, &spice_screen->qxl_instance.base);
spice_server_add_interface(server, &vdagent_sin.base);
return spice_screen;
}

View File

@ -1612,8 +1612,6 @@ create_spiceterm(int argc, char** argv, int maxx, int maxy)
SpiceCoreInterface *core = basic_event_loop_init();
spice_screen = spice_screen_new(core);
//spice_server_set_image_compression(server, SPICE_IMAGE_COMPRESS_OFF);
spice_screen_add_display_interface(spice_screen);
spice_screen_add_agent_interface(spice_screen->server);
spiceTerm *vt = (spiceTerm *)calloc (sizeof(spiceTerm), 1);

View File

@ -64,8 +64,6 @@ struct SpiceScreen {
SpiceScreen* spice_screen_new(SpiceCoreInterface* core);
void spice_screen_add_display_interface(SpiceScreen *spice_screen);
void spice_screen_add_agent_interface(SpiceServer *server);
void spice_screen_draw_char(SpiceScreen *spice_screen, int x, int y, gunichar2 ch, TextAttributes attrib);
void spice_screen_scroll(SpiceScreen *spice_screen, int x1, int y1, int x2, int y2, int src_x, int src_y);
void spice_screen_clear(SpiceScreen *spice_screen, int x1, int y1, int x2, int y2);