Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
report_message.h
Go to the documentation of this file.
1
22#ifndef __REPORT_MESSAGE_H__
23#define __REPORT_MESSAGE_H__
24
25#include <wireshark.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif /* __cplusplus */
30
31/*
32 * Initialize the report message routines
33 */
35 void (*vreport_failure)(const char *, va_list);
36 void (*vreport_warning)(const char *, va_list);
37 void (*report_open_failure)(const char *, int, bool);
38 void (*report_read_failure)(const char *, int);
39 void (*report_write_failure)(const char *, int);
40 void (*report_rename_failure)(const char *, const char *, int);
41 void (*report_cfile_open_failure)(const char *, int, char *);
42 void (*report_cfile_dump_open_failure)(const char *, int, char *, int);
43 void (*report_cfile_read_failure)(const char *, int, char *);
44 void (*report_cfile_write_failure)(const char *, const char *,
45 int, char *, uint64_t, int);
46 void (*report_cfile_close_failure)(const char *, int, char *);
47};
48
64WS_DLL_PUBLIC void init_report_message(const char *friendly_program_name,
65 const struct report_message_routines *routines);
66
75WS_DLL_PUBLIC void report_failure(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
76
85WS_DLL_PUBLIC void report_warning(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
86
99WS_DLL_PUBLIC void report_open_failure(const char *filename, int err,
100 bool for_writing);
101
107WS_DLL_PUBLIC void report_read_failure(const char *filename, int err);
108
114WS_DLL_PUBLIC void report_write_failure(const char *filename, int err);
115
122WS_DLL_PUBLIC void report_rename_failure(const char *old_filename,
123 const char *new_filename, int err);
124
132WS_DLL_PUBLIC void report_cfile_open_failure(const char *filename,
133 int err, char *err_info);
134
143WS_DLL_PUBLIC void report_cfile_dump_open_failure(const char *filename,
144 int err, char *err_info, int file_type_subtype);
145
153WS_DLL_PUBLIC void report_cfile_read_failure(const char *filename,
154 int err, char *err_info);
155
167WS_DLL_PUBLIC void report_cfile_write_failure(const char *in_filename,
168 const char *out_filename, int err, char *err_info, uint64_t framenum,
169 int file_type_subtype);
170
178WS_DLL_PUBLIC void report_cfile_close_failure(const char *filename,
179 int err, char *err_info);
180
185WS_DLL_PUBLIC const char *get_friendly_program_name(void);
186
187#ifdef __cplusplus
188}
189#endif /* __cplusplus */
190
191#endif /* __REPORT_MESSAGE_H__ */
WS_DLL_PUBLIC void report_warning(const char *msg_format,...)
Report a general warning message.
Definition report_message.c:51
WS_DLL_PUBLIC void report_rename_failure(const char *old_filename, const char *new_filename, int err)
Reports an error encountered while renaming a file.
Definition report_message.c:98
WS_DLL_PUBLIC void report_cfile_dump_open_failure(const char *filename, int err, char *err_info, int file_type_subtype)
Reports an error encountered while opening a capture file for writing (dumping).
Definition report_message.c:117
WS_DLL_PUBLIC void report_cfile_open_failure(const char *filename, int err, char *err_info)
Reports an error encountered while opening a capture file for reading.
Definition report_message.c:108
WS_DLL_PUBLIC const char * get_friendly_program_name(void)
Return the "friendly" program name.
Definition report_message.c:157
WS_DLL_PUBLIC void report_cfile_write_failure(const char *in_filename, const char *out_filename, int err, char *err_info, uint64_t framenum, int file_type_subtype)
Reports an error encountered while writing to a capture file.
Definition report_message.c:137
WS_DLL_PUBLIC void report_cfile_close_failure(const char *filename, int err, char *err_info)
Reports an error encountered while closing a capture file that was open for writing.
Definition report_message.c:148
WS_DLL_PUBLIC void report_cfile_read_failure(const char *filename, int err, char *err_info)
Reports an error encountered while reading from a capture file.
Definition report_message.c:128
WS_DLL_PUBLIC void report_open_failure(const char *filename, int err, bool for_writing)
Reports an error encountered while opening a file.
Definition report_message.c:67
WS_DLL_PUBLIC void report_write_failure(const char *filename, int err)
Reports an error encountered while writing a file.
Definition report_message.c:88
WS_DLL_PUBLIC void report_read_failure(const char *filename, int err)
Reports an error encountered while reading a file.
Definition report_message.c:78
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
Definition report_message.h:34