/*
 * SPDX-FileCopyrightText: 2021-2026 Sébastien Helleu <flashcode@flashtux.org>
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#ifndef WEECHAT_PLUGIN_IRC_TAG_H
#define WEECHAT_PLUGIN_IRC_TAG_H

extern char *irc_tag_escape_value (const char *string);
extern char *irc_tag_unescape_value (const char *string);
extern char *irc_tag_modifier_cb (const void *pointer,
                                  void *data,
                                  const char *modifier,
                                  const char *modifier_data,
                                  const char *string);
extern int irc_tag_parse (const char *tags,
                          struct t_hashtable *hashtable,
                          const char *prefix_key);
extern char *irc_tag_add_tags_to_message (const char *message,
                                          struct t_hashtable *tags);

#endif /* WEECHAT_PLUGIN_IRC_TAG_H */
