X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4b6bf43780ca98a105f87986ac4194428cdf2c70..5830b3e635fa9e5a493d8cc9a2006bff50c67d50:/src/include/surf/trace_mgr.h diff --git a/src/include/surf/trace_mgr.h b/src/include/surf/trace_mgr.h index a6420463d7..693e06abf3 100644 --- a/src/include/surf/trace_mgr.h +++ b/src/include/surf/trace_mgr.h @@ -11,31 +11,33 @@ #include "xbt/heap.h" #include "xbt/dynar.h" #include "surf/maxmin.h" - -typedef struct tmgr_history *tmgr_history_t; -typedef struct tmgr_trace *tmgr_trace_t; -typedef struct tmgr_trace_event *tmgr_trace_event_t; +#include "surf/datatypes.h" /* Creation functions */ XBT_PUBLIC(tmgr_history_t) tmgr_history_new(void); XBT_PUBLIC(void) tmgr_history_free(tmgr_history_t history); XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new(const char *filename); +XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_string(const char *id, + const char *input, + double periodicity); XBT_PUBLIC(tmgr_trace_t) tmgr_empty_trace_new(void); XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_add_trace(tmgr_history_t history, - tmgr_trace_t trace, - double start_time, int offset, - void *resource); + tmgr_trace_t trace, + double start_time, + unsigned int offset, + void *model); /* Access functions */ XBT_PUBLIC(double) tmgr_history_next_date(tmgr_history_t history); -XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_get_next_event_leq(tmgr_history_t history, - double date, - double *value, - void **resource); +XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_get_next_event_leq(tmgr_history_t + history, + double date, + double *value, + void **model); XBT_PUBLIC(void) tmgr_finalize(void); -#endif /* _SURF_TMGR_H */ +#endif /* _SURF_TMGR_H */