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
d0c08c52
Commit
d0c08c52
authored
Jul 14, 2006
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEANUP] cleanup whitespace -> tabs
static where it makes sense git-svn-id:
https://svn.musicpd.org/mpd/trunk@4344
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
fd2f9b8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
playlist.c
src/playlist.c
+6
-9
playlist.h
src/playlist.h
+0
-2
No files found.
src/playlist.c
View file @
d0c08c52
...
@@ -602,7 +602,7 @@ void lockPlaylistInteraction() {
...
@@ -602,7 +602,7 @@ void lockPlaylistInteraction() {
}
}
}
}
void
unlockPlaylistInteraction
()
{
static
void
unlockPlaylistInteraction
()
{
playerQueueUnlock
();
playerQueueUnlock
();
}
}
...
@@ -627,11 +627,8 @@ int addToPlaylist(FILE * fp, char * url, int printId) {
...
@@ -627,11 +627,8 @@ int addToPlaylist(FILE * fp, char * url, int printId) {
if
((
song
=
getSongFromDB
(
url
)))
{
if
((
song
=
getSongFromDB
(
url
)))
{
}
}
else
if
(
isValidRemoteUtf8Url
(
url
)
&&
else
if
(
!
(
isValidRemoteUtf8Url
(
url
)
&&
(
song
=
newSong
(
url
,
SONG_TYPE_URL
,
NULL
)))
(
song
=
newSong
(
url
,
SONG_TYPE_URL
,
NULL
))))
{
{
}
else
{
commandError
(
fp
,
ACK_ERROR_NO_EXIST
,
commandError
(
fp
,
ACK_ERROR_NO_EXIST
,
"
\"
%s
\"
is not in the music db or is "
"
\"
%s
\"
is not in the music db or is "
"not a valid url"
,
url
);
"not a valid url"
,
url
);
...
@@ -1128,7 +1125,7 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
...
@@ -1128,7 +1125,7 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
return
moveSongInPlaylist
(
fp
,
playlist
.
idToPosition
[
id1
],
to
);
return
moveSongInPlaylist
(
fp
,
playlist
.
idToPosition
[
id1
],
to
);
}
}
void
orderPlaylist
()
{
static
void
orderPlaylist
()
{
int
i
;
int
i
;
if
(
playlist
.
current
>=
0
&&
playlist
.
current
<
playlist
.
length
)
{
if
(
playlist
.
current
>=
0
&&
playlist
.
current
<
playlist
.
length
)
{
...
@@ -1149,13 +1146,13 @@ void orderPlaylist() {
...
@@ -1149,13 +1146,13 @@ void orderPlaylist() {
}
}
void
swapOrder
(
int
a
,
int
b
)
{
static
void
swapOrder
(
int
a
,
int
b
)
{
int
bak
=
playlist
.
order
[
a
];
int
bak
=
playlist
.
order
[
a
];
playlist
.
order
[
a
]
=
playlist
.
order
[
b
];
playlist
.
order
[
a
]
=
playlist
.
order
[
b
];
playlist
.
order
[
b
]
=
bak
;
playlist
.
order
[
b
]
=
bak
;
}
}
void
randomizeOrder
(
int
start
,
int
end
)
{
static
void
randomizeOrder
(
int
start
,
int
end
)
{
int
i
;
int
i
;
int
ri
;
int
ri
;
...
...
src/playlist.h
View file @
d0c08c52
...
@@ -34,8 +34,6 @@ void initPlaylist();
...
@@ -34,8 +34,6 @@ void initPlaylist();
void
finishPlaylist
();
void
finishPlaylist
();
void
initPlaylist
();
void
readPlaylistState
();
void
readPlaylistState
();
void
savePlaylistState
();
void
savePlaylistState
();
...
...
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