X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..ea74f5d95928a521a588737e81f1de94eef25d19:/src/xbt/log_private.hpp diff --git a/src/xbt/log_private.hpp b/src/xbt/log_private.hpp index e49cb065ea..01d5e9df1a 100644 --- a/src/xbt/log_private.hpp +++ b/src/xbt/log_private.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2022. 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. */ @@ -7,6 +7,8 @@ #define LOG_PRIVATE_H #include "xbt/log.h" +#include + 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 xbt_log_priority_names; + /** * @ingroup XBT_log_implem * @param cat the category (not only its name, but the variable)