diff options
Diffstat (limited to 'misc/charset_conv.h')
-rw-r--r-- | misc/charset_conv.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/misc/charset_conv.h b/misc/charset_conv.h index c216ede2be..e9efa48444 100644 --- a/misc/charset_conv.h +++ b/misc/charset_conv.h @@ -4,6 +4,8 @@ #include <stdbool.h> #include "bstr/bstr.h" +struct mp_log; + enum { MP_ICONV_VERBOSE = 1, // print errors instead of failing silently MP_ICONV_ALLOW_CUTOFF = 2, // allow partial input data @@ -12,8 +14,10 @@ enum { bool mp_charset_is_utf8(const char *user_cp); bool mp_charset_requires_guess(const char *user_cp); -const char *mp_charset_guess(bstr buf, const char *user_cp, int flags); -bstr mp_charset_guess_and_conv_to_utf8(bstr buf, const char *user_cp, int flags); -bstr mp_iconv_to_utf8(bstr buf, const char *cp, int flags); +const char *mp_charset_guess(struct mp_log *log, bstr buf, const char *user_cp, + int flags); +bstr mp_charset_guess_and_conv_to_utf8(struct mp_log *log, bstr buf, + const char *user_cp, int flags); +bstr mp_iconv_to_utf8(struct mp_log *log, bstr buf, const char *cp, int flags); #endif |