NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
tags.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_EMAIL_TAGS_H
24 #define MUTT_EMAIL_TAGS_H
25 
26 #include <stdbool.h>
27 #include "mutt/lib.h"
28 
29 extern struct HashTable *TagTransforms;
30 
37 struct Tag
38 {
39  char *name;
40  char *transformed;
41  bool hidden;
42  STAILQ_ENTRY(Tag) entries;
43 };
44 STAILQ_HEAD(TagList, Tag);
45 
46 void driver_tags_free (struct TagList *list);
47 char *driver_tags_get (struct TagList *list);
48 char *driver_tags_get_transformed (struct TagList *list);
49 char *driver_tags_get_transformed_for(struct TagList *list, const char *name);
50 char *driver_tags_get_with_hidden (struct TagList *list);
51 bool driver_tags_replace (struct TagList *list, char *tags);
52 void driver_tags_add (struct TagList *list, char *tag);
53 
54 #endif /* MUTT_EMAIL_TAGS_H */
char * driver_tags_get(struct TagList *list)
Get tags.
Definition: tags.c:145
A Hash Table.
Definition: hash.h:87
STAILQ_HEAD(TagList, Tag)
LinkedList Tag Element.
Definition: tags.h:37
char * name
Tag name.
Definition: tags.h:39
void driver_tags_add(struct TagList *list, char *tag)
Add a tag to header.
Definition: tags.c:81
STAILQ_ENTRY(Tag) entries
Linked list.
bool hidden
Tag should be hidden.
Definition: tags.h:41
char * driver_tags_get_with_hidden(struct TagList *list)
Get tags with hiddens.
Definition: tags.c:158
bool driver_tags_replace(struct TagList *list, char *tags)
Replace all tags.
Definition: tags.c:186
char * driver_tags_get_transformed(struct TagList *list)
Get transformed tags.
Definition: tags.c:133
void driver_tags_free(struct TagList *list)
Free tags from a header.
Definition: tags.c:107
Convenience wrapper for the library headers.
char * transformed
Transformed name.
Definition: tags.h:40
struct HashTable * TagTransforms
Lookup table of alternative tag names.
Definition: tags.c:37
char * driver_tags_get_transformed_for(struct TagList *list, const char *name)
Get transformed tag for a tag name from a header.
Definition: tags.c:172