SIMIX_function_register_process_cleanup(MSG_process_cleanup_from_SIMIX);
sg_platf_postparse_add_cb(MSG_post_create_environment);
- surf_host_created_callback(MSG_host_create_);
+ surf_on_host_created(MSG_host_create_);
}
if(MC_is_active()){
/* register a function to be called by SURF after the environment creation */
sg_platf_init();
sg_platf_postparse_add_cb(SIMIX_post_create_environment);
- surf_host_created_callback(SIMIX_host_create);
- surf_storage_created_callback(SIMIX_storage_create_);
+ surf_on_host_created(SIMIX_host_create);
+ surf_on_storage_created(SIMIX_storage_create_);
}
if (!simix_timers) {
#include "src/surf/surf_interface.hpp"
#include "src/surf/host_interface.hpp"
-void surf_host_created_callback(void (*callback)(sg_host_t))
+void surf_on_host_created(void (*callback)(sg_host_t))
{
hostCreatedCallbacks.connect([callback](Host* host) {
const char* id = host->getName();
});
}
-void surf_storage_created_callback(void (*callback)(sg_storage_t))
+void surf_on_storage_created(void (*callback)(sg_storage_t))
{
storageCreatedCallbacks.connect([callback](Storage* storage) {
const char* id = storage->getName();
SG_BEGIN_DECL();
-XBT_PRIVATE void surf_host_created_callback(void (*callback)(sg_host_t));
-XBT_PRIVATE void surf_storage_created_callback(void (*callback)(sg_storage_t));
+XBT_PRIVATE void surf_on_host_created(void (*callback)(sg_host_t));
+XBT_PRIVATE void surf_on_storage_created(void (*callback)(sg_storage_t));
SG_END_DECL();