NeoMutt  2019-12-07
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/mutt.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 */
TAILQ_HEAD(MyVarList, MyVar)
void myvar_set(const char *var, const char *val)
Set the value of a "my_" variable.
Definition: myvar.c:91
void myvarlist_free(struct MyVarList *list)
Free a List of MyVars.
Definition: myvar.c:131
char * name
Name of user variable.
Definition: myvar.h:33
void myvar_del(const char *var)
Unset the value of a "my_" variable.
Definition: myvar.c:112
struct MyVarList MyVars
List of all the user's custom config variables.
Definition: myvar.c:34
A user-set variable.
Definition: myvar.h:31
char * value
Value of user variable.
Definition: myvar.h:34
TAILQ_ENTRY(MyVar) entries
Linked list.
const char * myvar_get(const char *var)
Get the value of a "my_" variable.
Definition: myvar.c:73