summaryrefslogtreecommitdiff
path: root/src/plugins/charset/charset.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-12 07:38:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:13:34 +0100
commit202b4d82c0b233a891e9e1a303833c15ae86e1d4 (patch)
tree74d6313c5ae93957adba3cd4f7d4f615d533d0c3 /src/plugins/charset/charset.h
parent9174ec979b4cdd7d06f973c096636a833cbb0188 (diff)
downloadweechat-202b4d82c0b233a891e9e1a303833c15ae86e1d4.zip
plugins: set priority in calls to weechat_config_new (issue #1872)
Diffstat (limited to 'src/plugins/charset/charset.h')
-rw-r--r--src/plugins/charset/charset.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/charset/charset.h b/src/plugins/charset/charset.h
new file mode 100644
index 000000000..f36d4e640
--- /dev/null
+++ b/src/plugins/charset/charset.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
+ *
+ * This file is part of WeeChat, the extensible chat client.
+ *
+ * WeeChat is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * WeeChat 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 WeeChat. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#ifndef WEECHAT_PLUGIN_CHARSET_H
+#define WEECHAT_PLUGIN_CHARSET_H
+
+#define weechat_plugin weechat_charset_plugin
+#define CHARSET_PLUGIN_NAME "charset"
+#define CHARSET_PLUGIN_PRIORITY 16000
+
+#define CHARSET_CONFIG_NAME "charset"
+#define CHARSET_CONFIG_PRIO_NAME (TO_STR(CHARSET_PLUGIN_PRIORITY) "|" CHARSET_CONFIG_NAME)
+
+extern struct t_weechat_plugin *weechat_charset_plugin;
+
+#endif /* WEECHAT_PLUGIN_CHARSET_H */