# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1202774057 28800
# Node ID 41f5de794c5b1d9575eea874e48bd50c978e153e
# Parent f93b5748946ab3486649094ec23e9d7fef5257dc
Update the method param structs to support new optional struct element.
This patch is dependant on the optional argument libcmpiutil patch.
For now, all arguments are required. But future support for optional parameters is
needed.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r f93b5748946a -r 41f5de794c5b src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c Fri Feb 08 14:13:34 2008 -0800
+++ b/src/Virt_ComputerSystem.c Mon Feb 11 15:54:17 2008 -0800
@@ -782,8 +782,8 @@ static struct method_handler RequestStat
static struct method_handler RequestStateChange = {
.name = "RequestStateChange",
.handler = state_change,
- .args = {{"RequestedState", CMPI_uint16},
- {"TimeoutPeriod", CMPI_dateTime},
+ .args = {{"RequestedState", CMPI_uint16, false},
+ {"TimeoutPeriod", CMPI_dateTime, false},
ARG_END
}
};
diff -r f93b5748946a -r 41f5de794c5b src/Virt_VSMigrationService.c
--- a/src/Virt_VSMigrationService.c Fri Feb 08 14:13:34 2008 -0800
+++ b/src/Virt_VSMigrationService.c Mon Feb 11 15:54:17 2008 -0800
@@ -704,8 +704,8 @@ static struct method_handler vsimth = {
static struct method_handler vsimth = {
.name = "CheckVirtualSystemIsMigratableToHost",
.handler = vs_migratable_host,
- .args = {{"ComputerSystem", CMPI_ref},
- {"DestinationHost", CMPI_string},
+ .args = {{"ComputerSystem", CMPI_ref, false},
+ {"DestinationHost", CMPI_string, false},
ARG_END
}
};
@@ -713,8 +713,8 @@ static struct method_handler vsimts = {
static struct method_handler vsimts = {
.name = "CheckVirtualSystemIsMigratableToSystem",
.handler = vs_migratable_system,
- .args = {{"ComputerSystem", CMPI_ref},
- {"DestinationSystem", CMPI_ref},
+ .args = {{"ComputerSystem", CMPI_ref, false},
+ {"DestinationSystem", CMPI_ref, false},
ARG_END
}
};
@@ -722,8 +722,8 @@ static struct method_handler mvsth = {
static struct method_handler mvsth = {
.name = "MigrateVirtualSystemToHost",
.handler = migrate_vs_host,
- .args = {{"ComputerSystem", CMPI_ref},
- {"DestinationHost", CMPI_string},
+ .args = {{"ComputerSystem", CMPI_ref, false},
+ {"DestinationHost", CMPI_string, false},
ARG_END
}
};
@@ -731,8 +731,8 @@ static struct method_handler mvsts = {
static struct method_handler mvsts = {
.name = "MigrateVirtualSystemToSystem",
.handler = migrate_vs_system,
- .args = {{"ComputerSystem", CMPI_ref},
- {"DestinationSystem", CMPI_ref},
+ .args = {{"ComputerSystem", CMPI_ref, false},
+ {"DestinationSystem", CMPI_ref, false},
ARG_END
}
};
diff -r f93b5748946a -r 41f5de794c5b src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Fri Feb 08 14:13:34 2008 -0800
+++ b/src/Virt_VirtualSystemManagementService.c Mon Feb 11 15:54:17 2008 -0800
@@ -1098,9 +1098,9 @@ static struct method_handler DefineSyste
static struct method_handler DefineSystem = {
.name = "DefineSystem",
.handler = define_system,
- .args = {{"SystemSettings", CMPI_instance},
- {"ResourceSettings", CMPI_instanceA},
- {"ReferenceConfiguration", CMPI_string},
+ .args = {{"SystemSettings", CMPI_instance, false},
+ {"ResourceSettings", CMPI_instanceA, false},
+ {"ReferenceConfiguration", CMPI_string, false},
ARG_END
}
};
@@ -1108,7 +1108,7 @@ static struct method_handler DestroySyst
static struct method_handler DestroySystem = {
.name = "DestroySystem",
.handler = destroy_system,
- .args = {{"AffectedSystem", CMPI_ref},
+ .args = {{"AffectedSystem", CMPI_ref, false},
ARG_END
}
};
@@ -1116,8 +1116,8 @@ static struct method_handler AddResource
static struct method_handler AddResourceSettings = {
.name = "AddResourceSettings",
.handler = add_resource_settings,
- .args = {{"AffectedConfiguration", CMPI_ref},
- {"ResourceSettings", CMPI_instanceA},
+ .args = {{"AffectedConfiguration", CMPI_ref, false},
+ {"ResourceSettings", CMPI_instanceA, false},
ARG_END
}
};
@@ -1125,7 +1125,7 @@ static struct method_handler ModifyResou
static struct method_handler ModifyResourceSettings = {
.name = "ModifyResourceSettings",
.handler = mod_resource_settings,
- .args = {{"ResourceSettings", CMPI_instanceA},
+ .args = {{"ResourceSettings", CMPI_instanceA, false},
ARG_END
}
};
@@ -1133,7 +1133,7 @@ static struct method_handler ModifySyste
static struct method_handler ModifySystemSettings = {
.name = "ModifySystemSettings",
.handler = mod_system_settings,
- .args = {{"SystemSettings", CMPI_instance},
+ .args = {{"SystemSettings", CMPI_instance, false},
ARG_END
}
};
@@ -1141,7 +1141,7 @@ static struct method_handler RemoveResou
static struct method_handler RemoveResourceSettings = {
.name = "RemoveResourceSettings",
.handler = rm_resource_settings,
- .args = {{"ResourceSettings", CMPI_refA},
+ .args = {{"ResourceSettings", CMPI_refA, false},
ARG_END
}
};