aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_pci_caps.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/py/test_pci_caps.py')
-rw-r--r--test/py/test_pci_caps.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/py/test_pci_caps.py b/test/py/test_pci_caps.py
index 88a9b7c..be1914d 100644
--- a/test/py/test_pci_caps.py
+++ b/test/py/test_pci_caps.py
@@ -70,8 +70,7 @@ def test_pci_cap_bad_pos():
assert pos == -1
assert c.get_errno() == errno.EINVAL
-@c.CFUNCTYPE(c.c_int, c.c_void_p, c.POINTER(c.c_char),
- c.c_long, c.c_long, c.c_int)
+@vfu_region_access_cb_t
def pci_region_cb(ctx, buf, count, offset, is_write):
if not is_write:
return read_pci_cfg_space(ctx, buf, count, offset)