monitor/hmp: rename device-hotplug.c to block/monitor/block-hmp-cmds.c
commita2dde2f2210edd4b962035fcb379aeddc11b0273
authorMaxim Levitsky <mlevitsk@redhat.com>
Sun, 8 Mar 2020 09:24:32 +0000 (8 11:24 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 9 Mar 2020 18:05:31 +0000 (9 18:05 +0000)
tree7f00b98bd976d9bedfac0bbb92928a8d5b2eb6fc
parent6700d3d685468ab5c45d6e768820ed752200c56e
monitor/hmp: rename device-hotplug.c to block/monitor/block-hmp-cmds.c

These days device-hotplug.c only contains the hmp_drive_add
In the next patch, rest of hmp_drive* functions will be moved
there.

Also add block-hmp-cmds.h to contain prototypes of these
functions

License for block-hmp-cmds.h since it contains the code
moved from sysemu.h which lacks license and thus according
to LICENSE is under GPLv2+

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200308092440.23564-4-mlevitsk@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
MAINTAINERS
Makefile.objs
block/Makefile.objs
block/monitor/Makefile.objs [new file with mode: 0644]
block/monitor/block-hmp-cmds.c [moved from device-hotplug.c with 97% similarity]
include/block/block-hmp-cmds.h [new file with mode: 0644]
include/sysemu/sysemu.h
monitor/misc.c