dcerpc-nt: add UNION_ALIGN_TO... helpers
[wireshark-sm.git] / wsutil / cmdarg_err.h
blobdaa50524e7e080a3d86011c4b8899ff8d81d9d86
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);
47 #ifdef __cplusplus
49 #endif /* __cplusplus */
51 #endif /* __CMDARG_ERR_H__ */