X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/976ee462f4626798ebf76ca46d13f53e10e0e28d..62dd6184baa87113d6bd7f536ac31196ad162945:/src/include/surf/trace_mgr.h diff --git a/src/include/surf/trace_mgr.h b/src/include/surf/trace_mgr.h index 8c4a15e97c..d8de2e75db 100644 --- a/src/include/surf/trace_mgr.h +++ b/src/include/surf/trace_mgr.h @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2004, 2005, 2006, 2007, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -20,10 +19,9 @@ 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, - double timestep); + double periodicity); XBT_PUBLIC(tmgr_trace_t) tmgr_empty_trace_new(void); -XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); +XBT_INLINE XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); /** * \brief Free a trace event structure * @@ -33,7 +31,8 @@ XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); */ XBT_PUBLIC(int) tmgr_trace_event_free(tmgr_trace_event_t trace_event); -XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_add_trace(tmgr_history_t history, +XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_add_trace(tmgr_history_t + history, tmgr_trace_t trace, double start_time, unsigned int offset, @@ -41,12 +40,10 @@ XBT_PUBLIC(tmgr_trace_event_t) tmgr_history_add_trace(tmgr_history_t history, /* 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 **model); +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 */