From: Alex Williamson Subject: [PATCH v2 1/3] qemu: Add prototype and make qemu_uuid_parse() non-static Date: Wed, 08 Apr 2009 15:59:00 -0600 Message-ID: <20090408215845.11530.28322.stgit@kvm.aw> References: <20090408215733.11530.29919.stgit@kvm.aw> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, alex.williamson@hp.com To: qemu-devel@nongnu.org, aliguori@us.ibm.com Return-path: Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:30933 "EHLO g5t0009.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbZDHWDP (ORCPT ); Wed, 8 Apr 2009 18:03:15 -0400 In-Reply-To: <20090408215733.11530.29919.stgit@kvm.aw> Sender: kvm-owner@vger.kernel.org List-ID: SMBIOS parameters can also provide a UUID outside of vl.c. Signed-off-by: Alex Williamson --- sysemu.h | 1 + vl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) 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 ddbcc6c..6235341 100644 --- a/vl.c +++ b/vl.c @@ -4197,7 +4197,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;