diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-07-10 09:34:23 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-20 21:54:34 +0200 |
commit | a91067fa0d92e2716db32e0db07b3e4f3623fa90 (patch) | |
tree | 1506c2a7621db0733e21386f76e30bb559cb9649 /include | |
parent | Report 'errno' in int1 field of virErrorPtr (diff) | |
download | libvirt-a91067fa0d92e2716db32e0db07b3e4f3623fa90.tar.gz libvirt-a91067fa0d92e2716db32e0db07b3e4f3623fa90.tar.bz2 libvirt-a91067fa0d92e2716db32e0db07b3e4f3623fa90.zip |
Add virDomainGetHostname
to query a guests's hostname. Containers like LXC and OpenVZ allow to
set a hostname different from the hosts name and QEMU's guest agent
could provide similar functionality.
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/libvirt.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index e34438cda..fcef461a1 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -1540,6 +1540,8 @@ int virDomainSetMemoryFlags (virDomainPtr domain, int virDomainGetMaxVcpus (virDomainPtr domain); int virDomainGetSecurityLabel (virDomainPtr domain, virSecurityLabelPtr seclabel); +char * virDomainGetHostname (virDomainPtr domain, + unsigned int flags); typedef enum { VIR_DOMAIN_METADATA_DESCRIPTION = 0, /* Operate on <description> */ |