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
16struct ha_opts
17{
19};
20
21extern struct ha_opts g_ha_opts;
22
23HA_DEPRECATED("use g_ha_opts instead")
25int ha_setopt(int opt, ...);
26
27HA_DEPRECATED("use g_ha_opts instead")
29int ha_getopt(int opt, void *out);
30
31#endif
#define HA_DEPRECATED(msg)
Definition hadefs.h:10
#define HA_PUBFUN
Definition hadefs.h:34
HA_PUBFUN int ha_setopt(int opt,...)
HA_PUBFUN int ha_getopt(int opt, void *out)
struct ha_opts g_ha_opts
Definition opts.h:17
int debug
Definition opts.h:18
int noabort
Definition opts.h:18