1. 06 11月, 2015 1 次提交
  2. 02 11月, 2015 1 次提交
    • E
      input: Convert to new qapi union layout · 568c73a4
      Eric Blake 提交于
      We have two issues with our qapi union layout:
      1) Even though the QMP wire format spells the tag 'type', the
      C code spells it 'kind', requiring some hacks in the generator.
      2) The C struct uses an anonymous union, which places all tag
      values in the same namespace as all non-variant members. This
      leads to spurious collisions if a tag value matches a non-variant
      member's name.
      
      Make the conversion to the new layout for input-related code.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1445898903-12082-20-git-send-email-eblake@redhat.com>
      [Commit message tweaked slightly]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      568c73a4
  3. 23 6月, 2015 1 次提交
  4. 30 4月, 2015 1 次提交
  5. 10 3月, 2015 1 次提交
  6. 02 10月, 2014 1 次提交
  7. 04 6月, 2014 1 次提交
  8. 16 5月, 2014 2 次提交
  9. 12 3月, 2014 1 次提交
  10. 10 3月, 2014 1 次提交
  11. 05 3月, 2014 12 次提交
  12. 03 12月, 2013 1 次提交
  13. 23 8月, 2013 1 次提交
  14. 23 5月, 2013 1 次提交
  15. 25 4月, 2013 2 次提交
  16. 19 4月, 2013 1 次提交
  17. 11 2月, 2013 1 次提交
  18. 19 12月, 2012 5 次提交
  19. 27 9月, 2012 3 次提交
  20. 06 9月, 2012 2 次提交
    • A
      qapi: convert sendkey · e4c8f004
      Amos Kong 提交于
      Convert 'sendkey' to use QAPI.
      
      QAPI passes key's index of mapping table to qmp_send_key(),
      not keycode. So we use help functions to convert key/code to
      index of key_defs, and 'index' will be converted to 'keycode'
      inside qmp_send_key().
      
      For qmp, QAPI would check invalid key and raise error.
      For hmp, invalid key is checked in hmp_send_key().
      
      'send-key' of QMP doesn't support key in hexadecimal format.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      e4c8f004
    • A
      monitor: move key_defs[] table and introduce two help functions · 1048c88f
      Amos Kong 提交于
      This patch added two help functions to convert key/code to index of
      mapping table, those functions will return Q_KEY_CODE_MAX if the
      code/key is invalid.
      
      Patch also moved key_defs[] to input.c, and removed useless KeyDef struct.
      Key's index in QKeyCode enmu is same as keycode's index in new key_defs[].
      Monitor functions were changed to access key_defs[] directly.
      
      key_defs[] is used in do_send_key(), so export key_defs[]. It will be
      changed to static in next patch.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      1048c88f