NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
myvar.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MYVAR_H
24 #define MUTT_MYVAR_H
25 
26 #include "mutt/lib.h"
27 
31 struct MyVar
32 {
33  char *name;
34  char *value;
35  TAILQ_ENTRY(MyVar) entries;
36 };
37 TAILQ_HEAD(MyVarList, MyVar);
38 
39 extern struct MyVarList MyVars;
40 
41 void myvar_del(const char *var);
42 const char *myvar_get(const char *var);
43 void myvar_set(const char *var, const char *val);
44 
45 void myvarlist_free(struct MyVarList *list);
46 
47 #endif /* MUTT_MYVAR_H */
MyVar::value
char * value
Value of user variable.
Definition: myvar.h:34
MyVar
A user-set variable.
Definition: myvar.h:31
MyVar::TAILQ_ENTRY
TAILQ_ENTRY(MyVar) entries
Linked list.
myvar_set
void myvar_set(const char *var, const char *val)
Set the value of a "my_" variable.
Definition: myvar.c:91
lib.h
myvar_get
const char * myvar_get(const char *var)
Get the value of a "my_" variable.
Definition: myvar.c:73
myvar_del
void myvar_del(const char *var)
Unset the value of a "my_" variable.
Definition: myvar.c:112
MyVars
struct MyVarList MyVars
List of all the user's custom config variables.
Definition: myvar.c:34
MyVar::name
char * name
Name of user variable.
Definition: myvar.h:33
myvarlist_free
void myvarlist_free(struct MyVarList *list)
Free a List of MyVars.
Definition: myvar.c:131
TAILQ_HEAD
TAILQ_HEAD(MyVarList, MyVar)