mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
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 <alex.williamson@hp.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7162 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
dad354198e
commit
c4be29ff43
2 changed files with 2 additions and 1 deletions
1
sysemu.h
1
sysemu.h
|
@ -15,6 +15,7 @@ extern const char *bios_dir;
|
||||||
extern int vm_running;
|
extern int vm_running;
|
||||||
extern const char *qemu_name;
|
extern const char *qemu_name;
|
||||||
extern uint8_t qemu_uuid[];
|
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"
|
#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;
|
typedef struct vm_change_state_entry VMChangeStateEntry;
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -4200,7 +4200,7 @@ static BOOL WINAPI qemu_ctrl_handler(DWORD type)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int qemu_uuid_parse(const char *str, uint8_t *uuid)
|
int qemu_uuid_parse(const char *str, uint8_t *uuid)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue