render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
d89b3e
From b7cd7b195f024f75b5dbc033c49a6da4005aa665 Mon Sep 17 00:00:00 2001
d89b3e
Message-Id: <b7cd7b195f024f75b5dbc033c49a6da4005aa665@dist-git>
d89b3e
From: Peter Krempa <pkrempa@redhat.com>
d89b3e
Date: Tue, 17 Mar 2015 13:13:51 +0100
d89b3e
Subject: [PATCH] qemu: process: Export qemuProcessFindDomainDiskByAlias
d89b3e
d89b3e
https://bugzilla.redhat.com/show_bug.cgi?id=1202719
d89b3e
d89b3e
(cherry picked from commit 5c634730b99b53afd6e2cea4b7d2fc2dfc2ee630)
d89b3e
d89b3e
Conflicts:
d89b3e
	src/qemu/qemu_process.h - context with new declarations added
d89b3e
                                  upstream
d89b3e
d89b3e
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
d89b3e
---
d89b3e
 src/qemu/qemu_process.c | 2 +-
d89b3e
 src/qemu/qemu_process.h | 3 +++
d89b3e
 2 files changed, 4 insertions(+), 1 deletion(-)
d89b3e
d89b3e
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
d89b3e
index b9e7280..ffba29d 100644
d89b3e
--- a/src/qemu/qemu_process.c
d89b3e
+++ b/src/qemu/qemu_process.c
d89b3e
@@ -389,7 +389,7 @@ qemuProcessFindDomainDiskByPath(virDomainObjPtr vm,
d89b3e
     return NULL;
d89b3e
 }
d89b3e
 
d89b3e
-static virDomainDiskDefPtr
d89b3e
+virDomainDiskDefPtr
d89b3e
 qemuProcessFindDomainDiskByAlias(virDomainObjPtr vm,
d89b3e
                                  const char *alias)
d89b3e
 {
d89b3e
diff --git a/src/qemu/qemu_process.h b/src/qemu/qemu_process.h
d89b3e
index 5948ea4..9fbf7ba 100644
d89b3e
--- a/src/qemu/qemu_process.h
d89b3e
+++ b/src/qemu/qemu_process.h
d89b3e
@@ -104,4 +104,7 @@ virBitmapPtr qemuPrepareCpumap(virQEMUDriverPtr driver,
d89b3e
 
d89b3e
 int qemuProcessReadLog(int fd, char *buf, int buflen, int off, bool skipchar);
d89b3e
 
d89b3e
+virDomainDiskDefPtr qemuProcessFindDomainDiskByAlias(virDomainObjPtr vm,
d89b3e
+                                                     const char *alias);
d89b3e
+
d89b3e
 #endif /* __QEMU_PROCESS_H__ */
d89b3e
-- 
d89b3e
2.3.3
d89b3e