• L
    monitor: do_info(): handle new and old info handlers · 13c7425e
    Luiz Capitulino 提交于
    do_info() is special, its job is to call 'info handlers'.
    This is similar to what monitor_handle_command() does,
    therefore do_info() also has to distinguish among new and
    old style info handlers.
    
    This commit converts do_info() to the new QObject style and
    makes the appropriate changes so that it can handle both
    info handlers styles.
    
    In the future, when all handlers are converted to QObject's
    style, it will be possible to share more code with
    monitor_handle_command().
    
    This commit also introduces a new function called
    monitor_user_noop(), it should be used by handlers which do
    not have data to print.
    
    This is the case of do_info().
    
    Patchworks-ID: 35341
    Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    13c7425e
qemu-monitor.hx 26.1 KB