diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-08-06 22:34:12 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-08-06 22:48:47 +0200 |
commit | bc27f946c27e33933a3a696cade78a04902c8dce (patch) | |
tree | 0e4166ba66072d407d0b972842b08cb7fea6f50b /mpvcore/charset_conv.h | |
parent | d40a91e804e19fb32430c5a80a984f5148324f52 (diff) | |
download | mpv-bc27f946c27e33933a3a696cade78a04902c8dce.tar.bz2 mpv-bc27f946c27e33933a3a696cade78a04902c8dce.tar.xz |
core: move contents to mpvcore (1/2)
core is used in many unix systems for core dumps. For that reason some tools
work under the assumption that the file is indeed a core dump (for example
autoconf does this).
This commit just renames the files. The following one will change all the
includes to fix compilation. This is done this way because git has a easier
time tracing file changes if there is a pure rename commit.
Diffstat (limited to 'mpvcore/charset_conv.h')
-rw-r--r-- | mpvcore/charset_conv.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mpvcore/charset_conv.h b/mpvcore/charset_conv.h new file mode 100644 index 0000000000..00a2658da3 --- /dev/null +++ b/mpvcore/charset_conv.h @@ -0,0 +1,17 @@ +#ifndef MP_CHARSET_CONV_H +#define MP_CHARSET_CONV_H + +#include <stdbool.h> +#include "core/bstr.h" + +enum { + MP_ICONV_VERBOSE = 1, // print errors instead of failing silently + MP_ICONV_ALLOW_CUTOFF = 2, // allow partial input data +}; + +bool mp_charset_requires_guess(const char *user_cp); +const char *mp_charset_guess(bstr buf, const char *user_cp); +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); + +#endif |