aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-31 22:32:44 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-31 22:32:44 +0000
commit795a1e930b6d3d606546689e991149b9ad583066 (patch)
treebee338e390d2a971f667acba81cadf26d2c2c685 /src/ls.h
parent995a5deb285385417bc7d6ab182313088c62b9ca (diff)
downloadmpd-795a1e930b6d3d606546689e991149b9ad583066.tar.gz
mpd-795a1e930b6d3d606546689e991149b9ad583066.tar.xz
mpd-795a1e930b6d3d606546689e991149b9ad583066.zip
lets cleanup some file type detection and not call stat() so much
git-svn-id: https://svn.musicpd.org/mpd/trunk@575 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.h')
-rw-r--r--src/ls.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/ls.h b/src/ls.h
index f117fa69c..b55bb2b1a 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -26,23 +26,25 @@
int lsPlaylists(FILE * fp, char * utf8path);
-int isMp3(char * utf8file, time_t * mtime);
+int isFile(char * utf8file, time_t * mtime);
-int isAac(char * utf8file, time_t * mtime);
+int isDir(char * utf8name, time_t * mtime);
-int isMp4(char * utf8file, time_t * mtime);
+int isPlaylist(char * utf8file);
-int isOgg(char * utf8file, time_t * mtime);
+int isMusic(char * utf8file, time_t * mtime);
-int isFlac(char * utf8file, time_t * mtime);
+int hasWaveSuffix(char * utf8file);
-int isWave(char * utf8file, time_t * mtime);
+int hasMp3Suffix(char * utf8file);
-int isMusic(char * utf8file, time_t * mtime);
+int hasAacSuffix(char * utf8file);
-int isDir(char * utf8name, time_t * mtime);
+int hasMp4Suffix(char * utf8file);
-int isPlaylist(char * utf8file);
+int hasOggSuffix(char * utf8file);
+
+int hasFlacSuffix(char * utf8file);
char * dupAndStripPlaylistSuffix(char * file);