extern char *guestfs_safe_strdup (guestfs_h *g, const char *str);
extern char *guestfs_safe_strndup (guestfs_h *g, const char *str, size_t n);
extern void *guestfs_safe_memdup (guestfs_h *g, void *ptr, size_t size);
+extern void guestfs___print_timestamped_message (guestfs_h *g, const char *fs, ...);
extern const char *guestfs___tmpdir (void);
extern int guestfs___set_busy (guestfs_h *g);
extern int guestfs___end_busy (guestfs_h *g);
return 1;
}
-static void print_timestamped_message (guestfs_h *g, const char *fs, ...);
static int build_supermin_appliance (guestfs_h *g, const char *path, char **kernel, char **initrd);
static int is_openable (guestfs_h *g, const char *path, int flags);
static void print_cmdline (guestfs_h *g);
}
if (g->verbose)
- print_timestamped_message (g, "begin testing qemu features");
+ guestfs___print_timestamped_message (g, "begin testing qemu features");
/* Get qemu help text and version. */
if (qemu_supports (g, NULL) == -1)
}
if (g->verbose)
- print_timestamped_message (g, "finished testing qemu features");
+ guestfs___print_timestamped_message (g, "finished testing qemu features");
r = fork ();
if (r == -1) {
}
if (g->verbose)
- print_timestamped_message (g, "appliance is up");
+ guestfs___print_timestamped_message (g, "appliance is up");
/* This is possible in some really strange situations, such as
* guestfsd starts up OK but then qemu immediately exits. Check for
int r, len;
if (g->verbose)
- print_timestamped_message (g, "begin building supermin appliance");
+ guestfs___print_timestamped_message (g, "begin building supermin appliance");
len = strlen (g->tmpdir);
*kernel = safe_malloc (g, len + 8);
path,
*kernel, *initrd);
if (g->verbose)
- print_timestamped_message (g, "%s", cmd);
+ guestfs___print_timestamped_message (g, "%s", cmd);
r = system (cmd);
if (r == -1 || WEXITSTATUS(r) != 0) {
}
if (g->verbose)
- print_timestamped_message (g, "finished building supermin appliance");
+ guestfs___print_timestamped_message (g, "finished building supermin appliance");
return 0;
}
return msec;
}
-static void
-print_timestamped_message (guestfs_h *g, const char *fs, ...)
+void
+guestfs___print_timestamped_message (guestfs_h *g, const char *fs, ...)
{
va_list args;
char *msg;