]> xenbits.xensource.com Git - libvirt.git/commitdiff
sysinfo: expose new API
authorEric Blake <eblake@redhat.com>
Mon, 7 Feb 2011 19:52:29 +0000 (12:52 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 9 Feb 2011 02:21:26 +0000 (19:21 -0700)
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.

include/libvirt/libvirt.h.in
src/libvirt_public.syms

index 7ecbeb6918bd42a345c1d1cc4c6431691f91f479..5dfb752176e613cbc9f45dda0a27898bc6a9e827 100644 (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);
 
 
 /*
index 96084ff95b52fdf149a59ef8335c868d80f81739..1a45be142027cc242bb76877d4865094341ece9c 100644 (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 ....