3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #include "xbt/dynar.h"
13 #include "surf/maxmin.h"
15 typedef struct tmgr_history *tmgr_history_t;
16 typedef struct tmgr_trace *tmgr_trace_t;
17 typedef struct tmgr_trace_event *tmgr_trace_event_t;
19 /* Creation functions */
20 XBT_PUBLIC tmgr_history_t tmgr_history_new(void);
21 XBT_PUBLIC void tmgr_history_free(tmgr_history_t history);
23 XBT_PUBLIC tmgr_trace_t tmgr_trace_new(const char *filename);
24 XBT_PUBLIC tmgr_trace_t tmgr_empty_trace_new(void);
25 XBT_PUBLIC void tmgr_trace_free(tmgr_trace_t trace);
27 XBT_PUBLIC tmgr_trace_event_t tmgr_history_add_trace(tmgr_history_t history,
29 double start_time, int offset,
32 /* Access functions */
33 XBT_PUBLIC double tmgr_history_next_date(tmgr_history_t history);
34 XBT_PUBLIC tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t history,
39 XBT_PUBLIC void tmgr_finalize(void);
41 #endif /* _SURF_TMGR_H */