diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
commit | 14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch) | |
tree | 7b1a3e41b75490fac4d45722c90a1847543c6796 /src/libmime/mime_encoding.h | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libmime/mime_encoding.h')
-rw-r--r-- | src/libmime/mime_encoding.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libmime/mime_encoding.h b/src/libmime/mime_encoding.h index 88e25efa6..f03ac36f4 100644 --- a/src/libmime/mime_encoding.h +++ b/src/libmime/mime_encoding.h @@ -36,8 +36,8 @@ struct rspamd_charset_converter; * @param in * @return */ -const gchar *rspamd_mime_detect_charset(const rspamd_ftok_t *in, - rspamd_mempool_t *pool); +const char *rspamd_mime_detect_charset(const rspamd_ftok_t *in, + rspamd_mempool_t *pool); /** * Convert text chunk to utf-8. Input encoding is substituted using @@ -52,9 +52,9 @@ const gchar *rspamd_mime_detect_charset(const rspamd_ftok_t *in, * @param err * @return */ -gchar *rspamd_mime_text_to_utf8(rspamd_mempool_t *pool, - gchar *input, gsize len, const gchar *in_enc, - gsize *olen, GError **err); +char *rspamd_mime_text_to_utf8(rspamd_mempool_t *pool, + char *input, gsize len, const char *in_enc, + gsize *olen, GError **err); /** * Converts data from `in` to `out`, @@ -70,7 +70,7 @@ gchar *rspamd_mime_text_to_utf8(rspamd_mempool_t *pool, gboolean rspamd_mime_to_utf8_byte_array(GByteArray *in, GByteArray *out, rspamd_mempool_t *pool, - const gchar *enc); + const char *enc); /** * Maybe convert part to utf-8 @@ -89,7 +89,7 @@ void rspamd_mime_text_part_maybe_convert(struct rspamd_task *task, * @return */ gboolean rspamd_mime_charset_utf_check(rspamd_ftok_t *charset, - gchar *in, gsize len, + char *in, gsize len, gboolean content_check); /** @@ -98,7 +98,7 @@ gboolean rspamd_mime_charset_utf_check(rspamd_ftok_t *charset, * @param in * @param len */ -void rspamd_mime_charset_utf_enforce(gchar *in, gsize len); +void rspamd_mime_charset_utf_enforce(char *in, gsize len); /** * Gets cached converter @@ -109,7 +109,7 @@ void rspamd_mime_charset_utf_enforce(gchar *in, gsize len); * @return converter */ struct rspamd_charset_converter *rspamd_mime_get_converter_cached( - const gchar *enc, + const char *enc, rspamd_mempool_t *pool, gboolean is_canon, UErrorCode *err); @@ -138,7 +138,7 @@ rspamd_converter_to_uchars(struct rspamd_charset_converter *cnv, * @param inlen * @return detected charset name or NULL */ -const char *rspamd_mime_charset_find_by_content(const gchar *in, gsize inlen, +const char *rspamd_mime_charset_find_by_content(const char *in, gsize inlen, bool check_utf8); #ifdef __cplusplus |