]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: mention hostname subtlety
authorEric Blake <eblake@redhat.com>
Thu, 12 Sep 2013 19:19:23 +0000 (13:19 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 13 Sep 2013 13:59:34 +0000 (07:59 -0600)
An off-list bug report mentioned some confusion where the public
documentation of libvirt.c:virConnectGetHostname did not match
the private documentation of util/virutil.c:virGetHostname.

* src/libvirt.c (virConnectGetHostname): Tweak docs.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/libvirt.c

index 20a2d4c005cfeccc3f062cc8b9c725f6bd5694a6..a6fcab0c2638bd554dd899e91ba2c0d5c243c95a 100644 (file)
@@ -1701,9 +1701,10 @@ error:
  * virConnectGetHostname:
  * @conn: pointer to a hypervisor connection
  *
- * This returns the system hostname on which the hypervisor is
- * running (the result of the gethostname system call).  If
- * we are connected to a remote system, then this returns the
+ * This returns a system hostname on which the hypervisor is
+ * running (based on the result of the gethostname system call, but
+ * possibly expanded to a fully-qualified domain name via getaddrinfo).
+ * If we are connected to a remote system, then this returns the
  * hostname of the remote system.
  *
  * Returns the hostname which must be freed by the caller, or