blob: 5b70b403bdc4ac02a9d959da7823eebc3484ca1f (
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
|
#ifndef _QLP_H
#define _QLP_H
#include <sys/types.h>
#ifdef _WIN32
#include <windows.h>
#endif
#define PACK_ERR_NONE 0
#define PACK_ERR_INVALID -1
#define PACK_ERR_NOTFOUND -2
#define PACK_ERR_INCOMPLETE -3
#define PACK_ERR_READ_FAULT -4
typedef struct {
char id[3];
u_char numfiles;
} QLP_HEAD;
typedef struct {
char name[16];
u_int size;
u_int offs;
} QLP_FILE;
int qlpFileCount(const QLP_HEAD* qlpfile);
const QLP_FILE* qlpFileEntry(int index, const QLP_HEAD* qlpfile);
const void* qlpFileAddr(int index, const QLP_HEAD* qlpfile);
int qlpFindFile(char* fileName, const QLP_HEAD* qlpfile);
#endif // _QLP_H
|