aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_disc/M3UWriter.h
blob: 2f4335d5429a46a34905bd55f8a63ba22b7caf22 (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
#ifndef NULLSOFT_M3UWRITERH
#define NULLSOFT_M3UWRITERH

#include <stdio.h>
#include <windows.h>

class M3UWriter
{
public:
	M3UWriter();
	virtual ~M3UWriter();

	int Open(char *filename, int extendedMode);
	int Open( FILE *_fp, char *filename, int extendedMode );
	void SetFilename( char *filename );
	void SetExtended( char *filename, char *title, int length );
	void Close();

private:
	char  basePath[MAX_PATH];
	int   extended = 0;
	FILE *fp       = NULL;
};

#endif