# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1203986184 28800
# Node ID c089d134bfb70e3ab48d06ea4b7d229be1341646
# Parent 89cff8c40cafbce33b90a55e991721b8302714c2
Add migration types to VSMigrationSettingData.h
These values specify the migration types CIM supports.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 89cff8c40caf -r c089d134bfb7 src/Virt_VSMigrationSettingData.c
--- a/src/Virt_VSMigrationSettingData.c Fri Feb 08 11:21:31 2008 -0800
+++ b/src/Virt_VSMigrationSettingData.c Mon Feb 25 16:36:24 2008 -0800
@@ -38,7 +38,7 @@ static CMPIStatus set_properties(const C
CMPIInstance *inst)
{
CMPIStatus s;
- uint16_t type = 3; /* Use live migration as default */
+ uint16_t type = CIM_MIGRATE_LIVE;
uint16_t priority = 0; /* Use default priority */
CMSetProperty(inst, "MigrationType",
diff -r 89cff8c40caf -r c089d134bfb7 src/Virt_VSMigrationSettingData.h
--- a/src/Virt_VSMigrationSettingData.h Fri Feb 08 11:21:31 2008 -0800
+++ b/src/Virt_VSMigrationSettingData.h Mon Feb 25 16:36:24 2008 -0800
@@ -19,6 +19,12 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+enum {CIM_MIGRATE_OTHER = 1,
+ CIM_MIGRATE_LIVE = 2,
+ CIM_MIGRATE_RESUME = 3,
+ CIM_MIGRATE_RESTART = 4,
+} migration_type;
+
CMPIStatus get_migration_sd(const CMPIObjectPath *ref,
CMPIInstance **_inst,
const CMPIBroker *broker,