Logo AND Algorithmique Numérique Distribuée

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