mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
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:
parent
cace96080e
commit
353b760953
@ -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);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -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 ....
|
||||
|
Loading…
Reference in New Issue
Block a user