On Fri, Jan 13, 2012 at 01:18:43PM +0000, Daniel P. Berrange wrote:
The latter is probably better if we consider that with async methods, you might invoke several methods in a row & want to handle progress separately for each on their own.
^ This bit can't be done with the libguestfs API, since it only allows one call at a time per handle.
And second question: event API? error handling in the GObject API (does GObject have any concept of exceptions)?
Events will want to be turned into GObject signals I presume.
Yup, and signals can carry state (like events) so that all seems to fit.
At the C level every API that can fail has a GError ** argument. This gets translated to whatever error mechanism a language has, usually exceptions.
Understood, thanks. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora