mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-05 20:13:23 -05:00
94c5352db6
These calls generate error messages when the loop is already running, which will be the case when using init-rescan or full-rescan. The only purpose of these calls seems to be to check for exit signals from the main thread during a startup bulk scan, where the loop is not running yet. However, we can check for an exit signal by just setting/checking scan_exit. This commit also removes the unused filescanner_status().
40 lines
836 B
C
40 lines
836 B
C
|
|
#ifndef __FILESCANNER_H__
|
|
#define __FILESCANNER_H__
|
|
|
|
#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
|
|
scan_playlist(char *file, time_t mtime);
|
|
|
|
#ifdef ITUNES
|
|
void
|
|
scan_itunes_itml(char *file);
|
|
#endif
|
|
|
|
#endif /* !__FILESCANNER_H__ */
|