2009-04-19 09:10:19 -04:00
|
|
|
|
|
|
|
#ifndef __FILESCANNER_H__
|
|
|
|
#define __FILESCANNER_H__
|
|
|
|
|
2009-06-07 12:58:02 -04:00
|
|
|
#include "db.h"
|
2009-04-19 09:10:19 -04:00
|
|
|
|
2013-10-24 17:14:26 -04:00
|
|
|
#define F_SCAN_TYPE_PODCAST (1 << 0)
|
2013-12-08 17:03:03 -05:00
|
|
|
#define F_SCAN_TYPE_AUDIOBOOK (1 << 1)
|
|
|
|
#define F_SCAN_TYPE_COMPILATION (1 << 2)
|
|
|
|
#define F_SCAN_TYPE_URL (1 << 3)
|
2013-10-24 17:14:26 -04:00
|
|
|
|
2009-04-19 09:10:19 -04:00
|
|
|
int
|
|
|
|
filescanner_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
filescanner_deinit(void);
|
|
|
|
|
2013-10-15 07:36:11 -04:00
|
|
|
struct extinf_ctx
|
|
|
|
{
|
|
|
|
char *artist;
|
|
|
|
char *title;
|
|
|
|
int found;
|
|
|
|
};
|
|
|
|
|
2013-08-14 17:40:55 -04:00
|
|
|
void
|
2013-10-24 17:14:26 -04:00
|
|
|
process_media_file(char *file, time_t mtime, off_t size, int type, struct extinf_ctx *extinf);
|
2013-08-14 17:40:55 -04:00
|
|
|
|
2009-04-19 09:10:19 -04:00
|
|
|
/* Actual scanners */
|
|
|
|
int
|
2009-04-20 11:34:39 -04:00
|
|
|
scan_metadata_ffmpeg(char *file, struct media_file_info *mfi);
|
2009-04-19 09:10:19 -04:00
|
|
|
|
2013-09-24 16:27:49 -04:00
|
|
|
int
|
|
|
|
scan_metadata_icy(char *url, struct media_file_info *mfi);
|
|
|
|
|
2009-04-20 11:34:39 -04:00
|
|
|
void
|
2013-08-14 17:40:55 -04:00
|
|
|
scan_m3u_playlist(char *file, time_t mtime);
|
2009-04-20 10:27:56 -04:00
|
|
|
|
2009-11-22 05:17:33 -05:00
|
|
|
#ifdef ITUNES
|
|
|
|
void
|
|
|
|
scan_itunes_itml(char *file);
|
|
|
|
#endif
|
|
|
|
|
2009-04-19 09:10:19 -04:00
|
|
|
#endif /* !__FILESCANNER_H__ */
|