summaryrefslogtreecommitdiff
path: root/mpq-errors.h
blob: d9918c4a782d789b3cf72e26cfd09db40b3b9a4a (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
#ifndef __MPQ_ERRORS_H__
#define __MPQ_ERRORS_H__

#ifdef __cplusplus
extern "C" {
#endif

int mpqlib_errno();
const char * mpqlib_error();

#ifdef __cplusplus
}
#endif

enum {
    MPQLIB_ERROR_NO_ERROR = 0,
    MPQLIB_ERROR_UNKNOWN,
    MPQLIB_ERROR_OPEN,
    MPQLIB_ERROR_NOT_MPQ_ARCHIVE,
    MPQLIB_ERROR_MEMORY,
    MPQLIB_ERROR_READ,
    MPQLIB_ERROR_INVALID_IOCTL,
    MPQLIB_ERROR_IOCTL_INVALID_ENTRY,
    MPQLIB_ERROR_FILE_NOT_FOUND,
    MPQLIB_ERROR_NOT_A_FILE,
    MPQLIB_ERROR_NOT_SUPPORTED,
    MPQLIB_ERROR_NOT_COMPRESSED,
    MPQLIB_ERROR_COMPRESSION,

    MPQLIB_ERRORS_MAX
};

#endif