summaryrefslogtreecommitdiff
path: root/app/bin/include/paramfilelist.h
blob: 2893292704f4708864da5fb216fd21215617d0ff (plain)
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 HAVE_PARAMFILELIST_H
#define HAVE_PARAMFILELIST_H
#include <stdbool.h>
#include "include/paramfile.h"

typedef struct {
	char * name;				/** < name of parameter file */
	char * contents;
	int deleted;
	int deletedShadow;
	int valid;					/** < FALSE for dropped file */
	bool favorite;
	enum paramFileState trackState;
	enum paramFileState structureState;
} paramFileInfo_t;
typedef paramFileInfo_t * paramFileInfo_p;

#define paramFileInfo(N) DYNARR_N( paramFileInfo_t, paramFileInfo_da, N )

char *GetParamFileDir(void);
void SetParamFileDir(char *fullPath);
void LoadParamFileList(void);
//BOOL_T ReadDefaultParams(const char * dirName);
void SaveParamFileList(void);
int GetParamFileCount();
void UpdateParamFileList(void);
void ParamFilesChange(long changes);
int LoadParamFile(int files, char ** fileName, void * data);
//	void InitializeParamDir(void);
void ParamFileListConfirmChange(void);
void ParamFileListCancelChange(void);
BOOL_T ParamFileListInit(void);

void SearchUiOk(void * junk);
bool ReloadParamFile(wIndex_t index);
bool UnloadParamFile(wIndex_t fileIndex);
#endif // !HAVE_PARAMFILELIST_H