Diff for /qemu/monitor.c between versions 1.1.1.10 and 1.1.1.11

version 1.1.1.10, 2018/04/24 17:34:39 version 1.1.1.11, 2018/04/24 17:49:59
Line 283  static void monitor_protocol_emitter(Mon Line 283  static void monitor_protocol_emitter(Mon
     if (!monitor_has_error(mon)) {      if (!monitor_has_error(mon)) {
         /* success response */          /* success response */
         if (data) {          if (data) {
             assert(qobject_type(data) == QTYPE_QDICT);  
             qobject_incref(data);              qobject_incref(data);
             qdict_put_obj(qmp, "return", data);              qdict_put_obj(qmp, "return", data);
         } else {          } else {
Line 366  void monitor_protocol_event(MonitorEvent Line 365  void monitor_protocol_event(MonitorEvent
     qmp = qdict_new();      qmp = qdict_new();
     timestamp_put(qmp);      timestamp_put(qmp);
     qdict_put(qmp, "event", qstring_from_str(event_name));      qdict_put(qmp, "event", qstring_from_str(event_name));
     if (data)      if (data) {
           qobject_incref(data);
         qdict_put_obj(qmp, "data", data);          qdict_put_obj(qmp, "data", data);
       }
   
     monitor_json_emitter(mon, QOBJECT(qmp));      monitor_json_emitter(mon, QOBJECT(qmp));
     QDECREF(qmp);      QDECREF(qmp);

Removed from v.1.1.1.10  
changed lines
  Added in v.1.1.1.11


unix.superglobalmegacorp.com