aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-02 11:38:52 +0000
committerGitHub <noreply@github.com>2020-12-02 11:38:52 +0000
commit3e647c0d3b3506b8160b37748108ba3fbd7cb632 (patch)
tree939e1afeef3d5cb05942a8400a5eff716a7979a9 /samples
parentddf444e8da02e0c8796944e2484cd0ca91a0105d (diff)
downloadlibvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.zip
libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.gz
libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.bz2
rename VFU_REG_FLAG_* (#145)
We renamed other code to be "REGION" instead of "REG" so it's less ambiguous. Do the same for VFU_REG_FLAG_*. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/gpio-pci-idio-16.c2
-rw-r--r--samples/server.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index 149bb59..494fb1a 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -122,7 +122,7 @@ main(int argc, char *argv[])
}
ret = vfu_setup_region(vfu_ctx, VFU_PCI_DEV_BAR2_REGION_IDX, 0x100,
- &bar2_access, VFU_REG_FLAG_RW, NULL, 0, NULL);
+ &bar2_access, VFU_REGION_FLAG_RW, NULL, 0, NULL);
if (ret < 0) {
fprintf(stderr, "failed to setup region\n");
goto out;
diff --git a/samples/server.c b/samples/server.c
index aeb9e69..58e2f81 100644
--- a/samples/server.c
+++ b/samples/server.c
@@ -429,7 +429,7 @@ int main(int argc, char *argv[])
}
ret = vfu_setup_region(vfu_ctx, VFU_PCI_DEV_BAR0_REGION_IDX, sizeof(time_t),
- &bar0_access, VFU_REG_FLAG_RW, NULL, 0, NULL);
+ &bar0_access, VFU_REGION_FLAG_RW, NULL, 0, NULL);
if (ret < 0) {
err(EXIT_FAILURE, "failed to setup BAR0 region");
}
@@ -440,7 +440,7 @@ int main(int argc, char *argv[])
};
ret = vfu_setup_region(vfu_ctx, VFU_PCI_DEV_BAR1_REGION_IDX,
sysconf(_SC_PAGESIZE), &bar1_access,
- VFU_REG_FLAG_RW, mmap_areas, 2, map_area);
+ VFU_REGION_FLAG_RW, mmap_areas, 2, map_area);
if (ret < 0) {
err(EXIT_FAILURE, "failed to setup BAR1 region");
}