summaryrefslogtreecommitdiffstats
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-22 16:17:39 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-23 11:03:57 +1100
commit580997ede06d587ecf00c6a3faff237806904cd3 (patch)
tree73e5ce8019ded546a2630703aa91bd0f41b567c5 /lib/util/util.h
parent058c3bb923c51ef3f1b4b6d698bea2b1220bdd10 (diff)
downloadsamba-580997ede06d587ecf00c6a3faff237806904cd3.tar.gz
samba-580997ede06d587ecf00c6a3faff237806904cd3.tar.xz
samba-580997ede06d587ecf00c6a3faff237806904cd3.zip
fault: get fault.c ready for use by s4
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 78071ad3ca8..b143e4e9919 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -73,13 +73,14 @@ _PUBLIC_ void call_backtrace(void);
**/
_PUBLIC_ _NORETURN_ void smb_panic(const char *why);
-#if _SAMBA_BUILD_ == 4
-/**
-setup our fault handlers
-**/
-_PUBLIC_ void fault_setup(const char *pname);
+typedef void (*smb_panic_handler_t)(const char *why);
+
+_PUBLIC_ void fault_configure(smb_panic_handler_t panic_handler);
+_PUBLIC_ void fault_setup(void);
_PUBLIC_ void fault_setup_disable(void);
-#endif
+_PUBLIC_ void dump_core_setup(const char *progname, const char *logfile);
+_PUBLIC_ void smb_panic(const char *reason);
+
/**
register a fault handler.