]> xenbits.xensource.com Git - libvirt.git/commit
maint: shorten 'TypeType' function names
authorEric Blake <eblake@redhat.com>
Wed, 14 May 2014 19:48:15 +0000 (13:48 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 May 2014 06:22:18 +0000 (00:22 -0600)
commitab5178188f250385132338e004d5c1f160fc5f34
tree12a50920250ed1853a038560e4135b4a505cd862
parentea18f8b2b0337acfa418080d73035fac2185850b
maint: shorten 'TypeType' function names

The VIR_ENUM_DECL/VIR_ENUM_IMPL helper macros already append 'Type'
to the enum name being converted; it looks silly to have functions
with 'TypeType' in their name.  Even though some of our enums have
to have a 'Type' suffix, the corresponding string conversion
functions do not.

* src/conf/secret_conf.h (VIR_ENUM_DECL): Rename virSecretUsageType.
* src/conf/storage_conf.h (VIR_ENUM_DECL): Rename
virStoragePoolAuthType, virStoragePoolSourceAdapterType,
virStoragePartedFsType.
* src/conf/domain_conf.c (virDomainDiskDefParseXML)
(virDomainFSDefParseXML, virDomainFSDefFormat): Update callers.
* src/conf/secret_conf.c (virSecretDefParseUsage)
(virSecretDefFormatUsage): Likewise.
* src/conf/storage_conf.c (virStoragePoolDefParseAuth)
(virStoragePoolDefParseSource, virStoragePoolSourceFormat):
Likewise.
* src/lxc/lxc_controller.c (virLXCControllerSetupLoopDevices):
Likewise.
* src/storage/storage_backend_disk.c
(virStorageBackendDiskPartFormat): Likewise.
* src/util/virstorageencryption.c (virStorageEncryptionSecretParse)
(virStorageEncryptionSecretFormat): Likewise.
* tools/virsh-secret.c (cmdSecretList): Likewise.
* src/libvirt_private.syms (secret_conf.h, storage_conf.h): Export
corrected names.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/secret_conf.c
src/conf/secret_conf.h
src/conf/storage_conf.c
src/conf/storage_conf.h
src/libvirt_private.syms
src/lxc/lxc_controller.c
src/storage/storage_backend_disk.c
src/util/virstorageencryption.c
src/util/virstorageencryption.h
tools/virsh-secret.c