1. 20 7月, 2018 5 次提交
  2. 17 7月, 2018 1 次提交
  3. 10 7月, 2018 2 次提交
  4. 09 7月, 2018 2 次提交
  5. 26 6月, 2018 1 次提交
  6. 14 6月, 2018 1 次提交
  7. 12 6月, 2018 2 次提交
  8. 06 6月, 2018 1 次提交
  9. 05 6月, 2018 2 次提交
  10. 23 5月, 2018 6 次提交
  11. 17 5月, 2018 1 次提交
  12. 14 5月, 2018 2 次提交
  13. 11 5月, 2018 1 次提交
    • J
      util: Clean up consumers of virJSONValueArraySize · 4a3d6ed5
      John Ferlan 提交于
      Rather than have virJSONValueArraySize return a -1 when the input
      is not an array and then splat an error message, let's check for
      an array before calling and then change the return to be a size_t
      instead of ssize_t.
      
      That means using the helper virJSONValueIsArray as well as using a
      more generic error message such as "Malformed <something> array".
      In some cases we can remove stack variables and when we cannot,
      those variables should be size_t not ssize_t. Alter a few references
      of if (!value) to be if (value == 0) instead as well.
      
      Some callers can already assume an array is being worked on based
      on the previous call, so there's less to do.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      4a3d6ed5
  14. 04 5月, 2018 1 次提交
  15. 30 4月, 2018 1 次提交
  16. 18 4月, 2018 2 次提交
  17. 17 4月, 2018 7 次提交
  18. 03 4月, 2018 2 次提交
    • J
      qemu_monitor_json: Properly check "return" type · 452c2cc7
      Jiri Denemark 提交于
      My commit 2e0d6cde claimed qemuMonitorJSONCheckError guarantees
      "return" object exists in the JSON reply. But it only makes sure the key
      is there, while the type of the value is not checked. A lot of callers
      do not care since they only want to see whether their QMP command failed
      or not, but any caller which needs to read some data from the reply
      wants to make sure the correct data type was returned.
      
      This patch adds a new API called qemuMonitorJSONCheckReply which calls
      qemuMonitorJSONCheckError and checks "return" contains a value of the
      specified type.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      452c2cc7
    • P
      qemu: monitor: Don't resist stealing 'actions' in qemuMonitorJSONTransaction · 167028e3
      Peter Krempa 提交于
      Rather than trying to prevent stealing of the 'actions' virJSONValue
      into the monitor command replace the code so that it does the same
      thing, since 'actions' was actually not really used after calling the
      monitor.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      167028e3