Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mc_api::get_automaton_transition_label() defined and called in run()
[simgrid.git] / src / xbt / log_private.hpp
index e49cb065ea88c4a69c5cbbae50f25bcf0295daeb..e07e4740730e56418cef93cb959351a0c1e8197c 100644 (file)
@@ -7,6 +7,8 @@
 #define LOG_PRIVATE_H
 
 #include "xbt/log.h"
+#include <array>
+
 struct xbt_log_appender_s {
   void (*do_append)(const s_xbt_log_appender_t* this_appender, const char* event);
   void (*free_)(const s_xbt_log_appender_t* this_);
@@ -14,11 +16,13 @@ struct xbt_log_appender_s {
 };
 
 struct xbt_log_layout_s {
-  int (*do_layout)(const s_xbt_log_layout_t* l, xbt_log_event_t event, const char* fmt);
+  bool (*do_layout)(const s_xbt_log_layout_t* l, xbt_log_event_t event, const char* fmt);
   void (*free_)(const s_xbt_log_layout_t* l);
   void *data;
 };
 
+extern const std::array<const char*, 8> xbt_log_priority_names;
+
 /**
  * @ingroup XBT_log_implem
  * @param cat the category (not only its name, but the variable)