mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Split up virStoragePoolSourceAdapter
Create typedef'd substructures and rework typedef to utilize. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
5e0af53512
commit
9c286868b1
@ -179,27 +179,35 @@ typedef enum {
|
||||
} virStoragePoolSourceAdapterType;
|
||||
VIR_ENUM_DECL(virStoragePoolSourceAdapter)
|
||||
|
||||
typedef struct _virStorageAdapterSCSIHost virStorageAdapterSCSIHost;
|
||||
typedef virStorageAdapterSCSIHost *virStorageAdapterSCSIHostPtr;
|
||||
struct _virStorageAdapterSCSIHost {
|
||||
char *name;
|
||||
virPCIDeviceAddress parentaddr; /* host address */
|
||||
int unique_id;
|
||||
bool has_parent;
|
||||
};
|
||||
|
||||
typedef struct _virStorageAdapterFCHost virStorageAdapterFCHost;
|
||||
typedef virStorageAdapterFCHost *virStorageAdapterFCHostPtr;
|
||||
struct _virStorageAdapterFCHost {
|
||||
char *parent;
|
||||
char *parent_wwnn;
|
||||
char *parent_wwpn;
|
||||
char *parent_fabric_wwn;
|
||||
char *wwnn;
|
||||
char *wwpn;
|
||||
int managed; /* enum virTristateSwitch */
|
||||
};
|
||||
|
||||
typedef struct _virStoragePoolSourceAdapter virStoragePoolSourceAdapter;
|
||||
typedef virStoragePoolSourceAdapter *virStoragePoolSourceAdapterPtr;
|
||||
struct _virStoragePoolSourceAdapter {
|
||||
int type; /* virStoragePoolSourceAdapterType */
|
||||
|
||||
union {
|
||||
struct {
|
||||
char *name;
|
||||
virPCIDeviceAddress parentaddr; /* host address */
|
||||
int unique_id;
|
||||
bool has_parent;
|
||||
} scsi_host;
|
||||
struct {
|
||||
char *parent;
|
||||
char *parent_wwnn;
|
||||
char *parent_wwpn;
|
||||
char *parent_fabric_wwn;
|
||||
char *wwnn;
|
||||
char *wwpn;
|
||||
int managed; /* enum virTristateSwitch */
|
||||
} fchost;
|
||||
virStorageAdapterSCSIHost scsi_host;
|
||||
virStorageAdapterFCHost fchost;
|
||||
} data;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user