render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
d76c62
From 92ec9a02d57b18eac3abc33e0807cd70c6bb46c5 Mon Sep 17 00:00:00 2001
d76c62
Message-Id: <92ec9a02d57b18eac3abc33e0807cd70c6bb46c5@dist-git>
d76c62
From: Peter Krempa <pkrempa@redhat.com>
d76c62
Date: Tue, 4 Feb 2020 15:08:03 +0100
d76c62
Subject: [PATCH] qemuMigrationCookieNBD: Extract embedded struct
d76c62
MIME-Version: 1.0
d76c62
Content-Type: text/plain; charset=UTF-8
d76c62
Content-Transfer-Encoding: 8bit
d76c62
d76c62
Extract the struct so that it's type has a name.
d76c62
d76c62
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
d76c62
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
d76c62
(cherry picked from commit 3093822d1d8e3bbd01ea59f35a9fea1228f9268f)
d76c62
d76c62
https://bugzilla.redhat.com/show_bug.cgi?id=1793263
d76c62
Message-Id: <e05be367f0869dbbf726cea7e91925fc48bb683f.1580824112.git.pkrempa@redhat.com>
d76c62
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d76c62
---
d76c62
 src/qemu/qemu_migration_cookie.h | 10 ++++++----
d76c62
 1 file changed, 6 insertions(+), 4 deletions(-)
d76c62
d76c62
diff --git a/src/qemu/qemu_migration_cookie.h b/src/qemu/qemu_migration_cookie.h
d76c62
index 20e1ed60ca..1e88684589 100644
d76c62
--- a/src/qemu/qemu_migration_cookie.h
d76c62
+++ b/src/qemu/qemu_migration_cookie.h
d76c62
@@ -84,16 +84,18 @@ struct _qemuMigrationCookieNetwork {
d76c62
     qemuMigrationCookieNetDataPtr net;
d76c62
 };
d76c62
 
d76c62
+struct qemuMigrationCookieNBDDisk {
d76c62
+    char *target;                   /* Disk target */
d76c62
+    unsigned long long capacity;    /* And its capacity */
d76c62
+};
d76c62
+
d76c62
 typedef struct _qemuMigrationCookieNBD qemuMigrationCookieNBD;
d76c62
 typedef qemuMigrationCookieNBD *qemuMigrationCookieNBDPtr;
d76c62
 struct _qemuMigrationCookieNBD {
d76c62
     int port; /* on which port does NBD server listen for incoming data */
d76c62
 
d76c62
     size_t ndisks;  /* Number of items in @disk array */
d76c62
-    struct {
d76c62
-        char *target;                   /* Disk target */
d76c62
-        unsigned long long capacity;    /* And its capacity */
d76c62
-    } *disks;
d76c62
+    struct qemuMigrationCookieNBDDisk *disks;
d76c62
 };
d76c62
 
d76c62
 typedef struct _qemuMigrationCookieCaps qemuMigrationCookieCaps;
d76c62
-- 
d76c62
2.25.0
d76c62