-/* callback of the plugin variable */
-static void _sg_cfg_cb__plugin(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot load a plugin after the initialization");
-
- if (value.empty())
- return;
-
- if (value == "help") {
- simgrid_plugins().help();
- exit(0);
- }
-
- simgrid_plugins().by_name(value).init();
-}
-
-/* callback of the host/model variable */
-static void _sg_cfg_cb__host_model(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization");
-
- if (value == "help") {
- surf_host_model_description.help();
- exit(0);
- }
-
- /* Make sure that the model exists */
- surf_host_model_description.by_name(value);
-}
-
-/* callback of the cpu/model variable */
-static void _sg_cfg_cb__cpu_model(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization");
-
- if (value == "help") {
- simgrid_cpu_models().help();
- exit(0);
- }
-
- /* Make sure that the model exists */
- simgrid_cpu_models().by_name(value);
-}
-
-/* callback of the cpu/model variable */
-static void _sg_cfg_cb__optimization_mode(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization");
-
- if (value == "help") {
- surf_optimization_mode_description.help();
- exit(0);
- }
-
- /* Make sure that the model exists */
- surf_optimization_mode_description.by_name(value);
-}
-
-static void _sg_cfg_cb__disk_model(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization");
-
- if (value == "help") {
- surf_disk_model_description.help();
- exit(0);
- }
-
- surf_disk_model_description.by_name(value);
-}
-
-/* callback of the network_model variable */
-static void _sg_cfg_cb__network_model(const std::string& value)
-{
- xbt_assert(_sg_cfg_init_status < 2, "Cannot change the model after the initialization");
-
- if (value == "help") {
- simgrid_network_models().help();
- exit(0);
- }
-
- simgrid_network_models().by_name(value); // Simply ensure that it exists
-}
-