From 353b760953cd5059dd25bce3b9cc7258a133fbe3 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 7 Feb 2011 12:52:29 -0700 Subject: [PATCH] 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 , and in a format that can be pasted into the guest and edited when using . * include/libvirt/libvirt.h.in (virConnectGetSysinfo): Declare. * src/libvirt_public.syms: Export new symbol. --- include/libvirt/libvirt.h.in | 4 +++- src/libvirt_public.syms | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 7ecbeb6918..5dfb752176 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -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); /* diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms index 96084ff95b..1a45be1420 100644 --- a/src/libvirt_public.syms +++ b/src/libvirt_public.syms @@ -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 .... -- GitLab