Open robhoes opened 9 years ago
Yep, completely agree. I've spoken with Dave about this and it would be good to do when someone has time. The second option looked to be the simplest :)
I think it's valuable to get a bit of real world experience first, to find out how the bindings should look. It's good to have answers to questions like:
Actually thinking of connections, I recommend always opening 2 connections: one for async commands and the other for task events. I'd like to change the OCaml bindings so that even a sync call like vm.start gets converted into an async one. This avoids opening too many connections when under load. In the ocaml case I'm hoping to hide the expired sessions errors too.
Cheers, Dave
On Monday, April 13, 2015, Rob Dobson notifications@github.com wrote:
Yep, completely agree. I've spoken with Dave about this and it would be good to do when someone has time. The second option looked to be the simplest :)
— Reply to this email directly or view it on GitHub https://github.com/xenserver/go-xenserver-client/issues/4#issuecomment-92426285 .
Dave Scott
Rather than adding each API call by hand, it may be easier to automatically generate the bindings from the IDL? This is how all the other bindings are done.
There are (at least) two ways of doing this: