[libvirt] [PATCH 16/20] qemu: Rename qemuBuildShmemBackendStr to qemuBuildShmemBackendChrStr

Martin Kletzander mkletzan at redhat.com
Thu Sep 15 16:14:41 UTC 2016


There will be more backends in the future so let's not complicate it.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 src/qemu/qemu_command.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index aba7dc3db79b..a28d503943d2 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -8598,12 +8598,12 @@ qemuBuildShmemDevLegacyStr(virDomainDefPtr def,
 }

 static char *
-qemuBuildShmemBackendStr(virLogManagerPtr logManager,
-                         virCommandPtr cmd,
-                         virQEMUDriverConfigPtr cfg,
-                         virDomainDefPtr def,
-                         virDomainShmemDefPtr shmem,
-                         virQEMUCapsPtr qemuCaps)
+qemuBuildShmemBackendChrStr(virLogManagerPtr logManager,
+                            virCommandPtr cmd,
+                            virQEMUDriverConfigPtr cfg,
+                            virDomainDefPtr def,
+                            virDomainShmemDefPtr shmem,
+                            virQEMUCapsPtr qemuCaps)
 {
     char *devstr = NULL;

@@ -8674,8 +8674,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager,
     }

     if (shmem->server.enabled) {
-        if (!(devstr = qemuBuildShmemBackendStr(logManager, cmd, cfg, def,
-                                                shmem, qemuCaps)))
+        if (!(devstr = qemuBuildShmemBackendChrStr(logManager, cmd, cfg, def,
+                                                   shmem, qemuCaps)))
             return -1;

         virCommandAddArgList(cmd, "-chardev", devstr, NULL);
-- 
2.10.0




More information about the libvir-list mailing list