[7162] qemu: Add prototype and make qemu_uuid_parse() non-static ( Alex Williamson)
Revision: 7162
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7162 Author: aliguori Date: 2009-04-17 18:58:14 +0000 (Fri, 17 Apr 2009)
Log Message:
-----------
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 <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/sysemu.h
trunk/vl.c
Modified: trunk/sysemu.h
===================================================================
sysemu.h +1 -0
@@ -15,6 +15,7 @@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 ;
Modified: trunk/vl.c
===================================================================
vl.c +1 -1
@@ -4200,7 +4200,7 @@ }#endif -static int qemu_uuid_parse (const char *str,uint8_t *uuid) +int qemu_uuid_parse (const char *str,uint8_t *uuid) {int ret;