#define TRACE_ERROR_START 500
XBT_PUBLIC(int) TRACE_start_with_mask (const char *filename, int mask);
+XBT_PUBLIC(int) TRACE_start (const char *filename);
XBT_PUBLIC(int) TRACE_end (void);
XBT_PUBLIC(int) TRACE_category (const char *category);
XBT_PUBLIC(void) TRACE_define_type (const char *type, const char *parent_type, int final);
XBT_PUBLIC(void) __TRACE_host_variable (double time, const char *variable, double value, const char *what);
XBT_PUBLIC(void) __TRACE_link_variable (double time, const char *src, const char *dst, const char *variable, double value, const char *what);
-#define TRACE_start(filename) TRACE_start_with_mask(filename,TRACE_PLATFORM)
-
#define TRACE_host_variable_declare(var) \
__TRACE_host_variable(0,var,0,"declare");
#ifdef HAVE_TRACING
-XBT_LOG_NEW_DEFAULT_CATEGORY(tracing,"Tracing Surf");
+XBT_LOG_NEW_DEFAULT_CATEGORY(tracing,"Tracing Interface");
extern xbt_dict_t created_containers; /* declared in general.c */
static xbt_dict_t defined_types;
int trace_mask;
-/**
+/** \ingroup tracing
+ * \brief Simple initialization of tracing.
+ *
+ * \param filename of the file that will contain the traces
+ * \return 0 if everything is ok
+ */
+int TRACE_start (const char *filename)
+{
+ return TRACE_start_with_mask (filename, TRACE_PLATFORM);
+}
+
+/** \ingroup tracing
* \brief Initialization of tracing.
*
* Function to be called at first when tracing a simulation