mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
New APIs: set-program, get-program.
These set or get the program name in the handle. Most programs will never need to call this, since we set this, if possible, using the glibc 'program_invocation_short_name(3)' feature.
This commit is contained in:
@@ -256,6 +256,7 @@ main (int argc, char *argv[])
|
||||
printf ("guestfs_get_network: %d\n", guestfs_get_network (g));
|
||||
printf ("guestfs_get_path: %s\n", guestfs_get_path (g) ? : "(null)");
|
||||
printf ("guestfs_get_pgroup: %d\n", guestfs_get_pgroup (g));
|
||||
printf ("guestfs_get_program: %s\n", guestfs_get_program (g));
|
||||
printf ("guestfs_get_qemu: %s\n", guestfs_get_qemu (g));
|
||||
printf ("guestfs_get_recovery_proc: %d\n", guestfs_get_recovery_proc (g));
|
||||
printf ("guestfs_get_selinux: %d\n", guestfs_get_selinux (g));
|
||||
|
||||
Reference in New Issue
Block a user