[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Storage Pool and Volumes are converted



Daniel Veillard wrote:
On Sat, Jul 25, 2009 at 08:02:13AM -0400, Bryan Kearney wrote:
---
 src/org/libvirt/jna/StoragePoolPointer.java |    7 +++++++
 src/org/libvirt/jna/StorageVolPointer.java  |    7 +++++++
 src/org/libvirt/jna/virStoragePoolInfo.java |   11 +++++++++++
 src/org/libvirt/jna/virStorageVolInfo.java  |   11 +++++++++++
 4 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 src/org/libvirt/jna/StoragePoolPointer.java
 create mode 100644 src/org/libvirt/jna/StorageVolPointer.java
 create mode 100644 src/org/libvirt/jna/virStoragePoolInfo.java
 create mode 100644 src/org/libvirt/jna/virStorageVolInfo.java

+++ b/src/org/libvirt/jna/virStoragePoolInfo.java
@@ -0,0 +1,11 @@
+package org.libvirt.jna;
+
+import com.sun.jna.Structure;
+
+public class virStoragePoolInfo extends Structure
+{
+    public int state ;
+    public long capacity ;
+    public long allocation ;
+    public long available ;

  Same long long -> long question, also the original is unsigned, maybe
it should be kept that way

These were long long in the C code, which maps to java long. I do not have an answer for the unsigned part. That is a place where java is a weak.

-- bk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]