-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2021. 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. */
#define LOG_PRIVATE_H
#include "xbt/log.h"
+#include <array>
+
struct xbt_log_appender_s {
- void (*do_append) (xbt_log_appender_t this_appender, char *event);
- void (*free_) (xbt_log_appender_t this_);
+ void (*do_append)(const s_xbt_log_appender_t* this_appender, const char* event);
+ void (*free_)(const s_xbt_log_appender_t* this_);
void *data;
};
struct xbt_log_layout_s {
- int (*do_layout) (xbt_log_layout_t l, xbt_log_event_t event, const char *fmt);
- void (*free_) (xbt_log_layout_t l);
+ 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*, xbt_log_priority_infinite> xbt_log_priority_names;
+
/**
* @ingroup XBT_log_implem
* @param cat the category (not only its name, but the variable)