Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
proper use of the HAVE_TRACING variable defined by Cmake through -Dtracing=on
[simgrid.git] / src / xbt / log_private.h
1 /* $Id: log.c 4794 2007-10-10 12:38:37Z mquinson $ */
2
3 /* Copyright (c) 2003-2007 Martin Quinson. All rights reserved.             */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef LOG_PRIVATE_H
9 #define LOG_PRIVATE_H
10
11 #include "xbt/log.h"
12 struct xbt_log_appender_s {
13   void (*do_append) (xbt_log_appender_t this_appender, char *event);
14   void (*free_) (xbt_log_appender_t this_);
15   void *data;
16 };
17
18 struct xbt_log_layout_s {
19   void (*do_layout) (xbt_log_layout_t l,
20                      xbt_log_event_t event, const char *fmt,
21                      xbt_log_appender_t appender);
22   void (*free_) (xbt_log_layout_t l);
23   void *data;
24 };
25
26
27 /**
28  * \ingroup XBT_log_implem
29  * \param cat the category (not only its name, but the variable)
30  * \param parent the parent cat
31  *
32  * Programatically alter a category's parent (don't use).
33  */
34 XBT_PUBLIC(void) xbt_log_parent_set(xbt_log_category_t cat,
35                                     xbt_log_category_t parent);
36
37
38 #endif /* LOG_PRIVATE_H */