From: aliguori Date: Fri, 17 Apr 2009 18:58:14 +0000 (+0000) Subject: qemu: Add prototype and make qemu_uuid_parse() non-static (Alex Williamson) X-Git-Tag: TizenStudio_2.0_p2.3~9133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89bd5f325be34ea3c65492e7f9df12e1dae1a698;p=sdk%2Femulator%2Fqemu.git qemu: Add prototype and make qemu_uuid_parse() non-static (Alex Williamson) SMBIOS parameters can also provide a UUID outside of vl.c. Signed-off-by: Alex Williamson Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7162 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/sysemu.h b/sysemu.h index 3eab34b..e94d5c3 100644 --- a/sysemu.h +++ b/sysemu.h @@ -15,6 +15,7 @@ extern const char *bios_dir; extern int vm_running; extern const char *qemu_name; extern uint8_t qemu_uuid[]; +int qemu_uuid_parse(const char *str, uint8_t *uuid); #define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" typedef struct vm_change_state_entry VMChangeStateEntry; diff --git a/vl.c b/vl.c index 7e92d55..1515e7a 100644 --- a/vl.c +++ b/vl.c @@ -4200,7 +4200,7 @@ static BOOL WINAPI qemu_ctrl_handler(DWORD type) } #endif -static int qemu_uuid_parse(const char *str, uint8_t *uuid) +int qemu_uuid_parse(const char *str, uint8_t *uuid) { int ret;