[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 03/14] Public API



Signed-off-by: Jiri Denemark <jdenemar redhat com>
---
 include/libvirt/libvirt.h.in |   15 +++++++++++++++
 src/libvirt_public.syms      |    6 ++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 6c3aded..ec7f475 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -1676,6 +1676,21 @@ int virInterfaceIsActive(virInterfacePtr iface);
 int virConnectIsEncrypted(virConnectPtr conn);
 int virConnectIsSecure(virConnectPtr conn);
 
+/*
+ * CPU specification API
+ */
+
+typedef enum {
+    VIR_CPU_COMPARE_ERROR           = -1,
+    VIR_CPU_COMPARE_INCOMPATIBLE    = 0,
+    VIR_CPU_COMPARE_IDENTICAL       = 1,
+    VIR_CPU_COMPARE_SUPERSET        = 2
+} virCPUCompareResult;
+
+int virConnectCompareCPU(virConnectPtr conn,
+                         const char *xmlDesc);
+
+char *virConnectGetHostCPU(virConnectPtr conn);
 
 
 #ifdef __cplusplus
diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
index b4f57e7..2193151 100644
--- a/src/libvirt_public.syms
+++ b/src/libvirt_public.syms
@@ -343,4 +343,10 @@ LIBVIRT_0.7.3 {
 	virInterfaceIsActive;
 } LIBVIRT_0.7.2;
 
+LIBVIRT_0.7.5 {
+    global:
+        virConnectCompareCPU;
+        virConnectGetHostCPU;
+} LIBVIRT_0.7.3;
+
 # .... define new API here using predicted next version number ....
-- 
1.6.5.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]