diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/playlist/ifc_playlistloader.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/playlist/ifc_playlistloader.h')
-rw-r--r-- | Src/playlist/ifc_playlistloader.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Src/playlist/ifc_playlistloader.h b/Src/playlist/ifc_playlistloader.h new file mode 100644 index 00000000..d1b6fba4 --- /dev/null +++ b/Src/playlist/ifc_playlistloader.h @@ -0,0 +1,37 @@ +#ifndef NULLSOFT_IFC_PLAYLISTLOADER_H +#define NULLSOFT_IFC_PLAYLISTLOADER_H + +#include <bfc/dispatch.h> +#include <wchar.h> +#include "ifc_playlistloadercallback.h" + +enum +{ + IFC_PLAYLISTLOADER_SUCCESS = 0, + IFC_PLAYLISTLOADER_FAILED = 1, + + IFC_PLAYLISTLOADER_NEXTITEM_EOF = 1, +}; + +class ifc_playlistloader : public Dispatchable +{ +protected: + ifc_playlistloader() {} + ~ifc_playlistloader() {} + +public: + int Load( const wchar_t *filename, ifc_playlistloadercallback *playlist ); + + DISPATCH_CODES + { + IFC_PLAYLISTLOADER_LOAD = 10, + }; + +}; + +inline int ifc_playlistloader::Load( const wchar_t *filename, ifc_playlistloadercallback *playlist ) +{ + return _call( IFC_PLAYLISTLOADER_LOAD, (int)IFC_PLAYLISTLOADER_FAILED, filename, playlist ); +} + +#endif |