Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this writeActions stuff was never used
[simgrid.git] / src / xbt / log_private.h
1 /* Copyright (c) 2007-2017. 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) (xbt_log_appender_t this_appender, char *event);
12   void (*free_) (xbt_log_appender_t this_);
13   void *data;
14 };
15
16 struct xbt_log_layout_s {
17   int (*do_layout) (xbt_log_layout_t l, xbt_log_event_t event, const char *fmt);
18   void (*free_) (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  * Programatically 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