• D
    Wrap text mode monitor APIs, pass qemuMonitorPtr directly to APIs · 41d8968d
    Daniel P. Berrange 提交于
    Change the QEMU driver to not directly invoke the text mode monitor
    APIs. Instead add a generic wrapper layer, which will eventually
    invoke either the text or JSON protocol code as needed. Pass an
    qemuMonitorPtr object into the monitor APIs instead of virDomainObjPtr
    to complete the de-coupling of the monitor impl from virDomainObj
    data structures
    
    * src/qemu/qemu_conf.h: Remove qemuDomainObjPrivate definition
    * src/qemu/qemu_driver.c: Add qemuDomainObjPrivate definition.
      Pass qemuMonitorPtr into all monitor APIs instead of the
      virDomainObjPtr instance.
    * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add thin
      wrappers for all qemuMonitorXXX command APIs, calling into
      qemu_monitor_text.c/h
    * src/qemu/qemu_monitor_text.c, src/qemu/qemu_monitor_text.h:
      Rename qemuMonitor -> qemuMonitorText & update to accept
      qemuMonitorPtr instead of virDomainObjPtr
    41d8968d
qemu_monitor.c 20.4 KB