playlist.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef NULLSOFT_ML_PLG_PLAYLIST_H
  2. #define NULLSOFT_ML_PLG_PLAYLIST_H
  3. #include "../gracenote/gracenote.h"
  4. #include "../../General/gen_ml/ml.h"
  5. #include <bfc/error.h>
  6. #include "impl_playlist.h"
  7. extern ICddbPlaylist25Mgr *playlistMgr;
  8. extern ICddbMLDBManager *mldbMgr;
  9. extern Playlist currentPlaylist;
  10. bool SetupPlaylistSDK();
  11. void ShutdownPlaylistSDK();
  12. int InitializeMLDBManager(void);
  13. int DeleteGracenoteMLDB(bool silent);
  14. int BackupGracenoteMLDB(void);
  15. int RestoreGracenoteMLDB(void);
  16. void playPlaylist(Playlist &pl, bool enqueue, int startplaybackat, /*const wchar_t *seedfn,*/ int useSeed);
  17. void GetTitleFormattingGracenote(const wchar_t *filename, ICddbPL2Result * gracenoteResult, wchar_t * buf, int len);
  18. void GetTitleFormattingML(const wchar_t *filename, itemRecordW *mlResult, wchar_t * buf, int len);
  19. void MoreLikeThisSong(const wchar_t *filename);
  20. void MoreLikeTheseSongs(Playlist *pl);
  21. typedef enum
  22. {
  23. PL_NOT_INITIALIZED = 0,
  24. PL_ITEMS = 1,
  25. PL_MINUTES = 2,
  26. PL_MEGABYTES = 3
  27. } PlLengthTypeEnum;
  28. #define PLM_Filename L"PLM_rec_filename"
  29. #define PLM_Pathname L"PLM_rec_pathname"
  30. #define GRACENOTE_DB_BASE_PATH L"Gracenote"
  31. #define GRACENOTE_DB_BACKUP_PATH L"Gracenote/Backup"
  32. #endif