NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
config.c File Reference
#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
#include "lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_pattern (struct ConfigSet *cs)
 Register pattern config variables - Implements module_init_config_t. More...
 

Variables

char * C_ExternalSearchCommand = NULL
 Config: External search command. More...
 
char * C_PatternFormat = NULL
 Config: printf-like format string for the pattern completion menu. More...
 
bool C_ThoroughSearch
 Config: Decode headers and messages before searching them. More...
 
struct ConfigDef PatternVars []
 

Detailed Description

Config used by libpattern

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Function Documentation

◆ config_init_pattern()

bool config_init_pattern ( struct ConfigSet cs)

Register pattern config variables - Implements module_init_config_t.

Definition at line 59 of file config.c.

60 {
61  return cs_register_variables(cs, PatternVars, 0);
62 }
+ Here is the call graph for this function:

Variable Documentation

◆ C_ExternalSearchCommand

char* C_ExternalSearchCommand = NULL

Config: External search command.

Definition at line 36 of file config.c.

◆ C_PatternFormat

char* C_PatternFormat = NULL

Config: printf-like format string for the pattern completion menu.

Definition at line 37 of file config.c.

◆ C_ThoroughSearch

bool C_ThoroughSearch

Config: Decode headers and messages before searching them.

Definition at line 38 of file config.c.

◆ PatternVars

struct ConfigDef PatternVars[]
Initial value:
= {
{ "external_search_command", DT_STRING|DT_COMMAND, &C_ExternalSearchCommand, 0, 0, NULL,
"External search command"
},
{ "pattern_format", DT_STRING, &C_PatternFormat, IP "%2n %-15e %d", 0, NULL,
"printf-like format string for the pattern completion menu"
},
{ "thorough_search", DT_BOOL, &C_ThoroughSearch, true, 0, NULL,
"Decode headers and messages before searching them"
},
{ NULL, 0, NULL, 0, 0, NULL, NULL },
}

Definition at line 41 of file config.c.

IP
#define IP
Definition: set.h:54
DT_STRING
#define DT_STRING
a string
Definition: types.h:41
PatternVars
struct ConfigDef PatternVars[]
Definition: config.c:41
cs_register_variables
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:286
C_ExternalSearchCommand
char * C_ExternalSearchCommand
Config: External search command.
Definition: config.c:36
DT_BOOL
#define DT_BOOL
boolean option
Definition: types.h:30
C_ThoroughSearch
bool C_ThoroughSearch
Config: Decode headers and messages before searching them.
Definition: config.c:38
C_PatternFormat
char * C_PatternFormat
Config: printf-like format string for the pattern completion menu.
Definition: config.c:37
DT_COMMAND
#define DT_COMMAND
A command.
Definition: types.h:50