Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
First steps for making a tutorial on How to create a new API in Simgrid
[simgrid.git] / src / simix / smx_smurf.c
index 0a8fbca..aed0958 100644 (file)
@@ -563,6 +563,13 @@ void SIMIX_simcall_pre(smx_simcall_t simcall, int value)
           SIMIX_host_get_name(SIMIX_process_get_host(simcall->issuer))
           );
       break;
+
+    /* ****************************************************************************************** */
+    /* TUTORIAL: New API                                                                        */
+    /* ****************************************************************************************** */
+    case SIMCALL_NEW_API_INIT:
+      SIMIX_pre_new_api_fct(simcall);
+      break;
   }
 }
 
@@ -590,5 +597,12 @@ void SIMIX_simcall_post(smx_action_t action)
     case SIMIX_ACTION_IO:
       SIMIX_post_io(action);
       break;
+
+    /* ****************************************************************************************** */
+    /* TUTORIAL: New API                                                                        */
+    /* ****************************************************************************************** */
+    case SIMIX_ACTION_NEW_API:
+      SIMIX_post_new_model(action);
+      break;
   }
 }