diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-01 10:09:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-01 10:09:36 +0000 |
commit | 1b4de32706f6c43c4833146a98b0689cbe624fe6 (patch) | |
tree | 7a63f6c2036c4ebaac076fdb9126bafcd04e27d3 /src/storedPlaylist.h | |
parent | 09936358fa8098444019fc2a470b1685af1a19de (diff) | |
download | mpd-1b4de32706f6c43c4833146a98b0689cbe624fe6.tar.gz mpd-1b4de32706f6c43c4833146a98b0689cbe624fe6.tar.xz mpd-1b4de32706f6c43c4833146a98b0689cbe624fe6.zip |
storedPlaylist: remove the needless StoredPlaylist struct and just use List
Abstractions should reduce the amount of code and make things
easier to follow. The StoredPlaylist struct did not do that, so
get rid of it and just use our standard linked list
implementation instead.
diffstat agrees with me that the abstraction is pointless:
3 files changed, 60 insertions(+), 90 deletions(-)
git-svn-id: https://svn.musicpd.org/mpd/trunk@7120 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/storedPlaylist.h')
-rw-r--r-- | src/storedPlaylist.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/storedPlaylist.h b/src/storedPlaylist.h index 698e5bb2d..9b50ddc2e 100644 --- a/src/storedPlaylist.h +++ b/src/storedPlaylist.h @@ -24,14 +24,7 @@ #include "playlist.h" #include "path.h" -typedef struct _storedPlaylist { - List *list; - char fs_path[MPD_PATH_MAX]; - int fd; -} StoredPlaylist; - -int loadStoredPlaylist(int fd, StoredPlaylist *sp, const char *utf8path); -void freeStoredPlaylist(StoredPlaylist *sp); +List *loadStoredPlaylist(int fd, const char *utf8path); int moveSongInStoredPlaylistByPath(int fd, const char *utf8path, int src, int dest); int removeAllFromStoredPlaylistByPath(int fd, const char *utf8path); |