1. 24 Apr, 2018 1 commit
    • Daniel P. Berrangé's avatar
      git: add config file telling git-publish how to send patches · 902deb61
      Daniel P. Berrangé authored
      The "git-publish" tool is a useful git extension for sending patch
      series for code review. It automatically creates versioned tags
      each time code on a branch is sent, so that there is a record of
      each version. It also remembers the cover letter so it does not
      need re-entering each time the series is reposted.
      With this config file present it is now sufficient[1] to run
        $ git publish
      to send all patches in a branch to the list for review, with the
      correct subject prefix added for this non-core libvirt module.
      [1] Assuming your $HOME/.gitconfig has an SMTP server listed
      at least e.g.
              smtpserver = smtp.example.com
      Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
  2. 10 Sep, 2015 2 commits
    • Claudio Bley's avatar
      Fix compilation error when using -source 1.x · e3aa13fe
      Claudio Bley authored
      When using JDK 1.8 with the compiler option `-source 1.6` or `-source
      1.7` or JDK 1.7 with the `-source 1.6` compiler option, compilation
      failed with:
      src/main/java/org/libvirt/event/DomainEvent.java:63: error: incompatible types: inference variable T#1 has incompatible upper bounds Enum<T#2>,T#3
              return this.type.obtain(this.detail);
        where T#1,T#2,T#3 are type-variables:
          T#1 extends Enum<T#1> declared in method <T#1>obtain(int)
          T#2 extends T#3
          T#3 extends Enum<T#3>,DomainEventDetail declared in method <T#3>getDetail()
      Actually, it compiles just fine using a 1.6, 1.7 or 1.8 Java compiler
      when omitting the -source option.
      Remove the `obtain` method altogether and use the `safeAt` method
      directly instead.
    • Claudio Bley's avatar
      Fix compilation error for unreported exceptions · 8ff1c46d
      Claudio Bley authored
      In Java 1.6 source mode, javac reported the error:
      src/main/java/org/libvirt/Library.java:93: unreported exception java.lang.Exception; must be caught or declared to be thrown
      Since the code inside the try block does not throw any checked
      exceptions, we only need to handle unchecked exceptions on the catch
      side, ie. RuntimeExceptions.
  3. 28 Jan, 2015 6 commits
  4. 19 Jan, 2015 1 commit
    • Claudio Bley's avatar
      JNA: add missing flags parameter to wrapped functions · 94b512bd
      Claudio Bley authored
      Some functions of the Libvirt interface were missing a required flags
      parameter as defined by the libvirt C API, namely:
       * virInterfaceCreate
       * virInterfaceDestroy
       * virNodeDeviceGetXMLDesc
      Calling these functions without the flags parameter would result in
      undefined behaviour, at best in an "unsupported flags" error.
  5. 01 Nov, 2014 30 commits