TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags
[wireshark-sm.git] / wsutil / cmdarg_err.h
blob5aadcdb65b5b229a5c92dd95ac85d992eb5d8b83
1 /** @file
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>
16 #include <stdarg.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
23 * Set the reporting functions for error messages.
25 WS_DLL_PUBLIC void
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.
32 WS_DLL_PUBLIC void
33 vcmdarg_err(const char *fmt, va_list ap)
34 G_GNUC_PRINTF(1, 0);
36 WS_DLL_PUBLIC void
37 cmdarg_err(const char *fmt, ...)
38 G_GNUC_PRINTF(1, 2);
41 * Report additional information for an error in command-line arguments.
43 WS_DLL_PUBLIC void
44 cmdarg_err_cont(const char *fmt, ...)
45 G_GNUC_PRINTF(1, 2);
48 * Error printing routines that report to the standard error.
50 WS_DLL_PUBLIC void
51 stderr_cmdarg_err(const char *msg_format, va_list ap);
53 WS_DLL_PUBLIC void
54 stderr_cmdarg_err_cont(const char *msg_format, va_list ap);
56 #ifdef __cplusplus
58 #endif /* __cplusplus */
60 #endif /* __CMDARG_ERR_H__ */