Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
OK, now clean structures are used for my objects. Forget about my uggly
[simgrid.git] / src / include / surf / trace_mgr.h
index 91aa8d9..4a3be6b 100644 (file)
@@ -12,6 +12,7 @@
 
 typedef struct tmgr_history *tmgr_history_t;
 typedef struct tmgr_trace *tmgr_trace_t;
+typedef struct tmgr_trace_event *tmgr_trace_event_t;
 
 /* Creation functions */
 tmgr_history_t tmgr_history_new(void);
@@ -20,15 +21,15 @@ void tmgr_history_free(tmgr_history_t history);
 tmgr_trace_t tmgr_trace_new(const char *filename);
 void tmgr_trace_free(tmgr_trace_t trace);
 
-void tmgr_history_add_trace(tmgr_history_t history, tmgr_trace_t trace,
-                           xbt_heap_float_t start_time, int offset,
-                           void *resource);
+tmgr_trace_event_t tmgr_history_add_trace(tmgr_history_t history, tmgr_trace_t trace,
+                                         xbt_heap_float_t start_time, int offset,
+                                         void *resource);
 
 /* Access functions */
 xbt_heap_float_t tmgr_history_next_date(tmgr_history_t history);
-int tmgr_history_get_next_event_leq(tmgr_history_t history,
-                                   xbt_heap_float_t date,
-                                   xbt_maxmin_float_t * value,
-                                   void **resource);
+tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t history,
+                                                xbt_heap_float_t date,
+                                                xbt_maxmin_float_t * value,
+                                                void **resource);
 
 #endif                         /* _SURF_TMGR_H */