# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196711755 28800
# Node ID f1cece43c3fd0f0646729ab378bfdbcc303ecbf9
# Parent 316176ff9b6325e920a8484d09793c16026d1ce7
Add ElementCapabilities support for VirtualSystemMigrationCapabilities
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 316176ff9b63 -r f1cece43c3fd src/Makefile.am
--- a/src/Makefile.am Mon Dec 03 11:55:44 2007 -0800
+++ b/src/Makefile.am Mon Dec 03 11:55:55 2007 -0800
@@ -88,12 +88,13 @@ libVirt_ElementConformsToProfile_la_LIBA
libVirt_EnabledLogicalElementCapabilities_la_SOURCES =
Virt_EnabledLogicalElementCapabilities.c
-libVirt_ElementCapabilities_la_DEPENDENCIES =
libVirt_VirtualSystemManagementCapabilities.la
libVirt_EnabledLogicalElementCapabilities.la libVirt_ComputerSystem.la
libVirt_HostSystem.la
+libVirt_ElementCapabilities_la_DEPENDENCIES =
libVirt_VirtualSystemManagementCapabilities.la
libVirt_EnabledLogicalElementCapabilities.la libVirt_ComputerSystem.la
libVirt_HostSystem.la libVirt_VSMigrationCapabilities.la
libVirt_ElementCapabilities_la_SOURCES = Virt_ElementCapabilities.c
libVirt_ElementCapabilities_la_LIBADD = -lVirt_VirtualSystemManagementCapabilities \
-lVirt_EnabledLogicalElementCapabilities \
-lVirt_ComputerSystem \
- -lVirt_HostSystem
+ -lVirt_HostSystem \
+ -lVirt_VSMigrationCapabilities
libVirt_AllocationCapabilities_la_DEPENDENCIES = libVirt_RASD.la libVirt_DevicePool.la
libVirt_AllocationCapabilities_la_SOURCES = Virt_AllocationCapabilities.c
diff -r 316176ff9b63 -r f1cece43c3fd src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Mon Dec 03 11:55:44 2007 -0800
+++ b/src/Virt_ElementCapabilities.c Mon Dec 03 11:55:55 2007 -0800
@@ -37,6 +37,7 @@
#include "Virt_EnabledLogicalElementCapabilities.h"
#include "Virt_ComputerSystem.h"
#include "Virt_HostSystem.h"
+#include "Virt_VSMigrationCapabilities.h"
/* Associate an XXX_Capabilities to the proper XXX_ManagedElement.
*
@@ -70,6 +71,11 @@ static CMPIStatus sys_to_cap(const CMPIO
s = get_vsm_cap(_BROKER, ref, &inst);
if (s.rc == CMPI_RC_OK)
inst_list_add(list, inst);
+
+ s = get_migration_caps(ref, &inst, _BROKER);
+ if (s.rc == CMPI_RC_OK)
+ inst_list_add(list, inst);
+
out:
return s;
}
@@ -249,8 +255,10 @@ char* host_system[] = {
char* virtual_system_management_capabilities[] = {
"Xen_VirtualSystemManagementCapabilities",
+ "Xen_VirtualSystemMigrationCapabilities",
"KVM_VirtualSystemManagementCapabilities",
- NULL
+ "KVM_VirtualSystemMigrationCapabilities",
+ NULL,
};
struct std_assoc system_to_vsm_cap = {