Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv surf_timer.c surf_model_timer.c
[simgrid.git] / src / surf / surf_model_timer.c
similarity index 94%
rename from src/surf/surf_timer.c
rename to src/surf/surf_model_timer.c
index a6e3852..5a3a740 100644 (file)
@@ -6,11 +6,20 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/ex.h"
-#include "surf_timer_private.h"
+#include "surf_private.h"
+#include "xbt/dict.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_timer, surf,
                                 "Logging specific to SURF (timer)");
 
+typedef struct command {
+  s_surf_resource_t generic_resource; /* Must remain first, since we add this to a trace */
+  void *function;
+  void *args;
+  s_xbt_swag_hookup_t command_set_hookup;
+} s_command_t, *command_t;
+
+
 surf_model_t surf_timer_model = NULL;
 static tmgr_trace_t empty_trace = NULL;
 static xbt_swag_t command_pending = NULL;