summaryrefslogtreecommitdiffstats
path: root/src/guestfs.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-08 20:26:35 +0100
committerRichard Jones <rjones@redhat.com>2009-04-08 20:26:35 +0100
commit94050e0344685b6916e21581e618ad3e85795008 (patch)
treeaa86daf806029bded8a9e88b18be34633d403664 /src/guestfs.c
parentb5ff6816face6f8c1700d4f1df752c710620ff95 (diff)
downloadlibguestfs-94050e0344685b6916e21581e618ad3e85795008.tar.gz
libguestfs-94050e0344685b6916e21581e618ad3e85795008.tar.xz
libguestfs-94050e0344685b6916e21581e618ad3e85795008.zip
Many non-daemon functions are now auto-generated.
Diffstat (limited to 'src/guestfs.c')
-rw-r--r--src/guestfs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/guestfs.c b/src/guestfs.c
index 092e405e..7f0f8214 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -387,10 +387,11 @@ guestfs_get_error_handler (guestfs_h *g, void **data_rtn)
return g->error_cb;
}
-void
+int
guestfs_set_verbose (guestfs_h *g, int v)
{
- g->verbose = v;
+ g->verbose = !!v;
+ return 0;
}
int
@@ -399,10 +400,11 @@ guestfs_get_verbose (guestfs_h *g)
return g->verbose;
}
-void
+int
guestfs_set_autosync (guestfs_h *g, int a)
{
- g->autosync = a;
+ g->autosync = !!a;
+ return 0;
}
int
@@ -411,13 +413,14 @@ guestfs_get_autosync (guestfs_h *g)
return g->autosync;
}
-void
+int
guestfs_set_path (guestfs_h *g, const char *path)
{
if (path == NULL)
g->path = GUESTFS_DEFAULT_PATH;
else
g->path = path;
+ return 0;
}
const char *