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
98f3135a
Commit
98f3135a
authored
Mar 24, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistFile: export spl_map_to_fs() and TranslatePlaylistError()
parent
8c9c3a91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
PlaylistFile.cxx
src/PlaylistFile.cxx
+2
-2
PlaylistFile.hxx
src/PlaylistFile.hxx
+7
-0
No files found.
src/PlaylistFile.cxx
View file @
98f3135a
...
...
@@ -109,7 +109,7 @@ spl_check_name(const char *name_utf8, Error &error)
return
true
;
}
static
AllocatedPath
AllocatedPath
spl_map_to_fs
(
const
char
*
name_utf8
,
Error
&
error
)
{
if
(
spl_map
(
error
).
IsNull
()
||
!
spl_check_name
(
name_utf8
,
error
))
...
...
@@ -136,7 +136,7 @@ IsNotFoundError(const Error &error)
#endif
}
static
void
void
TranslatePlaylistError
(
Error
&
error
)
{
if
(
IsNotFoundError
(
error
))
{
...
...
src/PlaylistFile.hxx
View file @
98f3135a
...
...
@@ -27,6 +27,7 @@ class DetachedSong;
class
SongLoader
;
class
PlaylistVector
;
class
Error
;
class
AllocatedPath
;
typedef
std
::
vector
<
std
::
string
>
PlaylistFileContents
;
...
...
@@ -45,6 +46,12 @@ spl_global_init();
bool
spl_valid_name
(
const
char
*
name_utf8
);
AllocatedPath
spl_map_to_fs
(
const
char
*
name_utf8
,
Error
&
error
);
void
TranslatePlaylistError
(
Error
&
error
);
/**
* Returns a list of stored_playlist_info struct pointers. Returns
* nullptr if an error occurred.
...
...
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