owntone-server/src/filescanner.h

49 lines
955 B
C
Raw Normal View History

#ifndef __FILESCANNER_H__
#define __FILESCANNER_H__
2009-06-07 12:58:02 -04:00
#include "db.h"
#define F_SCAN_TYPE_FILE (1 << 0)
#define F_SCAN_TYPE_PODCAST (1 << 1)
#define F_SCAN_TYPE_AUDIOBOOK (1 << 2)
#define F_SCAN_TYPE_COMPILATION (1 << 3)
#define F_SCAN_TYPE_URL (1 << 4)
#define F_SCAN_TYPE_SPOTIFY (1 << 5)
#define F_SCAN_TYPE_PIPE (1 << 6)
int
filescanner_init(void);
void
filescanner_deinit(void);
void
filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct media_file_info *external_mfi);
/* Actual scanners */
int
scan_metadata_ffmpeg(char *file, struct media_file_info *mfi);
int
scan_metadata_icy(char *url, struct media_file_info *mfi);
void
2014-08-27 15:57:16 -04:00
scan_playlist(char *file, time_t mtime);
2009-11-22 05:17:33 -05:00
#ifdef ITUNES
void
scan_itunes_itml(char *file);
#endif
2014-12-21 14:41:44 -05:00
void
filescanner_trigger_initscan(void);
void
filescanner_trigger_fullrescan(void);
int
filescanner_scanning(void);
#endif /* !__FILESCANNER_H__ */