X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/32a3aaa4408a0fa7cc48c2c43ec788f7ea531d59..a38c139dae908a891ed224eb09f8d517f7bdf6b3:/src/include/surf/trace_mgr.h diff --git a/src/include/surf/trace_mgr.h b/src/include/surf/trace_mgr.h index d5952f80d0..394cddca52 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. */ @@ -12,6 +11,7 @@ #include "xbt/dynar.h" #include "surf/maxmin.h" #include "surf/datatypes.h" +#include "simgrid/platf_interface.h" /* Creation functions */ XBT_PUBLIC(tmgr_history_t) tmgr_history_new(void); @@ -22,7 +22,7 @@ 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_INLINE XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); /** * \brief Free a trace event structure * @@ -32,7 +32,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, @@ -40,12 +41,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 */