X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fguestfs.c;h=7f0f8214a89951b701f98c3673a19c10b118d42d;hp=092e405e90b9076fe25fd77b3ce0100622749903;hb=94050e0344685b6916e21581e618ad3e85795008;hpb=b5ff6816face6f8c1700d4f1df752c710620ff95;ds=sidebyside diff --git a/src/guestfs.c b/src/guestfs.c index 092e405..7f0f821 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 *