Re: [libvirt] [libvirt-java] [PATCH] Update pom to include Java source level

2014-03-26 Thread Chris Ellis
On Wed, Mar 26, 2014 at 7:52 AM, Claudio Bley cb...@av-test.de wrote: At Wed, 26 Mar 2014 03:29:34 +, Chris Ellis wrote: Update the pom to set the Java source level. This enables Eclipse to correctly configure itself. So, you let ant generate the pom.xml and use that with Eclipse

Re: [libvirt] [libvirt-java] [PATCH] Set Java source level in pom

2014-03-26 Thread Chris Ellis
On Wed, Mar 26, 2014 at 4:32 AM, Eric Blake ebl...@redhat.com wrote: On 03/25/2014 10:19 PM, Eric Blake wrote: On 03/25/2014 09:29 PM, Chris Ellis wrote: Hi Simple patch to set the Java source level within the pom, this makes it easier to import the project into Eclipse. I've also

Re: [libvirt] [PATCH 2/2] Ensure JNA callbacks cannot get GCed

2014-03-26 Thread Chris Ellis
On Wed, Mar 26, 2014 at 7:24 AM, Claudio Bley cb...@av-test.de wrote: At Wed, 26 Mar 2014 02:43:49 +, Chris Ellis wrote: Currently nothing prevents the JNA callback objects used when registering for domain events from being garbage collected. JNA requires that callback objects

[libvirt] [libvirt-java] [PATCH 0/2] Ensure JNA callbacks cannot be GCed

2014-03-25 Thread Chris Ellis
. The JNA documentation states that a reference to the Callback object must be held whilst it is in use by the C layer. This patch updates the map of event listeners to also hold a reference to the callback object. Regards, Chris Chris Ellis (2): Add close listener types Ensure JNA

[libvirt] [PATCH 2/2] Ensure JNA callbacks cannot get GCed

2014-03-25 Thread Chris Ellis
Currently nothing prevents the JNA callback objects used when registering for domain events from being garbage collected. JNA requires that callback objects are not GCed whilst they are in use by C code. To solve this we hold a reference to the callback alongside the callback id. This ensures

[libvirt] [PATCH 1/2] Add close listener types

2014-03-25 Thread Chris Ellis
--- src/main/java/org/libvirt/event/ConnectionCloseListener.java | 9 + src/main/java/org/libvirt/event/ConnectionCloseReason.java | 8 2 files changed, 17 insertions(+) create mode 100644 src/main/java/org/libvirt/event/ConnectionCloseListener.java create mode 100644

[libvirt] [libvirt-java] [PATCH] Set Java source level in pom

2014-03-25 Thread Chris Ellis
use the javadocs and source. This should make life easier for users of libvirt-java. Regards, Chris Chris Ellis (1): Update pom to include Java source level .gitignore | 1 + pom.xml.in | 41 + 2 files changed, 42 insertions(+) -- 1.8.4.5 -- libvir

[libvirt] [libvirt-java] [PATCH] Update pom to include Java source level

2014-03-25 Thread Chris Ellis
Update the pom to set the Java source level. This enables Eclipse to correctly configure itself. Also include plugins to publish the source and javadocs vai Maven. Update .gitignore to exclude a local pom. --- .gitignore | 1 + pom.xml.in | 41 + 2

Re: [libvirt] Libvirt Java Bindings - adding domain event support - pull request

2014-03-03 Thread Chris Ellis
Hi Claudio On Mon, Mar 3, 2014 at 3:00 PM, Claudio Bley cb...@av-test.de wrote: At Thu, 27 Feb 2014 03:47:31 +, Chris Ellis wrote: Hi all I'm new to this list, I've been making use of the Libvirt Java bindings recently. I wanted to make use of domain events yesterday so my

[libvirt] Libvirt Java Bindings - adding domain event support - pull request

2014-02-26 Thread Chris Ellis
, Chris Ellis -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list