Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not throw an exception if category is already created (use INFO instead, with...
[simgrid.git] / include / instr / instr.h
index 17715d2..d1a8f5a 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef INSTR_H_
 #define INSTR_H_
 
-#include "instr/config.h"
+#include "instr/tracing_config.h"
 
 #ifdef HAVE_TRACING
 
 #define TRACE_ERROR_CATEGORY_ALREADY_DEFINED 301
 #define TRACE_ERROR_MASK 400
 #define TRACE_ERROR_FILE_OPEN 401
+#define TRACE_ERROR_START 500
 
 XBT_PUBLIC(int) TRACE_start_with_mask (const char *filename, int mask);
 XBT_PUBLIC(int) TRACE_end (void);
-XBT_PUBLIC(void) TRACE_category (const char *category);
+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_create_category (const char *category, const char *type, const char *parent_category);
+XBT_PUBLIC(int) TRACE_create_category (const char *category, const char *type, const char *parent_category);
 XBT_PUBLIC(void) TRACE_msg_set_task_category (m_task_t task, const char *category);
 XBT_PUBLIC(void) TRACE_msg_set_process_category (m_process_t process, const char *category);
 XBT_PUBLIC(void) TRACE_set_mask (int mask);