]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/plugins.h
More changes to ensure that during thread switches the jcr
[bacula/bacula] / bacula / src / lib / plugins.h
index 60c1d280ab50ddc8f177fe5c1765fe4dbc240cf7..9934a4eb10c2d2451e8024865f29eda2081fb658 100644 (file)
@@ -79,5 +79,10 @@ extern Plugin *new_plugin();
 extern bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir, const char *type);
 extern void unload_plugins();
 
+/* Each daemon can register a debug hook that will be called
+ * after a fatal signal
+ */
+typedef void (dbg_plugin_hook_t)(Plugin *plug, FILE *fp);
+extern void dbg_plugin_add_hook(dbg_plugin_hook_t *fct);
 
 #endif /* __PLUGINS_H */