Logo AND Algorithmique Numérique Distribuée

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