summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-16 12:57:36 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-16 13:27:01 +0000
commitfab75c0337d7897d10ea5e95e47ac05eab81ace9 (patch)
treea1fee811daabdcbc98489dcbb47c4b6265a1d12a /src/guestfs-internal.h
parent35afe0cb33c986bf595585a716ff259cf3415a1f (diff)
downloadlibguestfs-fab75c0337d7897d10ea5e95e47ac05eab81ace9.tar.gz
libguestfs-fab75c0337d7897d10ea5e95e47ac05eab81ace9.tar.xz
libguestfs-fab75c0337d7897d10ea5e95e47ac05eab81ace9.zip
New API: inspect-get-hostname to return the hostname of the guest.
This returns the hostname of the guest. Tested on RHEL, Fedora, Debian 5, Ubuntu 10.10, FreeBSD 8, Windows 7.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index abcd4567..e3c5b1f0 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -219,6 +219,7 @@ struct inspect_fs {
int major_version;
int minor_version;
char *arch;
+ char *hostname;
char *windows_systemroot;
struct inspect_fstab_entry *fstab;
size_t nr_fstab;