inspect_get_hostname
Description:
get hostname of the operating system
This function returns the hostname of the operating system as found by inspection of the guest’s configuration files.
If the hostname could not be determined, then the string unknown
is returned.
Please read "INSPECTION" in guestfs(3) for more details.
Parameters:
this |
A GuestfsSession object |
Returns:
the returned string, or NULL on error |