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
6b9ffcff
Commit
6b9ffcff
authored
Oct 09, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database: renamed get_get_song() to db_get_song()
Search'n'replace typo..
parent
4409c34a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
database.c
src/database.c
+2
-2
database.h
src/database.h
+1
-1
playlist.c
src/playlist.c
+3
-3
storedPlaylist.c
src/storedPlaylist.c
+1
-1
update.c
src/update.c
+1
-1
No files found.
src/database.c
View file @
6b9ffcff
...
...
@@ -70,7 +70,7 @@ db_get_directory(const char *name)
}
struct
song
*
get
_get_song
(
const
char
*
file
)
db
_get_song
(
const
char
*
file
)
{
struct
song
*
song
=
NULL
;
struct
directory
*
directory
;
...
...
@@ -108,7 +108,7 @@ db_walk(const char *name,
if
((
directory
=
db_get_directory
(
name
))
==
NULL
)
{
struct
song
*
song
;
if
((
song
=
get
_get_song
(
name
))
&&
forEachSong
)
{
if
((
song
=
db
_get_song
(
name
))
&&
forEachSong
)
{
return
forEachSong
(
song
,
data
);
}
return
-
1
;
...
...
src/database.h
View file @
6b9ffcff
...
...
@@ -37,7 +37,7 @@ struct directory *
db_get_directory
(
const
char
*
name
);
struct
song
*
get
_get_song
(
const
char
*
file
);
db
_get_song
(
const
char
*
file
);
int
db_walk
(
const
char
*
name
,
int
(
*
forEachSong
)(
struct
song
*
,
void
*
),
...
...
src/playlist.c
View file @
6b9ffcff
...
...
@@ -559,7 +559,7 @@ enum playlist_result addToPlaylist(const char *url, int *added_id)
DEBUG
(
"add to playlist: %s
\n
"
,
url
);
if
((
song
=
get
_get_song
(
url
)))
{
if
((
song
=
db
_get_song
(
url
)))
{
}
else
if
(
!
(
isValidRemoteUtf8Url
(
url
)
&&
(
song
=
song_remote_new
(
url
))))
{
return
PLAYLIST_RESULT_NO_SUCH_SONG
;
...
...
@@ -574,7 +574,7 @@ int addToStoredPlaylist(const char *url, const char *utf8file)
DEBUG
(
"add to stored playlist: %s
\n
"
,
url
);
song
=
get
_get_song
(
url
);
song
=
db
_get_song
(
url
);
if
(
song
)
return
appendSongToStoredPlaylistByPath
(
utf8file
,
song
);
...
...
@@ -1360,7 +1360,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail)
int
wrote
=
0
;
if
(
detail
)
{
struct
song
*
song
=
get
_get_song
(
temp
);
struct
song
*
song
=
db
_get_song
(
temp
);
if
(
song
)
{
song_print_info
(
client
,
song
);
wrote
=
1
;
...
...
src/storedPlaylist.c
View file @
6b9ffcff
...
...
@@ -116,7 +116,7 @@ List *loadStoredPlaylist(const char *utf8path)
!
strncmp
(
s
,
musicDir
,
musicDir_len
))
memmove
(
s
,
s
+
musicDir_len
+
1
,
strlen
(
s
+
musicDir_len
+
1
)
+
1
);
if
((
song
=
get
_get_song
(
s
)))
{
if
((
song
=
db
_get_song
(
s
)))
{
song_get_url
(
song
,
path_max_tmp
);
insertInListWithoutKey
(
list
,
xstrdup
(
path_max_tmp
));
}
else
if
(
isValidRemoteUtf8Url
(
s
))
...
...
src/update.c
View file @
6b9ffcff
...
...
@@ -404,7 +404,7 @@ static enum update_return updatePath(const char *path)
ret
=
UPDATE_RETURN_UPDATED
;
/* don't return, path maybe a song now */
}
}
else
if
((
song
=
get
_get_song
(
path
)))
{
}
else
if
((
song
=
db
_get_song
(
path
)))
{
parentDirectory
=
song
->
parent
;
if
(
!
parentDirectory
->
stat
&&
statDirectory
(
parentDirectory
)
<
0
)
...
...
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