diff options
author | Max Kellermann <max@duempel.org> | 2014-11-29 22:33:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-29 23:36:44 +0100 |
commit | fd2c6b8a4b059bd810ca8511fa8f66001843284c (patch) | |
tree | 3244bbfa951be5bb79094067c0f816e6c84f7f12 /src/fs/Charset.hxx | |
parent | 5b1db917bc63fcacfc503ebc02251a2905bc2f8f (diff) | |
download | mpd-fd2c6b8a4b059bd810ca8511fa8f66001843284c.tar.gz mpd-fd2c6b8a4b059bd810ca8511fa8f66001843284c.tar.xz mpd-fd2c6b8a4b059bd810ca8511fa8f66001843284c.zip |
fs/Charset: return Error on SetFSCharset() failure
Don't abort the process, let the caller decide instead.
Diffstat (limited to '')
-rw-r--r-- | src/fs/Charset.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/Charset.hxx b/src/fs/Charset.hxx index 0a71d7c58..5a24e8d4b 100644 --- a/src/fs/Charset.hxx +++ b/src/fs/Charset.hxx @@ -25,6 +25,8 @@ #include <string> +class Error; + /** * Gets file system character set name. */ @@ -32,8 +34,8 @@ gcc_const const char * GetFSCharset(); -void -SetFSCharset(const char *charset); +bool +SetFSCharset(const char *charset, Error &error); /** * Convert the path to UTF-8. |