[PATCH 4/9] qemu: Introduce virQEMUDriverGetEmbedRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This function returns embeddedRoot member of the driver
structure.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/qemu/qemu_conf.c | 12 ++++++++++++
 src/qemu/qemu_conf.h |  1 +
 2 files changed, 13 insertions(+)

diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 15837cece4..fb7c5a1a8a 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -1230,6 +1230,18 @@ virQEMUDriverIsPrivileged(virQEMUDriverPtr driver)
     return driver->privileged;
 }
 
+/* virQEMUDriverGetEmbedRoot:
+ * @driver: the QEMU driver
+ *
+ * Returns root directory specified in connection URI for embed
+ * mode, NULL otherwise.
+ */
+const char *
+virQEMUDriverGetEmbedRoot(virQEMUDriverPtr driver)
+{
+    return driver->embeddedRoot;
+}
+
 virDomainXMLOptionPtr
 virQEMUDriverCreateXMLConf(virQEMUDriverPtr driver,
                            const char *defsecmodel)
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
index 14f9b9e81e..77e984ccdc 100644
--- a/src/qemu/qemu_conf.h
+++ b/src/qemu/qemu_conf.h
@@ -334,6 +334,7 @@ virQEMUDriverConfigSetDefaults(virQEMUDriverConfigPtr cfg);
 
 virQEMUDriverConfigPtr virQEMUDriverGetConfig(virQEMUDriverPtr driver);
 bool virQEMUDriverIsPrivileged(virQEMUDriverPtr driver);
+const char *virQEMUDriverGetEmbedRoot(virQEMUDriverPtr driver);
 
 virCapsHostNUMAPtr virQEMUDriverGetHostNUMACaps(virQEMUDriverPtr driver);
 virCPUDefPtr virQEMUDriverGetHostCPU(virQEMUDriverPtr driver);
-- 
2.24.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux