Re: [Qemu-block] [PATCH 2/3] blockdev: Add dynamic generation of module_block.h

2016-06-24 Thread Stefan Hajnoczi
On Wed, Jun 22, 2016 at 05:35:53PM -0400, Colin Lord wrote: > +def print_top(fheader): > +fheader.write('''/* AUTOMATICALLY GENERATED, DO NOT MODIFY */ > +/* > + * QEMU Block Module Infrastructure > + * > + * Copyright Red Hat, Inc. 2015 > + * > + * Authors: > + * Marc Mari

[Qemu-block] [PATCH 2/3] blockdev: Add dynamic generation of module_block.h

2016-06-22 Thread Colin Lord
From: Marc Mari To simplify the addition of new block modules, add a script that generates include/qemu/module_block.h automatically from the modules' source code. This script assumes that the QEMU coding style rules are followed. Signed-off-by: Marc Mari