Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
563db580
Commit
563db580
authored
Nov 29, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Charset: add DeinitFSCharset()
parent
125daea1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
0 deletions
+21
-0
Main.cxx
src/Main.cxx
+2
-0
Charset.cxx
src/fs/Charset.cxx
+5
-0
Charset.hxx
src/fs/Charset.hxx
+3
-0
Config.cxx
src/fs/Config.cxx
+8
-0
Config.hxx
src/fs/Config.hxx
+3
-0
No files found.
src/Main.cxx
View file @
563db580
...
...
@@ -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
();
...
...
src/fs/Charset.cxx
View file @
563db580
...
...
@@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error)
#endif
void
DeinitFSCharset
()
{
}
const
char
*
GetFSCharset
()
{
...
...
src/fs/Charset.hxx
View file @
563db580
...
...
@@ -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.
...
...
src/fs/Config.cxx
View file @
563db580
...
...
@@ -61,3 +61,11 @@ ConfigureFS(Error &error)
return
true
;
#endif
}
void
DeinitFS
()
{
#ifdef HAVE_FS_CHARSET
DeinitFSCharset
();
#endif
}
src/fs/Config.hxx
View file @
563db580
...
...
@@ -30,4 +30,7 @@ class Error;
bool
ConfigureFS
(
Error
&
error
);
void
DeinitFS
();
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment