aboutsummaryrefslogtreecommitdiff
path: root/samples/client.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-05-25 17:03:27 +0100
committerGitHub <noreply@github.com>2021-05-25 17:03:27 +0100
commitbd32c19beaac4007207b682e2d9e55ddeea5a5f6 (patch)
tree95c186a26ac8f879208c75eaa253e1493cf51825 /samples/client.c
parent4cc22bfd12ab10c1fbf20dd9d7b0633fb848bd9e (diff)
downloadlibvfio-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/client.c')
0 files changed, 0 insertions, 0 deletions