Commit 563db580 authored by Max Kellermann's avatar Max Kellermann

fs/Charset: add DeinitFSCharset()

parent 125daea1
......@@ -722,6 +722,8 @@ static int mpd_main_after_fork(struct options options)
mapper_finish();
#endif
DeinitFS();
delete instance->partition;
command_finish();
decoder_plugin_deinit_all();
......
......@@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error)
#endif
void
DeinitFSCharset()
{
}
const char *
GetFSCharset()
{
......
......@@ -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.
......
......@@ -61,3 +61,11 @@ ConfigureFS(Error &error)
return true;
#endif
}
void
DeinitFS()
{
#ifdef HAVE_FS_CHARSET
DeinitFSCharset();
#endif
}
......@@ -30,4 +30,7 @@ class Error;
bool
ConfigureFS(Error &error);
void
DeinitFS();
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment