conf: rename and move virStoragePoolSourceInitiatorAttr

This structure will be reused by domain disk images as well.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2018-08-07 13:25:21 +02:00
parent 60360e32ec
commit 1576c12628
2 changed files with 7 additions and 6 deletions

View File

@ -140,11 +140,6 @@ struct _virStoragePoolSourceDeviceExtent {
int type; /* virStorageFreeType */
};
typedef struct _virStoragePoolSourceInitiatorAttr virStoragePoolSourceInitiatorAttr;
struct _virStoragePoolSourceInitiatorAttr {
char *iqn; /* Initiator IQN */
};
/*
* Pools can be backed by one or more devices, and some
* allow us to track free space on underlying devices.
@ -189,7 +184,7 @@ struct _virStoragePoolSource {
char *name;
/* Initiator IQN */
virStoragePoolSourceInitiatorAttr initiator;
virStorageSourceInitiatorDef initiator;
/* Authentication information */
virStorageAuthDefPtr auth;

View File

@ -226,6 +226,12 @@ struct _virStoragePRDef {
char *mgralias;
};
typedef struct _virStorageSourceInitiatorDef virStorageSourceInitiatorDef;
typedef virStorageSourceInitiatorDef *virStorageSourceInitiatorDefPtr;
struct _virStorageSourceInitiatorDef {
char *iqn; /* Initiator IQN */
};
typedef struct _virStorageDriverData virStorageDriverData;
typedef virStorageDriverData *virStorageDriverDataPtr;