libhasha 2.2.2
Loading...
Searching...
No Matches
opts.h File Reference
#include "./internal.h"
Include dependency graph for opts.h:

Go to the source code of this file.

Classes

struct  ha_opts

Macros

#define HA_OPT_TYPE_BOOL   0x01000000
#define HA_OPTID_NOABORT   1
#define HA_OPTID_DEBUG   2
#define HA_OPTID_FASTCMP   3
#define HA_OPT_NOABORT   (HA_OPT_TYPE_BOOL | HA_OPTID_NOABORT)
#define HA_OPT_DEBUG   (HA_OPT_TYPE_BOOL | HA_OPTID_DEBUG)

Functions

HA_PUBFUN int ha_setopt (int opt,...)
HA_PUBFUN int ha_getopt (int opt, void *out)

Variables

struct ha_opts g_ha_opts

Macro Definition Documentation

◆ HA_OPT_DEBUG

#define HA_OPT_DEBUG   (HA_OPT_TYPE_BOOL | HA_OPTID_DEBUG)

Definition at line 14 of file opts.h.

◆ HA_OPT_NOABORT

#define HA_OPT_NOABORT   (HA_OPT_TYPE_BOOL | HA_OPTID_NOABORT)

Definition at line 13 of file opts.h.

◆ HA_OPT_TYPE_BOOL

#define HA_OPT_TYPE_BOOL   0x01000000

Definition at line 7 of file opts.h.

◆ HA_OPTID_DEBUG

#define HA_OPTID_DEBUG   2

Definition at line 10 of file opts.h.

◆ HA_OPTID_FASTCMP

#define HA_OPTID_FASTCMP   3

Definition at line 11 of file opts.h.

◆ HA_OPTID_NOABORT

#define HA_OPTID_NOABORT   1

Definition at line 9 of file opts.h.

Function Documentation

◆ ha_getopt()

HA_PUBFUN int ha_getopt ( int opt,
void * out )

◆ ha_setopt()

HA_PUBFUN int ha_setopt ( int opt,
... )

Variable Documentation

◆ g_ha_opts

struct ha_opts g_ha_opts
extern