diff options
author | John Levon <john.levon@nutanix.com> | 2021-05-25 17:03:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 17:03:27 +0100 |
commit | bd32c19beaac4007207b682e2d9e55ddeea5a5f6 (patch) | |
tree | 95c186a26ac8f879208c75eaa253e1493cf51825 /samples | |
parent | 4cc22bfd12ab10c1fbf20dd9d7b0633fb848bd9e (diff) | |
download | libvfio-user-bd32c19beaac4007207b682e2d9e55ddeea5a5f6.zip libvfio-user-bd32c19beaac4007207b682e2d9e55ddeea5a5f6.tar.gz libvfio-user-bd32c19beaac4007207b682e2d9e55ddeea5a5f6.tar.bz2 |
cleanup some python tests (#482)
As suggested by Thanos, replace hard-coded struct.pack() with ctypes.Structure
objects so it's much clearer what the data being constructed is.
Replace some hard-coded unpacking with code based on ctypes::from_buffer_copy(),
but in a form that allows us to "pop" a structure from a longer buffer.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions