Go to the source code of this file.
Data Structures | |
struct | Tag |
LinkedList Tag Element. More... | |
Functions | |
STAILQ_HEAD (TagList, Tag) | |
void | driver_tags_free (struct TagList *list) |
Free tags from a header. More... | |
char * | driver_tags_get (struct TagList *list) |
Get tags. More... | |
char * | driver_tags_get_transformed (struct TagList *list) |
Get transformed tags. More... | |
char * | driver_tags_get_transformed_for (struct TagList *list, const char *name) |
Get transformed tag for a tag name from a header. More... | |
char * | driver_tags_get_with_hidden (struct TagList *list) |
Get tags with hiddens. More... | |
bool | driver_tags_replace (struct TagList *list, char *tags) |
Replace all tags. More... | |
void | driver_tags_add (struct TagList *list, char *tag) |
Add a tag to header. More... | |
Variables | |
struct Slist * | C_HiddenTags |
Config: Tags that shouldn't be displayed on screen. More... | |
struct HashTable * | TagTransforms |
Lookup table of alternative tag names. More... | |
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 driver_tags_free | ( | struct TagList * | list | ) |
char* driver_tags_get | ( | struct TagList * | list | ) |
char* driver_tags_get_transformed | ( | struct TagList * | list | ) |
Get transformed tags.
[in] | list | List of tags |
ptr | String list of tags |
Return a new allocated string containing all tags separated by space with transformation
Definition at line 132 of file tags.c.
char* driver_tags_get_transformed_for | ( | struct TagList * | head, |
const char * | name | ||
) |
Get transformed tag for a tag name from a header.
[in] | head | List of tags |
[in] | name | Tag to transform |
ptr | String tag |
Return a new allocated string containing all tags separated by space even the hiddens.
Definition at line 171 of file tags.c.
char* driver_tags_get_with_hidden | ( | struct TagList * | list | ) |
Get tags with hiddens.
[in] | list | List of tags |
ptr | String list of tags |
Return a new allocated string containing all tags separated by space even the hiddens.
Definition at line 157 of file tags.c.
bool driver_tags_replace | ( | struct TagList * | head, |
char * | tags | ||
) |
Replace all tags.
[in] | head | 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 185 of file tags.c.
void driver_tags_add | ( | struct TagList * | list, |
char * | new_tag | ||
) |
Add a tag to header.
[in] | list | List of tags |
[in] | new_tag | String representing the new tag |
Add a tag to the header tags
Definition at line 82 of file tags.c.
struct Slist* C_HiddenTags |