diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2021-03-11 08:16:13 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2021-04-13 17:00:38 +0200 |
commit | c8238579fb0b1c3affbd77749ae2b2c4dfafb2d6 (patch) | |
tree | c6afbdd2a2baa03b365d69018770beed4c8aff32 /tests/storagepoolcapstest.c | |
parent | c21f066d61e4186fec0a2d4b4f90e901ed5b9611 (diff) | |
download | libvirt-c8238579fb0b1c3affbd77749ae2b2c4dfafb2d6.tar.gz |
lib: Drop internal virXXXPtr typedefs
Historically, we declared pointer type to our types:
typedef struct _virXXX virXXX;
typedef virXXX *virXXXPtr;
But usefulness of such declaration is questionable, at best.
Unfortunately, we can't drop every such declaration - we have to
carry some over, because they are part of public API (e.g.
virDomainPtr). But for internal types - we can do drop them and
use what every other C project uses 'virXXX *'.
This change was generated by a very ugly shell script that
generated sed script which was then called over each file in the
repository. For the shell script refer to the cover letter:
https://listman.redhat.com/archives/libvir-list/2021-March/msg00537.html
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Diffstat (limited to 'tests/storagepoolcapstest.c')
-rw-r--r-- | tests/storagepoolcapstest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/storagepoolcapstest.c b/tests/storagepoolcapstest.c index 28b9f7d90a..f937670aa7 100644 --- a/tests/storagepoolcapstest.c +++ b/tests/storagepoolcapstest.c @@ -28,11 +28,11 @@ struct test_virStoragePoolCapsFormatData { const char *filename; - virCapsPtr driverCaps; + virCaps *driverCaps; }; static void -test_virCapabilitiesAddFullStoragePool(virCapsPtr caps) +test_virCapabilitiesAddFullStoragePool(virCaps *caps) { size_t i; @@ -42,7 +42,7 @@ test_virCapabilitiesAddFullStoragePool(virCapsPtr caps) static void -test_virCapabilitiesAddFSStoragePool(virCapsPtr caps) +test_virCapabilitiesAddFSStoragePool(virCaps *caps) { virCapabilitiesAddStoragePool(caps, VIR_STORAGE_POOL_FS); } @@ -53,7 +53,7 @@ test_virStoragePoolCapsFormat(const void *opaque) { struct test_virStoragePoolCapsFormatData *data = (struct test_virStoragePoolCapsFormatData *) opaque; - virCapsPtr driverCaps = data->driverCaps; + virCaps *driverCaps = data->driverCaps; g_autoptr(virStoragePoolCaps) poolCaps = NULL; g_autofree char *path = NULL; g_autofree char *poolCapsXML = NULL; |