1. 24 1月, 2017 36 次提交
  2. 23 1月, 2017 4 次提交
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-2017-01-23-2' into staging · 3879284d
      Peter Maydell 提交于
      Merge io/ 2017-01-23
      
      # gpg: Signature made Mon 23 Jan 2017 15:56:14 GMT
      # gpg:                using RSA key 0xBE86EBB415104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
      # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF
      
      * remotes/berrange/tags/pull-qio-2017-01-23-2:
        io: introduce a DNS resolver API
        io: remove Error parameter from QIOTask thread worker
        io: change the QIOTask callback signature
        io: add ability to associate an error with a task
        io: add ability to associate an opaque "result" with with a task
        io: fix typo in docs for QIOTask
        io: stop incrementing reference in qio_task_get_source
        sockets: add ability to disable DNS resolution for InetSocketAddress
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3879284d
    • D
      io: introduce a DNS resolver API · c1b412f1
      Daniel P. Berrange 提交于
      Currently DNS resolution is done automatically as part
      of the creation of a QIOChannelSocket object instance.
      This works ok for network clients where you just end
      up a single network socket, but for servers, the results
      of DNS resolution may require creation of multiple
      sockets.
      
      Introducing a DNS resolver API allows DNS resolution
      to be separated from the socket object creation. This
      will make it practical to create multiple QIOChannelSocket
      instances for servers.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      c1b412f1
    • D
      io: remove Error parameter from QIOTask thread worker · 59de517d
      Daniel P. Berrange 提交于
      Now that task objects have a directly associated error,
      there's no need for an an Error **errp parameter to
      the QIOTask thread worker function. It already has a
      QIOTask object, so can directly set the error on it.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      59de517d
    • D
      io: change the QIOTask callback signature · 60e705c5
      Daniel P. Berrange 提交于
      Currently the QIOTaskFunc signature takes an Object * for
      the source, and an Error * for any error. We also need to
      be able to provide a result pointer. Rather than continue
      to add parameters to QIOTaskFunc, remove the existing
      ones and simply pass the QIOTask object instead. This
      has methods to access all the other data items required
      in the callback impl.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      60e705c5