1. 08 3月, 2019 1 次提交
  2. 10 10月, 2018 1 次提交
  3. 15 6月, 2018 2 次提交
  4. 04 5月, 2018 3 次提交
  5. 20 3月, 2018 1 次提交
    • M
      qapi: Replace qobject_to_X(o) by qobject_to(X, o) · 7dc847eb
      Max Reitz 提交于
      This patch was generated using the following Coccinelle script:
      
      @@
      expression Obj;
      @@
      (
      - qobject_to_qnum(Obj)
      + qobject_to(QNum, Obj)
      |
      - qobject_to_qstring(Obj)
      + qobject_to(QString, Obj)
      |
      - qobject_to_qdict(Obj)
      + qobject_to(QDict, Obj)
      |
      - qobject_to_qlist(Obj)
      + qobject_to(QList, Obj)
      |
      - qobject_to_qbool(Obj)
      + qobject_to(QBool, Obj)
      )
      
      and a bit of manual fix-up for overly long lines and three places in
      tests/check-qjson.c that Coccinelle did not find.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NAlberto Garcia <berto@igalia.com>
      Message-Id: <20180224154033.29559-4-mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [eblake: swap order from qobject_to(o, X), rebase to master, also a fix
      to latent false-positive compiler complaint about hw/i386/acpi-build.c]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      7dc847eb
  6. 09 3月, 2018 1 次提交
  7. 09 2月, 2018 2 次提交
  8. 20 6月, 2017 3 次提交
  9. 09 5月, 2017 3 次提交
  10. 23 2月, 2017 3 次提交
  11. 25 10月, 2016 1 次提交
    • D
      qdict: implement a qdict_crumple method for un-flattening a dict · 603476c2
      Daniel P. Berrange 提交于
      The qdict_flatten() method will take a dict whose elements are
      further nested dicts/lists and flatten them by concatenating
      keys.
      
      The qdict_crumple() method aims to do the reverse, taking a flat
      qdict, and turning it into a set of nested dicts/lists. It will
      apply nesting based on the key name, with a '.' indicating a
      new level in the hierarchy. If the keys in the nested structure
      are all numeric, it will create a list, otherwise it will create
      a dict.
      
      If the keys are a mixture of numeric and non-numeric, or the
      numeric keys are not in strictly ascending order, an error will
      be reported.
      
      As an example, a flat dict containing
      
       {
         'foo.0.bar': 'one',
         'foo.0.wizz': '1',
         'foo.1.bar': 'two',
         'foo.1.wizz': '2'
       }
      
      will get turned into a dict with one element 'foo' whose
      value is a list. The list elements will each in turn be
      dicts.
      
       {
         'foo': [
           { 'bar': 'one', 'wizz': '1' },
           { 'bar': 'two', 'wizz': '2' }
         ],
       }
      
      If the key is intended to contain a literal '.', then it must
      be escaped as '..'. ie a flat dict
      
        {
           'foo..bar': 'wizz',
           'bar.foo..bar': 'eek',
           'bar.hello': 'world'
        }
      
      Will end up as
      
        {
           'foo.bar': 'wizz',
           'bar': {
              'foo.bar': 'eek',
              'hello': 'world'
           }
        }
      
      The intent of this function is that it allows a set of QemuOpts
      to be turned into a nested data structure that mirrors the nesting
      used when the same object is defined over QMP.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1475246744-29302-3-git-send-email-berrange@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Parameter recursive dropped along with its tests; whitespace style
      touched up]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      603476c2
  12. 07 6月, 2016 1 次提交
  13. 16 2月, 2016 1 次提交
  14. 12 6月, 2015 1 次提交
  15. 19 5月, 2014 1 次提交
  16. 22 2月, 2014 2 次提交
  17. 22 1月, 2014 2 次提交
  18. 19 12月, 2012 1 次提交
  19. 30 3月, 2012 1 次提交
  20. 13 1月, 2012 1 次提交
  21. 21 8月, 2011 1 次提交
  22. 21 2月, 2011 1 次提交
  23. 02 7月, 2010 2 次提交
  24. 19 5月, 2010 1 次提交
  25. 19 12月, 2009 1 次提交
  26. 12 9月, 2009 1 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  27. 04 9月, 2009 1 次提交