3 * Declarations of routines to report command-line argument errors.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __CMDARG_ERR_H__
13 #define __CMDARG_ERR_H__
15 #include <wireshark.h>
20 #endif /* __cplusplus */
23 * Set the reporting functions for error messages.
26 cmdarg_err_init(void (*err
)(const char *, va_list),
27 void (*err_cont
)(const char *, va_list));
30 * Report an error in command-line arguments.
33 vcmdarg_err(const char *fmt
, va_list ap
)
37 cmdarg_err(const char *fmt
, ...)
41 * Report additional information for an error in command-line arguments.
44 cmdarg_err_cont(const char *fmt
, ...)
49 #endif /* __cplusplus */
51 #endif /* __CMDARG_ERR_H__ */