Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
37
Src/playlist/ifc_playlistloader.h
Normal file
37
Src/playlist/ifc_playlistloader.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue