Reviewed-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> ________________________________ From: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Sent: Thursday, June 4, 2020 8:41 PM To: qemu-bl...@nongnu.org <qemu-bl...@nongnu.org> Cc: qemu-devel@nongnu.org <qemu-devel@nongnu.org>; mre...@redhat.com <mre...@redhat.com>; kw...@redhat.com <kw...@redhat.com>; ebl...@redhat.com <ebl...@redhat.com>; Denis Lunev <d...@virtuozzo.com>; Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>; Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Subject: [PATCH v4 06/12] qcow2_format.py: use strings to specify c-type of struct fields
We are going to move field-parsing to super-class, this will be simpler with simple string specifiers instead of variables. For some reason python doesn't allow to define ctypes in class too, as well as fields: it's not available than in 'for' operator. Don't worry: ctypes will be moved to metaclass soon. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> --- tests/qemu-iotests/qcow2_format.py | 50 +++++++++++++++++------------- 1 file changed, 28 insertions(+), 22 deletions(-)