libhasha
2.2.2
Loading...
Searching...
No Matches
opts.h
Go to the documentation of this file.
1
2
#ifndef __HASHA_INTERNAL_OPTS_H
3
#define __HASHA_INTERNAL_OPTS_H
4
5
#include "
./internal.h
"
6
7
#define HA_OPT_TYPE_BOOL 0x01000000
8
9
#define HA_OPTID_NOABORT 1
10
#define HA_OPTID_DEBUG 2
11
#define HA_OPTID_FASTCMP 3
12
13
#define HA_OPT_NOABORT (HA_OPT_TYPE_BOOL | HA_OPTID_NOABORT)
14
#define HA_OPT_DEBUG (HA_OPT_TYPE_BOOL | HA_OPTID_DEBUG)
15
16
struct
ha_opts
17
{
18
int
noabort
,
debug
;
19
};
20
21
extern
struct
ha_opts
g_ha_opts
;
22
23
HA_DEPRECATED
(
"use g_ha_opts instead"
)
24
HA_PUBFUN
25
int
ha_setopt
(
int
opt, ...);
26
27
HA_DEPRECATED
(
"use g_ha_opts instead"
)
28
HA_PUBFUN
29
int
ha_getopt
(
int
opt,
void
*out);
30
31
#endif
HA_DEPRECATED
#define HA_DEPRECATED(msg)
Definition
hadefs.h:10
HA_PUBFUN
#define HA_PUBFUN
Definition
hadefs.h:34
internal.h
ha_setopt
HA_PUBFUN int ha_setopt(int opt,...)
ha_getopt
HA_PUBFUN int ha_getopt(int opt, void *out)
g_ha_opts
struct ha_opts g_ha_opts
ha_opts
Definition
opts.h:17
ha_opts::debug
int debug
Definition
opts.h:18
ha_opts::noabort
int noabort
Definition
opts.h:18
include
hasha
internal
opts.h
Generated by
1.14.0