| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
report_message.h
Go to the documentation of this file.
1
21
22#ifndef __REPORT_MESSAGE_H__
23#define __REPORT_MESSAGE_H__
24
25#include <wireshark.h>
26
27#ifdef __cplusplus
28 extern "C" {
29#endif /* __cplusplus */
30
35 struct report_message_routines {
39 void (*vreport_failure)(const char *fmt, va_list ap);
40
44 void (*vreport_warning)(const char *fmt, va_list ap);
45
50 void (*report_open_failure)(const char *filename, int err, bool for_writing);
51
55 void (*report_read_failure)(const char *filename, int err);
56
60 void (*report_write_failure)(const char *filename, int err);
61
66 void (*report_rename_failure)(const char *old_filename, const char *new_filename, int err);
67
72 void (*report_cfile_open_failure)(const char *filename, int err, char *err_info);
73
79 void (*report_cfile_dump_open_failure)(const char *filename, int err, char *err_info, int file_type);
80
85 void (*report_cfile_read_failure)(const char *filename, int err, char *err_info);
86
94 void (*report_cfile_write_failure)(const char *in_filename, const char *out_filename,
95 int err, char *err_info, uint64_t framenum, int file_type);
96
101 void (*report_cfile_close_failure)(const char *filename, int err, char *err_info);
102};
103
119WS_DLL_PUBLIC void init_report_message(const char *friendly_program_name,
120 const struct report_message_routines *routines);
121
130WS_DLL_PUBLIC void report_failure(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
131
140WS_DLL_PUBLIC void report_warning(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
141
154WS_DLL_PUBLIC void report_open_failure(const char *filename, int err,
155 bool for_writing);
156
162WS_DLL_PUBLIC void report_read_failure(const char *filename, int err);
163
169WS_DLL_PUBLIC void report_write_failure(const char *filename, int err);
170
177WS_DLL_PUBLIC void report_rename_failure(const char *old_filename,
178 const char *new_filename, int err);
179
187WS_DLL_PUBLIC void report_cfile_open_failure(const char *filename,
188 int err, char *err_info);
189
198WS_DLL_PUBLIC void report_cfile_dump_open_failure(const char *filename,
199 int err, char *err_info, int file_type_subtype);
200
208WS_DLL_PUBLIC void report_cfile_read_failure(const char *filename,
209 int err, char *err_info);
210
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);
225
233WS_DLL_PUBLIC void report_cfile_close_failure(const char *filename,
234 int err, char *err_info);
235
240WS_DLL_PUBLIC const char *get_friendly_program_name(void);
241
242#ifdef __cplusplus
243}
244#endif /* __cplusplus */
245
246#endif /* __REPORT_MESSAGE_H__ */
report_failure
WS_DLL_PUBLIC void report_failure(const char *msg_format,...)
Report a general error message.
Definition report_message.c:38
init_report_message
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
report_message_routines
Dispatch table of error and warning reporting callbacks, allowing different application frontends to ...
Definition report_message.h:35
report_message_routines::report_cfile_open_failure
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
report_message_routines::report_read_failure
void(* report_read_failure)(const char *filename, int err)
Reports a failure to read from a file.
Definition report_message.h:55
report_message_routines::report_cfile_dump_open_failure
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
report_message_routines::vreport_warning
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
report_message_routines::report_cfile_write_failure
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
report_message_routines::report_write_failure
void(* report_write_failure)(const char *filename, int err)
Reports a failure to write to a file.
Definition report_message.h:60
report_message_routines::report_rename_failure
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
report_message_routines::report_open_failure
void(* report_open_failure)(const char *filename, int err, bool for_writing)
Reports a failure to open a file.
Definition report_message.h:50
report_message_routines::report_cfile_close_failure
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
report_message_routines::report_cfile_read_failure
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
report_message_routines::vreport_failure
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