blkdebug: Merge hand-rolled and qapi BlkdebugEvent enum
No need to keep two separate enums, where editing one is likely to forget the other. Now that we can specify a qapi enum prefix, we don't even have to change the bulk of the uses. get_event_by_name() could perhaps be replaced by qapi_enum_parse(), but I left that for another day. CC: Kevin Wolf <kwolf@redhat.com> Signed-off-by:Eric Blake <eblake@redhat.com> Message-Id: <1447836791-369-20-git-send-email-eblake@redhat.com> Signed-off-by:
Markus Armbruster <armbru@redhat.com>
Showing
- block.c 1 addition, 1 deletionblock.c
- block/blkdebug.c 11 additions, 68 deletionsblock/blkdebug.c
- docs/blkdebug.txt 4 additions, 3 deletionsdocs/blkdebug.txt
- include/block/block.h 1 addition, 61 deletionsinclude/block/block.h
- include/block/block_int.h 1 addition, 1 deletioninclude/block/block_int.h
- qapi/block-core.json 3 additions, 1 deletionqapi/block-core.json
Loading
Please register or sign in to comment