Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Constify pointer and reference parameters in src/xbt/log.cpp.
[simgrid.git] / src / xbt / log_private.hpp
1 /* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef LOG_PRIVATE_H
7 #define LOG_PRIVATE_H
8
9 #include "xbt/log.h"
10 struct xbt_log_appender_s {
11   void (*do_append)(const s_xbt_log_appender_t* this_appender, const char* event);
12   void (*free_)(const s_xbt_log_appender_t* this_);
13   void *data;
14 };
15
16 struct xbt_log_layout_s {
17   int (*do_layout)(const s_xbt_log_layout_t* l, xbt_log_event_t event, const char* fmt);
18   void (*free_)(const s_xbt_log_layout_t* l);
19   void *data;
20 };
21
22 /**
23  * @ingroup XBT_log_implem
24  * @param cat the category (not only its name, but the variable)
25  * @param parent the parent cat
26  *
27  * Programmatically alter a category's parent (don't use).
28  */
29 XBT_PUBLIC void xbt_log_parent_set(xbt_log_category_t cat, xbt_log_category_t parent);
30
31 #endif