sysinfo: expose new API

The new virConnectGetSysinfo() API allows one to get the system
information associated to a connection host, providing the same
data as a guest that uses <os><smbios mode='host'/></os>, and in
a format that can be pasted into the guest and edited when using
<os><smbios mode='sysinfo'/></os>.

* include/libvirt/libvirt.h.in (virConnectGetSysinfo): Declare.
* src/libvirt_public.syms: Export new symbol.
This commit is contained in:
Eric Blake 2011-02-07 12:52:29 -07:00
parent cace96080e
commit 353b760953
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@
* Description: Provides the interfaces of the libvirt library to handle
* virtualized domains
*
* Copy: Copyright (C) 2005,2006,2010 Red Hat, Inc.
* Copy: Copyright (C) 2005-2006, 2010-2011 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
@ -575,6 +575,8 @@ int virConnectGetLibVersion (virConnectPtr conn,
unsigned long *libVer);
char * virConnectGetHostname (virConnectPtr conn);
char * virConnectGetURI (virConnectPtr conn);
char * virConnectGetSysinfo (virConnectPtr conn,
unsigned int flags);
/*

View File

@ -419,4 +419,9 @@ LIBVIRT_0.8.6 {
virDomainIsUpdated;
} LIBVIRT_0.8.5;
LIBVIRT_0.8.8 {
global:
virConnectGetSysinfo;
} LIBVIRT_0.8.6;
# .... define new API here using predicted next version number ....