aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_plg/playlist.h
blob: 5af603ed13e03d4f5379e6557bb940cf672be293 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef NULLSOFT_ML_PLG_PLAYLIST_H
#define NULLSOFT_ML_PLG_PLAYLIST_H

#include "../gracenote/gracenote.h"
#include "../../General/gen_ml/ml.h"
#include <bfc/error.h>

#include "impl_playlist.h"

extern ICddbPlaylist25Mgr *playlistMgr;
extern ICddbMLDBManager *mldbMgr;
extern Playlist currentPlaylist;
bool SetupPlaylistSDK();
void ShutdownPlaylistSDK();
int InitializeMLDBManager(void);
int DeleteGracenoteMLDB(bool silent);
int BackupGracenoteMLDB(void);
int RestoreGracenoteMLDB(void);
void playPlaylist(Playlist &pl, bool enqueue, int startplaybackat, /*const wchar_t *seedfn,*/ int useSeed);

void GetTitleFormattingGracenote(const wchar_t *filename, ICddbPL2Result * gracenoteResult, wchar_t * buf, int len);
void GetTitleFormattingML(const wchar_t *filename, itemRecordW *mlResult, wchar_t * buf, int len);

void MoreLikeThisSong(const wchar_t *filename);
void MoreLikeTheseSongs(Playlist *pl);

typedef enum
{
	PL_NOT_INITIALIZED = 0,
	PL_ITEMS = 1,
	PL_MINUTES = 2,
	PL_MEGABYTES = 3
} PlLengthTypeEnum;

#define		PLM_Filename				L"PLM_rec_filename"
#define		PLM_Pathname				L"PLM_rec_pathname"
#define		GRACENOTE_DB_BASE_PATH		L"Gracenote"
#define		GRACENOTE_DB_BACKUP_PATH	L"Gracenote/Backup"

#endif