1. 01 Jun, 2018 1 commit
  2. 17 Jan, 2018 1 commit
  3. 19 Dec, 2016 1 commit
  4. 14 Dec, 2016 2 commits
  5. 09 Dec, 2016 4 commits
  6. 06 Dec, 2016 5 commits
  7. 17 Oct, 2016 1 commit
    • James's avatar
      events: Return values should use golang idioms · df610256
      James authored
      A golang lib should use idiomatic return values of error and nil instead
      of int as is common in C. This updates these functions to return as
      expected, except they use GetLastError().
      df610256
  8. 07 Aug, 2016 1 commit
    • Vincent Bernat's avatar
      connection: add RegisterCloseCallback() method · 28f071da
      Vincent Bernat authored
      This enables to register one callback when the connection is closed
      unexpectedly. Only one callback can be registered this way. This is
      easier to handle this way.
      
      It's quite hard to test if a connection is closed since it only works
      for unexpected close (virConnectClose() won't do anything as the
      callback will keep a reference to the connection). Therefore, we rely on
      keepalive feature for that.
      28f071da
  9. 29 Jul, 2016 1 commit
  10. 27 Jul, 2016 1 commit
    • Vincent Bernat's avatar
      test: ensure we don't have any connection leak · e59e9ced
      Vincent Bernat authored
      If ConnectionClose() method doesn't return 0, this means we have either
      an error, either there is still a reference to the connection by another
      object (we don't have virConnectRef()). In all tests, check that return
      code and ensure this is 0. Fix tests that weren't releasing all objects
      correctly.
      e59e9ced
  11. 26 Jul, 2016 1 commit
  12. 22 Jul, 2016 1 commit
    • Vincent Bernat's avatar
      Return the C callbackId for virConnectDomainEventRegisterAny · 77563f73
      Vincent Bernat authored
      The callback ID to return is the one from C, to be used to deregister
      the event. The test is modified to check the error. The initial
      goCallbackId value is also modified to exhibit the error. This can be
      dropped from this commit if it seems too odd.
      77563f73
  13. 13 Apr, 2016 1 commit
  14. 12 Apr, 2016 1 commit