Re: [Libvir] Documentation errors and shortcomings

2007-09-10 Thread Daniel Veillard
On Fri, Sep 07, 2007 at 06:52:21PM +0200, Tóth István wrote: Hello! I am currently working on java bindings for libvirt, and in the process Interesting, so you're using JNI direct access to the C library, right ? I looked at this a few weeks ago, but it was looking like accessing using the

Re: [Libvir] Documentation errors and shortcomings

2007-09-10 Thread Richard W.M. Jones
Tóth István wrote: I believe that the fields of these structs ARE meant to be read by the applications linking the library, and are not really meant to be opaque. (or if they are, they should have some functions/macros that you can access their contents with) Yes, you should access the fields

Re: [Libvir] Documentation errors and shortcomings

2007-09-10 Thread Tóth István
Thanks for the replays If an individual stats field isn't supported by the hypervisor, it will be returned as ((long long) -1) [for various reasons we're using long long here, but really we mean 64 bit signed int]. Thats very useful info, I spent quite a lot of time messing with BigIntegers,

Re: [Libvir] Documentation errors and shortcomings

2007-09-10 Thread Richard W.M. Jones
Tóth István wrote: Thanks for the replays If an individual stats field isn't supported by the hypervisor, it will be returned as ((long long) -1) [for various reasons we're using long long here, but really we mean 64 bit signed int]. Thats very useful info, I spent quite a lot of time messing

[Libvir] Documentation errors and shortcomings

2007-09-07 Thread Tóth István
Hello! I am currently working on java bindings for libvirt, and in the process I have found a few bugs with the documentation, and also what I believe to be a design problem in the API. 1. The parameterized C macros do not have their arguments listed either on libvirt.org, or in the docs folder

[Libvir] Documentation errors and shortcomings

2007-09-07 Thread Toth Istvan
Hello! I am currently working on java bindings for libvirt, and in the process I have found a few bugs with the documentation, and also what I believe to be a design problem in the API. 1. The parameterized C macros do not have their arguments listed either on libvirt.org, or in the docs

Re: [Libvir] Documentation errors and shortcomings

2007-09-07 Thread Daniel P. Berrange
On Fri, Sep 07, 2007 at 06:52:21PM +0200, T?th Istv?n wrote: Hello! I am currently working on java bindings for libvirt, and in the process I have found a few bugs with the documentation, and also what I believe to be a design problem in the API. 1. The parameterized C macros do not have