aboutsummaryrefslogtreecommitdiff
path: root/tools/lzpack/filelist.h
blob: f6ad478d20b05f59605e1ce5829fec2a8c610bc7 (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
38
39
40
41
42
43
44
45
46
47
48
#ifndef _FILELIST_H
#define _FILELIST_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>

#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif

#ifndef MAX_PATH
#define MAX_PATH PATH_MAX
#endif

typedef struct {
	char*	fileName;
    char*	aliasName;
    int		windowSize;
    int		hash1Size;
    int		hash2Size;
} FileListEntry;

class FileListClass {

	int				NumFiles;
	int				AllocFiles;
	FileListEntry*	FileList;

public:

    FileListClass();
    virtual ~FileListClass();

    void AddFileEntry(const char* fileName, const char* aliasName, short windowSize, short hash1Size, short hash2Size);

    const FileListEntry* Entry(int index);
    int EntryCount();

    void PrintEntries();

};


#endif