73 "Bad magic number on purported %s object. "
74 "Expected %"PRIu32
"x but got %"PRIu32
"x.",
229 return def ? def->
name : NULL;
238 return def ? def->
flags : 0;
Utility macros to handle different features and behavior in different compilers.
#define STRUCT_VAR_P(st, off)
Types used to specify configurable options.
const struct var_type_def_t * type_def
void struct_set_magic(void *object, const struct_magic_decl_t *decl)
const void * struct_get_ptr(const void *object, const struct_member_t *member)
const char * struct_var_get_typename(const struct_member_t *member)
void * struct_get_mptr(void *object, const struct_member_t *member)
void struct_check_magic(const void *object, const struct_magic_decl_t *decl)
bool struct_var_eq(const void *a, const void *b, const struct_member_t *member)
int struct_var_kvassign(void *object, const struct config_line_t *line, char **errmsg, const struct_member_t *member)
int struct_var_copy(void *dest, const void *src, const struct_member_t *member)
void struct_var_free(void *object, const struct_member_t *member)
void struct_var_mark_fragile(void *object, const struct_member_t *member)
bool struct_var_ok(const void *object, const struct_member_t *member)
struct config_line_t * struct_var_kvencode(const void *object, const struct_member_t *member)
static bool magic_is_null(const struct_magic_decl_t *decl)
static const var_type_def_t * get_type_def(const struct_member_t *member)
uint32_t struct_var_get_flags(const struct_member_t *member)
const char * struct_var_get_name(const struct_member_t *member)
Header for lib/confmgt/structvar.c.
const var_type_def_t * lookup_type_def(config_type_t type)
Header for lib/confmgt/type_defs.c.
void typed_var_mark_fragile(void *value, const var_type_def_t *def)
void typed_var_free(void *target, const var_type_def_t *def)
config_line_t * typed_var_kvencode(const char *key, const void *value, const var_type_def_t *def)
bool typed_var_eq(const void *a, const void *b, const var_type_def_t *def)
bool typed_var_ok(const void *value, const var_type_def_t *def)
int typed_var_kvassign(void *target, const config_line_t *line, char **errmsg, const var_type_def_t *def)
int typed_var_copy(void *dest, const void *src, const var_type_def_t *def)
Header for lib/confmgt/typedvar.c.
Macros to manage assertions, fatal and non-fatal.
Structure declarations for typedvar type definitions.