On Thu, Feb 13, 2014 at 04:22:44PM +0100, Claudio Bley wrote: > These functions are not (yet) exposed in the public org.libvirt > package but only used internally. > > Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx> > --- > src/main/java/org/libvirt/jna/Libvirt.java | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/src/main/java/org/libvirt/jna/Libvirt.java b/src/main/java/org/libvirt/jna/Libvirt.java > index 67b6053..ae03f18 100644 > --- a/src/main/java/org/libvirt/jna/Libvirt.java > +++ b/src/main/java/org/libvirt/jna/Libvirt.java > @@ -98,6 +98,13 @@ public interface Libvirt extends Library { > void eventCallback(ConnectionPointer virConnectPtr, DomainPointer virDomainPointer, Pointer opaque) ; > } > > + /* > + * Timeout Callback > + */ > + interface VirEventTimeoutCallback extends Callback { > + void tick(int timerID, Pointer opaque); > + } > + > Libvirt INSTANCE = (Libvirt) Native.loadLibrary(Platform.isWindows() ? "virt-0" : "virt", Libvirt.class); > > // Constants we need > @@ -397,4 +404,8 @@ public interface Libvirt extends Library { > int virNWFilterGetUUID(NetworkFilterPointer virNWFilterPtr, byte[] uuidString); > int virNWFilterGetUUIDString(NetworkFilterPointer virNWFilterPtr, byte[] uuidString); > int virNWFilterUndefine(NetworkFilterPointer virNWFilterPtr); > + > + // Event functions > + int virEventAddTimeout(int milliSeconds, VirEventTimeoutCallback cb, Pointer opaque, Pointer ff); > + int virEventRemoveTimeout(int timer); > } ACK, if you also add the virEventUpdateTimeout method Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list