Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move private definition out of the log.h public header. Moreover, this public header...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 11 Oct 2007 06:57:25 +0000 (06:57 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 11 Oct 2007 06:57:25 +0000 (06:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4806 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/log.h
src/Makefile.am
src/Makefile.in
src/xbt/log.c
src/xbt/log_private.h [new file with mode: 0644]
src/xbt/xbt_log_appender_file.c
src/xbt/xbt_log_layout_format.c
src/xbt/xbt_log_layout_simple.c

index edb18df..45d8b8c 100644 (file)
@@ -246,20 +246,6 @@ struct xbt_log_category_s {
   int additivity;
 };
 
-struct xbt_log_appender_s {
-  void (*do_append) (xbt_log_appender_t this_appender,
-                    char *event);
-  void (*free_) (xbt_log_appender_t this_);
-  void *data;
-};
-
-struct xbt_log_layout_s {
-  void (*do_layout)(xbt_log_layout_t l,
-                   xbt_log_event_t event, const char *fmt);
-  void (*free_) (xbt_log_layout_t l);
-  void *data;
-} ;
-
 struct xbt_log_event_s {
   xbt_log_category_t cat;
   e_xbt_log_priority_t priority;
index 40753b1..51157cd 100644 (file)
@@ -32,6 +32,7 @@ EXTRA_DIST= \
        xbt/graphxml.c \
        xbt/graphxml.dtd \
         xbt/context_private.h \
+       xbt/log_private.h \
        xbt/ex_interface.h \
         \
        surf/maxmin_private.h \
index ef800ad..720535d 100644 (file)
@@ -447,7 +447,7 @@ EXTRA_DIST = portable.h xbt/mallocator_private.h xbt/dynar_private.h \
        xbt/dict_private.h xbt/heap_private.h xbt/fifo_private.h \
        xbt/graph_private.h xbt/graphxml_parse.c xbt/graphxml.l \
        xbt/graphxml.c xbt/graphxml.dtd xbt/context_private.h \
-       xbt/ex_interface.h surf/maxmin_private.h \
+       xbt/log_private.h xbt/ex_interface.h surf/maxmin_private.h \
        surf/trace_mgr_private.h surf/surf_private.h \
        surf/cpu_private.h surf/workstation_private.h \
        surf/surf_timer_private.h surf/surfxml_parse.c surf/surfxml.l \
index a3da135..db558b7 100644 (file)
@@ -2,7 +2,7 @@
 
 /* log - a generic logging facility in the spirit of log4j                  */
 
-/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
+/* Copyright (c) 2003-2007 Martin Quinson. All rights reserved.             */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -20,7 +20,7 @@
 #include "xbt/misc.h"
 #include "xbt/ex.h"
 #include "xbt/sysdep.h"
-#include "xbt/log.h"
+#include "xbt/log_private.h"
 #include "xbt/dynar.h"
 
 XBT_PUBLIC_DATA(int) (*xbt_pid)();
diff --git a/src/xbt/log_private.h b/src/xbt/log_private.h
new file mode 100644 (file)
index 0000000..d9a79c8
--- /dev/null
@@ -0,0 +1,27 @@
+/* $Id: log.c 4794 2007-10-10 12:38:37Z mquinson $ */
+
+/* Copyright (c) 2003-2007 Martin Quinson. All rights reserved.             */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#ifndef LOG_PRIVATE_H
+#define LOG_PRIVATE_H
+
+#include "xbt/log.h"
+struct xbt_log_appender_s {
+  void (*do_append) (xbt_log_appender_t this_appender,
+                    char *event);
+  void (*free_) (xbt_log_appender_t this_);
+  void *data;
+};
+
+struct xbt_log_layout_s {
+  void (*do_layout)(xbt_log_layout_t l,
+                   xbt_log_event_t event, const char *fmt);
+  void (*free_) (xbt_log_layout_t l);
+  void *data;
+} ;
+
+
+#endif /* LOG_PRIVATE_H */
index d6a1b1a..83af8a5 100644 (file)
@@ -8,7 +8,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/sysdep.h"
-#include "xbt/log.h"
+#include "xbt/log_private.h"
 #include <stdio.h>
 
 /**
index 1f3e4cd..a6df8ef 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "portable.h" /* execinfo when available */
 #include "xbt/sysdep.h"
-#include "xbt/log.h"
+#include "xbt/log_private.h"
 #include "gras/virtu.h" /* gras_os_myname (KILLME) */
 #include "xbt/synchro.h" /* xbt_thread_self_name */
 #include <stdio.h>
index 1b0e3c0..482e5d1 100644 (file)
@@ -8,7 +8,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/sysdep.h"
-#include "xbt/log.h"
+#include "xbt/log_private.h"
 #include "xbt/synchro.h" /* xbt_thread_name */
 #include "gras/virtu.h"
 #include <stdio.h>