struct ATTR_DBR;
struct Plugin;
struct save_pkt;
+struct bpContext;
#ifdef FILE_DAEMON
class htable;
time_t start_time; /* when job actually started */
time_t run_time; /* used for computing speed */
time_t end_time; /* job end time */
- time_t wait_time; /* when job have started to wait */
+ time_t wait_time_sum; /* cumulative wait time since job start */
+ time_t wait_time; /* timestamp when job have started to wait */
POOLMEM *client_name; /* client name */
POOLMEM *RestoreBootstrap; /* Bootstrap file to restore */
POOLMEM *stime; /* start time for incremental/differential */
guid_list *id_list; /* User/group id to name list */
bool accurate; /* true if job is accurate */
- void *plugin_ctx_list; /* list of contexts for plugins */
- void *plugin_ctx; /* current plugin context */
+ bpContext *plugin_ctx_list; /* list of contexts for plugins */
+ bpContext *plugin_ctx; /* current plugin context */
Plugin *plugin; /* plugin instance */
save_pkt *plugin_sp; /* plugin save packet */
char *plugin_options; /* user set options for plugin */
extern void free_jcr(JCR *jcr);
#endif
+/* Used to display specific job information after a fatal signal */
+typedef void (dbg_jcr_hook_t)(JCR *jcr, FILE *fp);
+void dbg_jcr_add_hook(dbg_jcr_hook_t *fct);
+
#endif /* __JCR_H_ */