[libvirt] [PATCH v3 2/7] storage_conf: Introduce virStoragePoolAuthSecretPtr
Daniel P. Berrange
berrange at redhat.com
Mon Jul 15 14:56:51 UTC 2013
On Mon, Jul 15, 2013 at 09:04:30AM -0400, John Ferlan wrote:
> Split out the _virStoragePoolAuthSecret data from _virStoragePoolAuthCephx
> into its own structure
> ---
> src/conf/storage_conf.h | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h
> index 98339ef..5fbecf4 100644
> --- a/src/conf/storage_conf.h
> +++ b/src/conf/storage_conf.h
> @@ -151,6 +151,14 @@ enum virStoragePoolAuthType {
> };
> VIR_ENUM_DECL(virStoragePoolAuthType)
>
> +typedef struct _virStoragePoolAuthSecret virStoragePoolAuthSecret;
> +typedef virStoragePoolAuthSecret *virStoragePoolAuthSecretPtr;
> +struct _virStoragePoolAuthSecret {
> + unsigned char uuid[VIR_UUID_BUFLEN];
> + char *usage;
> + bool uuidUsable;
> +};
> +
> typedef struct _virStoragePoolAuthChap virStoragePoolAuthChap;
> typedef virStoragePoolAuthChap *virStoragePoolAuthChapPtr;
> struct _virStoragePoolAuthChap {
> @@ -162,11 +170,7 @@ typedef struct _virStoragePoolAuthCephx virStoragePoolAuthCephx;
> typedef virStoragePoolAuthCephx *virStoragePoolAuthCephxPtr;
> struct _virStoragePoolAuthCephx {
> char *username;
> - struct {
> - unsigned char uuid[VIR_UUID_BUFLEN];
> - char *usage;
> - bool uuidUsable;
> - } secret;
> + virStoragePoolAuthSecret secret;
> };
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list