Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.323 diff -u -r1.323 vl.c --- vl.c 29 Jul 2007 17:57:25 -0000 1.323 +++ vl.c 19 Aug 2007 01:31:31 -0000 @@ -146,7 +147,7 @@ /* point to the block driver where the snapshots are managed */ BlockDriverState *bs_snapshots; int vga_ram_size; -static DisplayState display_state; +DisplayState display_state; int nographic; const char* keyboard_layout = NULL; int64_t ticks_per_sec; @@ -910,7 +912,7 @@ } } -static void init_timers(void) +void init_timers(void) { init_get_clock(); ticks_per_sec = QEMU_TIMER_BASE; @@ -943,7 +945,7 @@ } } -static void timer_save(QEMUFile *f, void *opaque) +void timer_save(QEMUFile *f, void *opaque) { if (cpu_ticks_enabled) { hw_error("cannot save state if virtual timers are running"); @@ -953,7 +955,7 @@ qemu_put_be64s(f, &cpu_clock_offset); } -static int timer_load(QEMUFile *f, void *opaque, int version_id) +int timer_load(QEMUFile *f, void *opaque, int version_id) { if (version_id != 1 && version_id != 2) return -EINVAL; @@ -1063,7 +1065,7 @@ #endif /* !defined(_WIN32) */ -static void init_timer_alarm(void) +void init_timer_alarm(void) { #ifdef _WIN32 { @@ -6016,7 +6018,7 @@ inflateEnd(&s->zstream); } -static void ram_save(QEMUFile *f, void *opaque) +void ram_save(QEMUFile *f, void *opaque) { int i; RamCompressState s1, *s = &s1; @@ -6060,7 +6062,7 @@ ram_compress_close(s); } -static int ram_load(QEMUFile *f, void *opaque, int version_id) +int ram_load(QEMUFile *f, void *opaque, int version_id) { RamDecompressState s1, *s = &s1; uint8_t buf[10];