2 ms·
The guestfs API and bindings in all the languages are generated -- by a large OCaml program. https://github.com/libguestfs/libguestfs/tree/master/generator htt
by rwmj 13y ago
The guestfs API and bindings in all the languages are generated -- by a large OCaml program.
https://github.com/libguestfs/libguestfs/tree/master/generator https://github.com/libguestfs/libguestfs/tree/master/generat...
For an API that has 400 or so calls accessible through a dozen different programming languages, this makes sense. The bindings in each language are never out of date or wrong (except of course they can have a systematic bug, but those are much easier to fix).
This also makes it very easy to generate alternate "views" of the same API, like OCaml module vs OO views.