Tor  0.4.7.0-alpha-dev
Macros | Typedefs | Variables
Internal macros: stub table declarations,

Macros

#define BEGIN_CONF_STRUCT__STUB_TABLE(structname)    static const config_var_t structname##_vars[] = {
 
#define END_CONF_STRUCT__STUB_TABLE(structname)
 
#define CONF_VAR__STUB_TABLE(varname, vartype, varflags, initval)
 

Typedefs

typedef char * config_decl_STRING
 
typedef char * config_decl_FILENAME
 
typedef int config_decl_POSINT
 
typedef uint64_t config_decl_UINT64
 
typedef int config_decl_INT
 
typedef int config_decl_INTERVAL
 
typedef int config_decl_MSEC_INTERVAL
 
typedef uint64_t config_decl_MEMUNIT
 
typedef double config_decl_DOUBLE
 
typedef int config_decl_BOOL
 
typedef int config_decl_AUTOBOOL
 
typedef time_t config_decl_ISOTIME
 
typedef int config_decl_CSV_INTERVAL
 
typedef struct nonexistent_struct * config_decl_LINELIST_S
 

Variables

const struct var_type_def_t STRING_type_defn
 
const struct var_type_def_t FILENAME_type_defn
 
const struct var_type_def_t POSINT_type_defn
 
const struct var_type_def_t UINT64_type_defn
 
const struct var_type_def_t INT_type_defn
 
const struct var_type_def_t INTERVAL_type_defn
 
const struct var_type_def_t MSEC_INTERVAL_type_defn
 
const struct var_type_def_t MEMUNIT_type_defn
 
const struct var_type_def_t DOUBLE_type_defn
 
const struct var_type_def_t BOOL_type_defn
 
const struct var_type_def_t AUTOBOOL_type_defn
 
const struct var_type_def_t ISOTIME_type_defn
 
const struct var_type_def_t CSV_type_defn
 
const struct var_type_def_t CSV_INTERVAL_type_defn
 
const struct var_type_def_t LINELIST_type_defn
 
const struct var_type_def_t LINELIST_V_type_defn
 
const struct var_type_def_t LINELIST_S_type_defn
 
const struct var_type_def_t IGNORE_type_defn
 
const struct var_type_def_t OBSOLETE_type_defn
 

Detailed Description

for use when a module is disabled. Implementation helpers: the regular confdecl macros expand to these when CONF_CONTEXT is defined to LL_TABLE. Don't use them directly.

Macro Definition Documentation

◆ CONF_VAR__STUB_TABLE

#define CONF_VAR__STUB_TABLE (   varname,
  vartype,
  varflags,
  initval 
)
Value:
{ \
.member = \
{ .name = #varname, \
.type = CONFIG_TYPE_IGNORE, \
.offset = -1, \
}, \
.flags = CFLG_GROUP_DISABLED, \
},
@ CONFIG_TYPE_IGNORE
Definition: conftypes.h:77
#define CFLG_GROUP_DISABLED
Definition: conftypes.h:221

Definition at line 149 of file confdecl.h.

◆ END_CONF_STRUCT__STUB_TABLE

#define END_CONF_STRUCT__STUB_TABLE (   structname)
Value:
{ .member = { .name = NULL } } \
};

Definition at line 146 of file confdecl.h.

Typedef Documentation

◆ config_decl_STRING

typedef char* config_decl_STRING

Type aliases for the "commonly used" configuration types.

Defining them in this way allows our CONF_VAR__STRUCT() macro to declare structure members corresponding to the configuration types. For example, when the macro sees us declare a configuration option "foo" of type STRING, it can emit config_decl_STRING foo;, which is an alias for char *foo.

Definition at line 170 of file confdecl.h.