mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
New API: set-backend-settings, get-backend-settings.
Allow settings (an arbitrary list of strings) to be passed to the current backend. This will allow us to tweak how the backend works, eg. by forcing TCG.
This commit is contained in:
@@ -90,6 +90,7 @@ main (int argc, char *argv[])
|
||||
size_t i;
|
||||
struct guestfs_version *vers;
|
||||
char *p;
|
||||
char **pp;
|
||||
guestfs_h *g;
|
||||
char *qemu = NULL;
|
||||
int qemu_use_wrapper;
|
||||
@@ -230,6 +231,16 @@ main (int argc, char *argv[])
|
||||
p = guestfs_get_backend (g);
|
||||
printf ("guestfs_get_backend: %s\n", p ? : "(null)");
|
||||
free (p);
|
||||
pp = guestfs_get_backend_settings (g);
|
||||
printf ("guestfs_get_backend_settings: [");
|
||||
for (i = 0; pp[i] != NULL; ++i) {
|
||||
if (i > 0)
|
||||
printf (", ");
|
||||
printf ("%s", pp[i]);
|
||||
free (pp[i]);
|
||||
}
|
||||
printf ("]\n");
|
||||
free (pp);
|
||||
printf ("guestfs_get_autosync: %d\n", guestfs_get_autosync (g));
|
||||
p = guestfs_get_cachedir (g);
|
||||
printf ("guestfs_get_cachedir: %s\n", p ? : "(null)");
|
||||
|
||||
Reference in New Issue
Block a user