NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
tag.h
Go to the documentation of this file.
1
24#ifndef MUTT_NOTMUCH_TAG_H
25#define MUTT_NOTMUCH_TAG_H
26
27#include "mutt/lib.h"
28
29ARRAY_HEAD(TagArray, char *);
30
37struct NmTags
38{
39 struct TagArray tags;
40 char *tag_str;
41};
42
43void nm_tag_array_free (struct NmTags *tags);
44struct NmTags nm_tag_str_to_tags(const char *tag_string);
45
46#endif /* MUTT_NOTMUCH_TAG_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
Convenience wrapper for the library headers.
Array of Notmuch tags.
Definition: tag.h:38
struct TagArray tags
Tags.
Definition: tag.h:39
char * tag_str
Source string.
Definition: tag.h:40
struct NmTags nm_tag_str_to_tags(const char *tag_string)
Converts a comma and/or space-delimited string of tags into an array.
Definition: tag.c:51
void nm_tag_array_free(struct NmTags *tags)
Free all memory of a NmTags.
Definition: tag.c:40