summaryrefslogtreecommitdiff
path: root/tests/virhostdevtest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2021-03-11 08:16:13 +0100
committerMichal Privoznik <mprivozn@redhat.com>2021-04-13 17:00:38 +0200
commitc8238579fb0b1c3affbd77749ae2b2c4dfafb2d6 (patch)
treec6afbdd2a2baa03b365d69018770beed4c8aff32 /tests/virhostdevtest.c
parentc21f066d61e4186fec0a2d4b4f90e901ed5b9611 (diff)
downloadlibvirt-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/virhostdevtest.c')
-rw-r--r--tests/virhostdevtest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c
index d3c0bca1c0..b9e16dd4e8 100644
--- a/tests/virhostdevtest.c
+++ b/tests/virhostdevtest.c
@@ -57,11 +57,11 @@ static const char *dom_name = "test_domain";
static const unsigned char *uuid =
(unsigned char *)("f92360b0-2541-8791-fb32-d1f838811541");
static int nhostdevs = 3;
-static virDomainHostdevDefPtr hostdevs[] = {NULL, NULL, NULL};
-static virPCIDevicePtr dev[] = {NULL, NULL, NULL};
-static virHostdevManagerPtr mgr;
+static virDomainHostdevDef *hostdevs[] = {NULL, NULL, NULL};
+static virPCIDevice *dev[] = {NULL, NULL, NULL};
+static virHostdevManager *mgr;
static const size_t ndisks = 3;
-static virDomainDiskDefPtr disks[] = {NULL, NULL, NULL};
+static virDomainDiskDef *disks[] = {NULL, NULL, NULL};
static const char *diskXML[] = {
"<disk type='nvme' device='disk'>"
" <driver name='qemu' type='raw'/>"