summaryrefslogtreecommitdiff
path: root/lib/util/debug_s3.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-24 16:14:03 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-03-01 04:32:12 +0100
commit5f5ca913b7abfcf95782339fac2dc8c1541b1126 (patch)
treeedd1c797f8d8692ff7d613e7ae8901b656dd6726 /lib/util/debug_s3.h
parent4acef317a0e1692afc526a3805adf87403651170 (diff)
downloadsamba-5f5ca913b7abfcf95782339fac2dc8c1541b1126.tar.gz
samba-5f5ca913b7abfcf95782339fac2dc8c1541b1126.tar.bz2
samba-5f5ca913b7abfcf95782339fac2dc8c1541b1126.zip
lib/util: new merged debug system
This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
Diffstat (limited to 'lib/util/debug_s3.h')
-rw-r--r--lib/util/debug_s3.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/util/debug_s3.h b/lib/util/debug_s3.h
new file mode 100644
index 0000000000..ce8869d64c
--- /dev/null
+++ b/lib/util/debug_s3.h
@@ -0,0 +1,23 @@
+/*
+ Unix SMB/CIFS implementation.
+ SMB debug stuff
+ Copyright (C) Andrew Tridgell 2002
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+struct messaging_context;
+void debug_message(struct messaging_context *msg_ctx, void *private_data, uint32_t msg_type, struct server_id src, DATA_BLOB *data);
+void debug_register_msgs(struct messaging_context *msg_ctx);
+bool reopen_logs( void );