aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-29 23:35:18 +0100
committerMax Kellermann <max@duempel.org>2014-11-29 23:47:48 +0100
commit563db580aea58769b9410b687dcfe038dcefce60 (patch)
tree41e0880d2cdb4a4d76b22a41c9b848f08d6e90b2 /src/fs
parent125daea16a92af46b0e68c9583511a5f25f4d850 (diff)
downloadmpd-563db580aea58769b9410b687dcfe038dcefce60.tar.gz
mpd-563db580aea58769b9410b687dcfe038dcefce60.tar.xz
mpd-563db580aea58769b9410b687dcfe038dcefce60.zip
fs/Charset: add DeinitFSCharset()
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/Charset.cxx5
-rw-r--r--src/fs/Charset.hxx3
-rw-r--r--src/fs/Config.cxx8
-rw-r--r--src/fs/Config.hxx3
4 files changed, 19 insertions, 0 deletions
diff --git a/src/fs/Charset.cxx b/src/fs/Charset.cxx
index 9471d97f8..065ba9a12 100644
--- a/src/fs/Charset.cxx
+++ b/src/fs/Charset.cxx
@@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error)
#endif
+void
+DeinitFSCharset()
+{
+}
+
const char *
GetFSCharset()
{
diff --git a/src/fs/Charset.hxx b/src/fs/Charset.hxx
index 102fa2536..7a5193576 100644
--- a/src/fs/Charset.hxx
+++ b/src/fs/Charset.hxx
@@ -41,6 +41,9 @@ GetFSCharset();
bool
SetFSCharset(const char *charset, Error &error);
+void
+DeinitFSCharset();
+
/**
* Convert the path to UTF-8.
* Returns empty string on error.
diff --git a/src/fs/Config.cxx b/src/fs/Config.cxx
index 972365289..cb7e86e09 100644
--- a/src/fs/Config.cxx
+++ b/src/fs/Config.cxx
@@ -61,3 +61,11 @@ ConfigureFS(Error &error)
return true;
#endif
}
+
+void
+DeinitFS()
+{
+#ifdef HAVE_FS_CHARSET
+ DeinitFSCharset();
+#endif
+}
diff --git a/src/fs/Config.hxx b/src/fs/Config.hxx
index d2cde4a66..403c07685 100644
--- a/src/fs/Config.hxx
+++ b/src/fs/Config.hxx
@@ -30,4 +30,7 @@ class Error;
bool
ConfigureFS(Error &error);
+void
+DeinitFS();
+
#endif