Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Convenience wrapper for the core headers.
const struct Module ModulePattern
Module for the Pattern library.
#define FREE(x)
Free memory and set the pointer to NULL.
#define MUTT_MEM_CALLOC(n, type)
@ MODULE_ID_PATTERN
ModulePattern, Pattern
Convenience wrapper for the library headers.
struct Notify * notify_new(void)
Create a new notifications handler.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void notify_free(struct Notify **ptr)
Free a notification handler.
void neomutt_set_module_data(struct NeoMutt *n, enum ModuleId id, void *data)
Set the private data for a Module.
struct ConfigDef PatternVars[]
Config definitions for the pattern library.
static bool pattern_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
static bool pattern_cleanup(struct NeoMutt *n, void *data)
Clean up a Module - Implements Module::cleanup()
static bool pattern_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Pattern private Module data.
Shared constants/structs that are private to libpattern.
#define RANGE_GT_RX
Regex for greater-than range (e.g., ">50")
#define RANGE_ABS_RX
Regex for absolute range (e.g., "1-5")
#define RANGE_LT_RX
Regex for less-than range (e.g., "<100")
#define RANGE_BARE_RX
Regex for bare number range.
#define RANGE_REL_RX
Regex for relative range (e.g., "1,5" or "-3,.")
@ RANGE_K_REL
Relative range.
@ RANGE_K_ABS
Absolute range.
@ RANGE_K_LT
Less-than range.
@ RANGE_K_INVALID
Range is invalid.
@ RANGE_K_BARE
Single symbol.
@ RANGE_K_GT
Greater-than range.
Container for lots of config items.
Container for Accounts, Notifications.
struct Notify * notify
Notifications handler.
Pattern private Module data.
struct Notify * notify
Notifications.
struct RangeRegex range_regexes[RANGE_K_INVALID]
Set of Regexes for various range types.
Regular expression representing a range.
regex_t cooked
Compiled form.