1 /* Authors: Arnaud Legrand */
3 /* This program is free software; you can redistribute it and/or modify it
4 under the terms of the license (GNU LGPL) which comes with this package. */
10 #include "xbt/dynar.h"
11 #include "surf/maxmin.h"
13 typedef struct tmgr_history *tmgr_history_t;
14 typedef struct tmgr_trace *tmgr_trace_t;
16 /* Creation functions */
17 tmgr_history_t tmgr_history_new(void);
18 void tmgr_history_free(tmgr_history_t history);
20 tmgr_trace_t tmgr_trace_new(const char *filename);
21 void tmgr_trace_free(tmgr_trace_t trace);
23 void tmgr_history_add_trace(tmgr_history_t history, tmgr_trace_t trace,
24 xbt_heap_float_t start_time, int offset,
27 /* Access functions */
28 xbt_heap_float_t tmgr_history_next_date(tmgr_history_t history);
29 int tmgr_history_get_next_event_leq(tmgr_history_t history,
30 xbt_heap_float_t date,
31 xbt_maxmin_float_t * value,
34 #endif /* _SURF_TMGR_H */