summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-10-31 19:59:50 +0000
committerphintuka <phintuka>2009-10-31 19:59:50 +0000
commit75977419bf46beff6a89361aafa434f4363fd57f (patch)
treeb95b1eb3f3892b50777d4196336c5cafacd51004
parentc1386165761c589a8a162be652e4564d8adff62b (diff)
downloadxineliboutput-75977419bf46beff6a89361aafa434f4363fd57f.tar.gz
xineliboutput-75977419bf46beff6a89361aafa434f4363fd57f.tar.bz2
Made config_t::Is???() functions static
-rw-r--r--config.h16
-rw-r--r--tools/playlist.c6
-rw-r--r--tools/playlist.h4
3 files changed, 13 insertions, 13 deletions
diff --git a/config.h b/config.h
index 5c636d87..aed4d55a 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h,v 1.66 2009-10-25 13:02:33 phintuka Exp $
+ * $Id: config.h,v 1.67 2009-10-31 19:59:50 phintuka Exp $
*
*/
@@ -418,13 +418,13 @@ class config_t {
bool SetupParse(const char *Name, const char *Value);
bool ProcessArgs(int argc, char *argv[]);
- bool IsImageFile(const char *);
- bool IsAudioFile(const char *);
- bool IsVideoFile(const char *);
- bool IsPlaylistFile(const char *);
- bool IsDvdFolder(const char *);
- bool IsBluRayFolder(const char *);
- bool IsDvdImage(const char *);
+ static bool IsImageFile(const char *);
+ static bool IsAudioFile(const char *);
+ static bool IsVideoFile(const char *);
+ static bool IsPlaylistFile(const char *);
+ static bool IsDvdFolder(const char *);
+ static bool IsBluRayFolder(const char *);
+ static bool IsDvdImage(const char *);
cString AutocropOptions(void);
cString SwScaleOptions(void);
diff --git a/tools/playlist.c b/tools/playlist.c
index e227b9c9..d025c01b 100644
--- a/tools/playlist.c
+++ b/tools/playlist.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: playlist.c,v 1.23 2009-06-02 08:36:16 phintuka Exp $
+ * $Id: playlist.c,v 1.24 2009-10-31 19:59:50 phintuka Exp $
*
*/
@@ -634,7 +634,7 @@ static FILE *open_http(const char *PlaylistFile)
int cPlaylist::ScanFolder(const char *FolderName,
bool Recursive,
- bool (config_t::*Filter)(const char *))
+ bool (*Filter)(const char *))
{
cMutexLock ml(&m_Lock);
static int depth = 0;
@@ -676,7 +676,7 @@ int cPlaylist::ScanFolder(const char *FolderName,
if (stat(Buffer, &st) != 0)
continue;
}
- if((xc.*Filter)(Buffer)) {
+ if((*Filter)(Buffer)) {
/* TODO: Should ScanDir add contents of playlist files ... ? */
if(Filter == &config_t::IsPlaylistFile || !xc.IsPlaylistFile(Buffer)) {
n++;
diff --git a/tools/playlist.h b/tools/playlist.h
index b1332a42..7420643b 100644
--- a/tools/playlist.h
+++ b/tools/playlist.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: playlist.h,v 1.9 2009-10-26 23:16:46 phintuka Exp $
+ * $Id: playlist.h,v 1.10 2009-10-31 19:59:50 phintuka Exp $
*
*/
@@ -89,7 +89,7 @@ class cPlaylist : protected cList<cPlaylistItem>
int ReadPlaylist(const char *PlaylistFile);
int ScanFolder(const char *FolderName,
bool Recursive = false,
- bool (config_t::*Filter)(const char *) = &config_t::IsAudioFile);
+ bool (*Filter)(const char *) = &config_t::IsAudioFile);
friend class cID3Scanner;
friend class cPlaylistReader;