From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrfre-00065o-6F for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrfrZ-00060X-CN for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:21 -0400 Received: from [199.232.76.173] (port=42074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrfrY-00060M-VU for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:17 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:30934) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrfrY-0005Io-Gi for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:16 -0400 From: Alex Williamson Date: Wed, 08 Apr 2009 15:59:00 -0600 Message-ID: <20090408215845.11530.28322.stgit@kvm.aw> In-Reply-To: <20090408215733.11530.29919.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 Subject: [Qemu-devel] [PATCH v2 1/3] qemu: Add prototype and make qemu_uuid_parse() non-static Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aliguori@us.ibm.com Cc: alex.williamson@hp.com, kvm@vger.kernel.org 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;