Skip to contentSkip to conversation

[7162] qemu: Add prototype and make qemu_uuid_parse() non-static ( Alex Williamson)

Qemu-devel Anthony Liguori 1 participant 1 message Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

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.

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;