2005-11-17 05:59:21 +00:00
|
|
|
/* cmdarg_err.h
|
2014-06-29 21:37:21 +00:00
|
|
|
* Declarations of routines to report command-line argument errors.
|
2005-11-17 05:59:21 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-11-17 05:59:21 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2005-11-17 05:59:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-01-01 00:55:23 +00:00
|
|
|
#ifndef __UI_CMDARG_ERR_H__
|
|
|
|
#define __UI_CMDARG_ERR_H__
|
2014-06-29 21:37:21 +00:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
2005-11-17 05:59:21 +00:00
|
|
|
|
2013-07-12 01:22:35 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2005-11-17 05:59:21 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2014-06-29 21:37:21 +00:00
|
|
|
/*
|
|
|
|
* Set the reporting functions for error messages.
|
|
|
|
*/
|
2019-01-01 00:55:23 +00:00
|
|
|
extern void
|
2014-06-29 21:37:21 +00:00
|
|
|
cmdarg_err_init(void (*err)(const char *, va_list),
|
|
|
|
void (*err_cont)(const char *, va_list));
|
|
|
|
|
2005-11-17 05:59:21 +00:00
|
|
|
/*
|
|
|
|
* Report an error in command-line arguments.
|
|
|
|
*/
|
2019-01-01 00:55:23 +00:00
|
|
|
extern void
|
2014-06-29 21:37:21 +00:00
|
|
|
cmdarg_err(const char *fmt, ...)
|
2010-01-25 13:20:53 +00:00
|
|
|
G_GNUC_PRINTF(1, 2);
|
2005-11-17 05:59:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Report additional information for an error in command-line arguments.
|
|
|
|
*/
|
2019-01-01 00:55:23 +00:00
|
|
|
extern void
|
2014-06-29 21:37:21 +00:00
|
|
|
cmdarg_err_cont(const char *fmt, ...)
|
2010-01-25 13:20:53 +00:00
|
|
|
G_GNUC_PRINTF(1, 2);
|
2005-11-17 05:59:21 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2019-01-01 00:55:23 +00:00
|
|
|
#endif /* __UI_CMDARG_ERR_H__ */
|