monitor: Create MonitorHMP with readline state
commit5f9dba1600de5e6312ea2d86cff61a5f03c8207e
authorKevin Wolf <kwolf@redhat.com>
Thu, 13 Jun 2019 15:33:54 +0000 (13 17:33 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 17 Jun 2019 18:36:56 +0000 (17 20:36 +0200)
treed2267c43bbddf9451d41bdabe96b0e90b3420e30
parentb8e31d6ccc40de09392766fc8a77133196ba8468
monitor: Create MonitorHMP with readline state

The ReadLineState in Monitor is only used for HMP monitors. Create
MonitorHMP and move it there.

Can't use container_of() in hmp_change().  Cast instead, and mark
FIXME.  Will be cleaned up shortly.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190613153405.24769-5-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Superfluous variable in monitor_data_destroy() eliminated, whitespace
tweaked in hmp_change(), commit message improved]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hmp.c
include/monitor/monitor.h
monitor.c