22#ifndef __REPORT_MESSAGE_H__
23#define __REPORT_MESSAGE_H__
95 int err,
char *err_info, uint64_t framenum,
int file_type);
130WS_DLL_PUBLIC
void report_failure(
const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
140WS_DLL_PUBLIC
void report_warning(const
char *msg_format, ...) G_GNUC_PRINTF(1, 2);
154WS_DLL_PUBLIC
void report_open_failure(const
char *filename,
int err,
162WS_DLL_PUBLIC
void report_read_failure(const
char *filename,
int err);
169WS_DLL_PUBLIC
void report_write_failure(const
char *filename,
int err);
177WS_DLL_PUBLIC
void report_rename_failure(const
char *old_filename,
178 const
char *new_filename,
int err);
187WS_DLL_PUBLIC
void report_cfile_open_failure(const
char *filename,
188 int err,
char *err_info);
198WS_DLL_PUBLIC
void report_cfile_dump_open_failure(const
char *filename,
199 int err,
char *err_info,
int file_type_subtype);
208WS_DLL_PUBLIC
void report_cfile_read_failure(const
char *filename,
209 int err,
char *err_info);
222WS_DLL_PUBLIC
void report_cfile_write_failure(const
char *in_filename,
223 const
char *out_filename,
int err,
char *err_info, uint64_t framenum,
224 int file_type_subtype);
233WS_DLL_PUBLIC
void report_cfile_close_failure(const
char *filename,
234 int err,
char *err_info);
240WS_DLL_PUBLIC const
char *get_friendly_program_name(
void);
WS_DLL_PUBLIC void report_failure(const char *msg_format,...)
Report a general error message.
Definition report_message.c:38
WS_DLL_PUBLIC void init_report_message(const char *friendly_program_name, const struct report_message_routines *routines)
Initialize the report message system with program context and output routines.
Definition report_message.c:27
Dispatch table of error and warning reporting callbacks, allowing different application frontends to ...
Definition report_message.h:35
void(* report_cfile_open_failure)(const char *filename, int err, char *err_info)
Reports a failure to open a capture file.
Definition report_message.h:72
void(* report_read_failure)(const char *filename, int err)
Reports a failure to read from a file.
Definition report_message.h:55
void(* report_cfile_dump_open_failure)(const char *filename, int err, char *err_info, int file_type)
Reports a failure to open a capture file for dumping (writing).
Definition report_message.h:79
void(* vreport_warning)(const char *fmt, va_list ap)
Reports a formatted non-fatal warning message via a va_list argument list.
Definition report_message.h:44
void(* report_cfile_write_failure)(const char *in_filename, const char *out_filename, int err, char *err_info, uint64_t framenum, int file_type)
Reports a failure to write a frame to a capture file.
Definition report_message.h:94
void(* report_write_failure)(const char *filename, int err)
Reports a failure to write to a file.
Definition report_message.h:60
void(* report_rename_failure)(const char *old_filename, const char *new_filename, int err)
Reports a failure to rename a file.
Definition report_message.h:66
void(* report_open_failure)(const char *filename, int err, bool for_writing)
Reports a failure to open a file.
Definition report_message.h:50
void(* report_cfile_close_failure)(const char *filename, int err, char *err_info)
Reports a failure to close a capture file.
Definition report_message.h:101
void(* report_cfile_read_failure)(const char *filename, int err, char *err_info)
Reports a failure to read from a capture file.
Definition report_message.h:85
void(* vreport_failure)(const char *fmt, va_list ap)
Reports a formatted fatal failure message via a va_list argument list.
Definition report_message.h:39