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
d2606baa
Commit
d2606baa
authored
Oct 22, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stored_playlist: de-CamelCase moved function
Rename addToStoredPlaylist() to spl_append_uri(), and remove the clearStoredPlaylist() macro.
parent
1da921f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
command.c
src/command.c
+2
-2
stored_playlist.c
src/stored_playlist.c
+2
-1
stored_playlist.h
src/stored_playlist.h
+2
-3
No files found.
src/command.c
View file @
d2606baa
...
...
@@ -1115,7 +1115,7 @@ static int handlePlaylistClear(struct client *client,
{
enum
playlist_result
result
;
result
=
clearStoredPlaylist
(
argv
[
1
]);
result
=
spl_clear
(
argv
[
1
]);
return
print_playlist_result
(
client
,
result
);
}
...
...
@@ -1127,7 +1127,7 @@ static int handlePlaylistAdd(struct client *client,
enum
playlist_result
result
;
if
(
isRemoteUrl
(
path
))
result
=
addToStoredPlaylist
(
path
,
playlist
);
result
=
spl_append_uri
(
path
,
playlist
);
else
result
=
addAllInToStoredPlaylist
(
path
,
playlist
);
...
...
src/stored_playlist.c
View file @
d2606baa
...
...
@@ -317,7 +317,8 @@ spl_append_song(const char *utf8path, struct song *song)
return
PLAYLIST_RESULT_SUCCESS
;
}
int
addToStoredPlaylist
(
const
char
*
url
,
const
char
*
utf8file
)
int
spl_append_uri
(
const
char
*
url
,
const
char
*
utf8file
)
{
struct
song
*
song
;
...
...
src/stored_playlist.h
View file @
d2606baa
...
...
@@ -33,15 +33,14 @@ spl_move_index(const char *utf8path, int src, int dest);
enum
playlist_result
spl_clear
(
const
char
*
utf8path
);
#define clearStoredPlaylist spl_clear
enum
playlist_result
spl_remove_index
(
const
char
*
utf8path
,
int
pos
);
enum
playlist_result
spl_append_song
(
const
char
*
utf8path
,
struct
song
*
song
);
int
addToStoredPlaylist
(
const
char
*
file
,
const
char
*
utf8file
);
int
spl_append_uri
(
const
char
*
file
,
const
char
*
utf8file
);
enum
playlist_result
spl_rename
(
const
char
*
utf8from
,
const
char
*
utf8to
);
...
...
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