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
323e8648
Commit
323e8648
authored
Sep 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
song: removed type SongList
SongList has been superseded by struct songvec.
parent
e2a12dee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
46 deletions
+2
-46
directory.h
src/directory.h
+1
-0
ls.c
src/ls.c
+1
-0
song.c
src/song.c
+0
-36
song.h
src/song.h
+0
-10
No files found.
src/directory.h
View file @
323e8648
...
...
@@ -21,6 +21,7 @@
#include "song.h"
#include "songvec.h"
#include "list.h"
typedef
List
DirectoryList
;
...
...
src/ls.c
View file @
323e8648
...
...
@@ -23,6 +23,7 @@
#include "log.h"
#include "utf8.h"
#include "utils.h"
#include "list.h"
#include "os_compat.h"
static
const
char
*
remoteUrlPrefixes
[]
=
{
...
...
src/song.c
View file @
323e8648
...
...
@@ -92,42 +92,6 @@ void freeJustSong(Song * song)
free
(
song
);
}
SongList
*
newSongList
(
void
)
{
return
makeList
((
ListFreeDataFunc
*
)
freeSong
,
0
);
}
Song
*
addSongToList
(
SongList
*
list
,
const
char
*
url
,
const
char
*
utf8path
,
int
songType
,
Directory
*
parentDirectory
)
{
Song
*
song
=
NULL
;
switch
(
songType
)
{
case
SONG_TYPE_FILE
:
if
(
isMusic
(
utf8path
,
NULL
,
0
))
{
song
=
newSong
(
url
,
songType
,
parentDirectory
);
}
break
;
case
SONG_TYPE_URL
:
song
=
newSong
(
url
,
songType
,
parentDirectory
);
break
;
default:
DEBUG
(
"addSongToList: Trying to add an invalid song type
\n
"
);
}
if
(
song
==
NULL
)
return
NULL
;
insertInList
(
list
,
song
->
url
,
(
void
*
)
song
);
return
song
;
}
void
freeSongList
(
SongList
*
list
)
{
freeList
(
list
);
}
int
updateSongInfo
(
Song
*
song
)
{
if
(
song
->
type
==
SONG_TYPE_FILE
)
{
...
...
src/song.h
View file @
323e8648
...
...
@@ -19,7 +19,6 @@
#ifndef SONG_H
#define SONG_H
#include "list.h"
#include "os_compat.h"
#include "mpd_types.h"
...
...
@@ -42,8 +41,6 @@ typedef struct _Song {
time_t
mtime
;
}
Song
;
typedef
List
SongList
;
Song
*
newNullSong
(
void
);
Song
*
newSong
(
const
char
*
url
,
int
songType
,
struct
_Directory
*
parentDir
);
...
...
@@ -52,13 +49,6 @@ void freeSong(Song *);
void
freeJustSong
(
Song
*
);
SongList
*
newSongList
(
void
);
void
freeSongList
(
SongList
*
list
);
Song
*
addSongToList
(
SongList
*
list
,
const
char
*
url
,
const
char
*
utf8path
,
int
songType
,
struct
_Directory
*
parentDir
);
int
updateSongInfo
(
Song
*
song
);
/*
...
...
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