aboutsummaryrefslogtreecommitdiff
path: root/Src/playlist/ifc_playlistloader.h
blob: d1b6fba48944a9b5ba143fdd52ed1609f0a68cae (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
#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