Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Strict ANSI compilers (such as microsoft ones) do not allow non-constant initializers...
[simgrid.git] / src / xbt / log_private.h
index d9a79c8..38533a1 100644 (file)
@@ -18,10 +18,22 @@ struct xbt_log_appender_s {
 
 struct xbt_log_layout_s {
   void (*do_layout)(xbt_log_layout_t l,
-                   xbt_log_event_t event, const char *fmt);
+                   xbt_log_event_t event, const char *fmt,
+                   xbt_log_appender_t appender);
   void (*free_) (xbt_log_layout_t l);
   void *data;
 } ;
 
 
+/**
+ * \ingroup XBT_log_implem  
+ * \param cat the category (not only its name, but the variable)
+ * \param parent the parent cat
+ *
+ * Programatically alter a category's parent (don't use).
+ */
+XBT_PUBLIC(void) xbt_log_parent_set(xbt_log_category_t cat,
+                                   xbt_log_category_t parent);
+
+
 #endif /* LOG_PRIVATE_H */