• E
    maint: shorten 'TypeType' function names · ab517818
    Eric Blake 提交于
    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: NEric Blake <eblake@redhat.com>
    ab517818
storage_backend_disk.c 26.4 KB