Driver based email tags. More...
Include dependency graph for tags.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | Tag |
| LinkedList Tag Element. More... | |
Functions | |
| STAILQ_HEAD (TagList, Tag) | |
| void | tag_free (struct Tag **ptr) |
| Free a Tag. | |
| struct Tag * | tag_new (void) |
| Create a new Tag. | |
| void | driver_tags_free (struct TagList *tl) |
| Free tags from a header. | |
| void | driver_tags_get (struct TagList *tl, struct Buffer *tags) |
| Get tags all tags separated by space. | |
| void | driver_tags_get_transformed (struct TagList *tl, struct Buffer *tags) |
| Get transformed tags separated by space. | |
| void | driver_tags_get_transformed_for (struct TagList *tl, const char *name, struct Buffer *tags) |
| Get transformed tags for a tag name separated by space. | |
| void | driver_tags_get_with_hidden (struct TagList *tl, struct Buffer *tags) |
| Get all tags, also hidden ones, separated by space. | |
| bool | driver_tags_replace (struct TagList *tl, const char *tags) |
| Replace all tags. | |
| void | driver_tags_add (struct TagList *tl, char *tag) |
| Add a tag to header. | |
| void | driver_tags_init (void) |
| Initialize structures used for tags. | |
| void | driver_tags_cleanup (void) |
| Deinitialize structures used for tags. | |
Variables | |
| struct HashTable * | TagTransforms |
| Hash Table: "inbox" -> "i" - Alternative tag names. | |
| struct HashTable * | TagFormats |
| Hash Table: "inbox" -> "GI" - Tag format strings. | |
Driver based email tags.
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 tags.h.
| STAILQ_HEAD | ( | TagList | , |
| Tag | ) |
| void tag_free | ( | struct Tag ** | ptr | ) |
| struct Tag * tag_new | ( | void | ) |
| void driver_tags_free | ( | struct TagList * | tl | ) |
Free tags from a header.
| [in] | tl | List of tags |
Free the whole tags structure
Definition at line 131 of file tags.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void driver_tags_get | ( | struct TagList * | tl, |
| struct Buffer * | tags ) |
Get tags all tags separated by space.
| [in] | tl | List of tags |
| [out] | tags | String list of tags |
Definition at line 164 of file tags.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void driver_tags_get_transformed | ( | struct TagList * | tl, |
| struct Buffer * | tags ) |
| void driver_tags_get_transformed_for | ( | struct TagList * | tl, |
| const char * | name, | ||
| struct Buffer * | tags ) |
| void driver_tags_get_with_hidden | ( | struct TagList * | tl, |
| struct Buffer * | tags ) |
| bool driver_tags_replace | ( | struct TagList * | tl, |
| const char * | tags ) |
Replace all tags.
| [in] | tl | List of tags |
| [in] | tags | string of all tags separated by space |
| false | No changes are made |
| true | Tags are updated |
Free current tags structures and replace it by new tags
Definition at line 201 of file tags.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void driver_tags_add | ( | struct TagList * | tl, |
| char * | new_tag ) |
Add a tag to header.
| [in] | tl | List of tags |
| [in] | new_tag | String representing the new tag |
Add a tag to the header tags
Definition at line 107 of file tags.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void driver_tags_init | ( | void | ) |
Initialize structures used for tags.
Definition at line 233 of file tags.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void driver_tags_cleanup | ( | void | ) |
|
extern |