55  "no", 
"yes", 
"ask-no", 
"ask-yes", NULL,
 
 
   79    buf_printf(err, 
_(
"Invalid quad value: %s"), value);
 
   85    if (num == (*(
char *) var))
 
   93      int rc = cdef->
validator(cdef, (intptr_t) num, err);
 
 
  117    value = *(
char *) var;
 
 
  135                           intptr_t value, 
struct Buffer *err)
 
  139    buf_printf(err, 
_(
"Invalid quad value: %ld"), (
long) value);
 
  143  if (value == (*(
char *) var))
 
  151    int rc = cdef->
validator(cdef, value, err);
 
  157  *(
char *) var = value;
 
 
  166  return *(
char *) var;
 
 
  174  return (cdef->
initial != (*(
char *) var));
 
 
  182  if (cdef->
initial == (*(
char *) var))
 
 
  225  if (!sub || !he || !he->
data)
 
  233  if (value == INT_MIN)
 
 
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
 
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
 
struct HashElem * cs_get_base(struct HashElem *he)
Find the root Config Item.
 
int cs_he_native_set(const struct ConfigSet *cs, struct HashElem *he, intptr_t value, struct Buffer *err)
Natively set the value of a HashElem config item.
 
intptr_t cs_he_native_get(const struct ConfigSet *cs, struct HashElem *he, struct Buffer *err)
Natively get the value of a HashElem config item.
 
A collection of config items.
 
static bool startup_only(const struct ConfigDef *cdef, struct Buffer *err)
Validator function for D_ON_STARTUP.
 
#define CSR_ERR_INVALID
Value hasn't been set.
 
#define CSR_INV_TYPE
Value is not valid for the type.
 
#define CSR_INV_VALIDATOR
Value was rejected by the validator.
 
#define CSR_SUC_NO_CHANGE
The value hasn't changed.
 
#define CSR_ERR_CODE
Problem with the code.
 
#define CSR_SUCCESS
Action completed successfully.
 
static bool quad_has_been_set(void *var, const struct ConfigDef *cdef)
Is the config value different to its initial value?
 
static intptr_t quad_native_get(void *var, const struct ConfigDef *cdef, struct Buffer *err)
Get an int object from a Quad-option config item - Implements ConfigSetType::native_get() -.
 
static int quad_native_set(void *var, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Set a Quad-option config item by int - Implements ConfigSetType::native_set() -.
 
static int quad_reset(void *var, const struct ConfigDef *cdef, struct Buffer *err)
Reset a Quad-option to its initial value - Implements ConfigSetType::reset() -.
 
static int quad_string_get(void *var, const struct ConfigDef *cdef, struct Buffer *result)
Get a Quad-option as a string - Implements ConfigSetType::string_get() -.
 
static int quad_string_set(void *var, struct ConfigDef *cdef, const char *value, struct Buffer *err)
Set a Quad-option by string - Implements ConfigSetType::string_set() -.
 
#define mutt_debug(LEVEL,...)
 
@ LL_DEBUG1
Log at debug level 1.
 
Convenience wrapper for the library headers.
 
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
 
int quad_he_toggle(struct ConfigSubset *sub, struct HashElem *he, struct Buffer *err)
Toggle the value of a quad.
 
static int quad_toggle(int opt)
Toggle (invert) the value of a quad option.
 
const char * QuadValues[]
Valid strings for creating a QuadValue.
 
const struct ConfigSetType CstQuad
Config type representing a quad-option.
 
Type representing a quad-option.
 
String manipulation buffer.
 
int(* validator)(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
 
intptr_t initial
Initial value.
 
A set of inherited config items.
 
struct ConfigSet * cs
Parent ConfigSet.
 
The item stored in a Hash Table.
 
int type
Type of data stored in Hash Table, e.g. DT_STRING.
 
void * data
User-supplied data.
 
void cs_subset_notify_observers(const struct ConfigSubset *sub, struct HashElem *he, enum NotifyConfig ev)
Notify all observers of an event.
 
@ NT_CONFIG_SET
Config item has been set.
 
Constants for all the config types.
 
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)