mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
updated libopts to 5.18
This commit is contained in:
+9
-11
@@ -2,11 +2,11 @@
|
||||
*
|
||||
* DO NOT EDIT THIS FILE (genshell.h)
|
||||
*
|
||||
* It has been AutoGen-ed March 31, 2013 at 10:41:27 AM by AutoGen 5.17.3
|
||||
* It has been AutoGen-ed July 14, 2013 at 05:37:09 PM by AutoGen 5.18
|
||||
* From the definitions genshell.def
|
||||
* and the template file options
|
||||
*
|
||||
* Generated from AutoOpts 38:0:13 templates.
|
||||
* Generated from AutoOpts 40:0:15 templates.
|
||||
*
|
||||
* AutoOpts is a copyrighted work. This header file is not encumbered
|
||||
* by AutoOpts licensing, but is provided under the licensing terms chosen
|
||||
@@ -55,7 +55,7 @@
|
||||
* tolerable version is at least as old as what was current when the header
|
||||
* template was released.
|
||||
*/
|
||||
#define AO_TEMPLATE_VERSION 155648
|
||||
#define AO_TEMPLATE_VERSION 163840
|
||||
#if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
|
||||
|| (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
|
||||
# error option template version mismatches autoopts/options.h header
|
||||
@@ -87,7 +87,7 @@ typedef enum {
|
||||
#define GENSHELL_DESC(n) (genshelloptOptions.pOptDesc[INDEX_GENSHELL_OPT_## n])
|
||||
/** 'true' if an option has been specified in any way */
|
||||
#define HAVE_GENSHELL_OPT(n) (! UNUSED_OPT(& GENSHELL_DESC(n)))
|
||||
/** The string argument to an option. The argument type must be "string". */
|
||||
/** The string argument to an option. The argument type must be \"string\". */
|
||||
#define GENSHELL_OPT_ARG(n) (GENSHELL_DESC(n).optArg.argString)
|
||||
/** Mask the option state revealing how an option was specified.
|
||||
* It will be one and only one of \a OPTST_SET, \a OPTST_PRESET,
|
||||
@@ -114,18 +114,16 @@ typedef enum {
|
||||
if ((GENSHELL_DESC(n).fOptState & OPTST_INITENABLED) == 0) \
|
||||
GENSHELL_DESC(n).fOptState |= OPTST_DISABLED; \
|
||||
GENSHELL_DESC(n).optCookie = NULL )
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
/**
|
||||
* Enumeration of genshellopt exit codes
|
||||
*/
|
||||
typedef enum {
|
||||
GENSHELLOPT_EXIT_SUCCESS = 0,
|
||||
GENSHELLOPT_EXIT_FAILURE = 1,
|
||||
GENSHELLOPT_EXIT_USAGE_ERROR = 64,
|
||||
GENSHELLOPT_EXIT_SUCCESS = 0,
|
||||
GENSHELLOPT_EXIT_FAILURE = 1,
|
||||
GENSHELLOPT_EXIT_USAGE_ERROR = 64,
|
||||
GENSHELLOPT_EXIT_LIBOPTS_FAILURE = 70
|
||||
} genshellopt_exit_code_t;
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
} genshellopt_exit_code_t;
|
||||
/**
|
||||
* Interface defines for specific options.
|
||||
* @{
|
||||
@@ -148,7 +146,6 @@ typedef enum {
|
||||
genshelloptOptions.pzCurOpt = NULL )
|
||||
#define START_GENSHELL_OPT RESTART_GENSHELL_OPT(1)
|
||||
#define GENSHELL_USAGE(c) (*genshelloptOptions.pUsageProc)(&genshelloptOptions, c)
|
||||
/* extracted from opthead.tlib near line 538 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -203,4 +200,5 @@ static inline char* aoGetsText(char const* pz) {
|
||||
}
|
||||
#endif
|
||||
#endif /* AUTOOPTS_GENSHELL_H_GUARD */
|
||||
|
||||
/* genshell.h ends here */
|
||||
|
||||
Reference in New Issue
Block a user