Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
cmdarg_err.h
Go to the documentation of this file.
1
12#ifndef __CMDARG_ERR_H__
13#define __CMDARG_ERR_H__
14
15#include <wireshark.h>
16#include <stdarg.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22/*
23 * Set the reporting functions for error messages.
24 */
25WS_DLL_PUBLIC void
26cmdarg_err_init(void (*err)(const char *, va_list),
27 void (*err_cont)(const char *, va_list));
28
29/*
30 * Report an error in command-line arguments.
31 */
32WS_DLL_PUBLIC void
33vcmdarg_err(const char *fmt, va_list ap)
34 G_GNUC_PRINTF(1, 0);
35
36WS_DLL_PUBLIC void
37cmdarg_err(const char *fmt, ...)
38 G_GNUC_PRINTF(1, 2);
39
40/*
41 * Report additional information for an error in command-line arguments.
42 */
43WS_DLL_PUBLIC void
44cmdarg_err_cont(const char *fmt, ...)
45 G_GNUC_PRINTF(1, 2);
46
47#ifdef __cplusplus
48}
49#endif /* __cplusplus */
50
51#endif /* __CMDARG_ERR_H__ */