Non-daemon actions indirect through generated code.
authorRichard Jones <rjones@trick.home.annexia.org>
Wed, 9 Sep 2009 11:34:13 +0000 (12:34 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Mon, 14 Sep 2009 10:23:47 +0000 (11:23 +0100)
commit7f2ac369f7747a033f5e84d8c7fb3aa131f25537
treec2498f057e621cb159f0bd2c4813fcb084d9d0f5
parentd5b89d36224b394391af09fba7ed0a7921175610
Non-daemon actions indirect through generated code.

Previously non-daemon actions were called directly by
user code, eg:

/* Non-generated */
int
guestfs_set_verbose (guestfs_h *g, int v)
{
  g->verbose = !!v;
  return 0;
}

This changes these actions so they go indirectly via
some generated code, eg:

/* Generated */
int guestfs_set_verbose (guestfs_h *g,
int verbose)
{
  return guestfs__set_verbose (g, verbose);
}

/* Non-generated */
int
guestfs__set_verbose (guestfs_h *g, int v)
{
  g->verbose = !!v;
  return 0;
}

The aim is to have a place in the generated code where
we can add debug or tracing information for these non-
daemon calls.
.gitignore
src/Makefile.am
src/generator.ml
src/guestfs.c