summaryrefslogtreecommitdiff
path: root/source/include/smb.h
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-12-16 18:50:54 +0000
committerChristopher R. Hertel <crh@samba.org>1998-12-16 18:50:54 +0000
commit782474f41e0c2bc0b1f098758a3e5cb44e87d8b1 (patch)
treea6a2b16a4cfbe2f2fdd701e97f41c53b996d4e2f /source/include/smb.h
parentef5f752a4ae818d9c739a064410a02fa48a477e3 (diff)
downloadsamba-782474f41e0c2bc0b1f098758a3e5cb44e87d8b1.tar.gz
A while back, Andrew and I talked about making the debug parsing code a
better "fit" with other Samba code. This is a small first step toward doing what (I think) we agreed to do. I've moved the key function from ubiqx/debugparse.c into lib/debug.c. I have also moved the enum from ubiqx/debugparse.h into the debug section in smb.h. The next thing to do is to get debug2html added into the Makefile.in so that it is always produced when compiling the suite. Chris -)-----
Diffstat (limited to 'source/include/smb.h')
-rw-r--r--source/include/smb.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 9c699fc4231..9cd74dd8653 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -67,7 +67,8 @@ typedef int BOOL;
*/
/* I know the __attribute__ stuff is ugly, but it does ensure we get the
arguemnts to DEBUG() right. We have got them wrong too often in the
- past */
+ past.
+ */
#ifdef HAVE_STDARG_H
int Debug1( char *, ... )
#ifdef __GNUC__
@@ -127,6 +128,24 @@ BOOL dbgtext();
#define DEBUGADD( level, body ) \
(void)( (DEBUGLEVEL >= (level)) && (dbgtext body) )
+/* -------------------------------------------------------------------------- **
+ * These are the tokens returned by dbg_char2token().
+ */
+
+typedef enum
+ {
+ dbg_null = 0,
+ dbg_ignore,
+ dbg_header,
+ dbg_timestamp,
+ dbg_level,
+ dbg_sourcefile,
+ dbg_function,
+ dbg_lineno,
+ dbg_message,
+ dbg_eof
+ } dbg_Token;
+
/* End Debugging code section.
* -------------------------------------------------------------------------- **
*/