ScummVM API documentation
error.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef AGS_LIB_ALLEGRO_ERROR_H
23#define AGS_LIB_ALLEGRO_ERROR_H
24
25#include "common/scummsys.h"
26
27namespace AGS3 {
28
29// Error codes
30enum AllegroError {
31 AL_NOERROR = 0,
32 AL_EPERM = 1,
33 AL_ENOENT = 2,
34 AL_ESRCH = 3,
35 AL_EINTR = 4,
36 AL_EIO = 5,
37 AL_ENXIO = 6,
38 AL_E2BIG = 7,
39 AL_ENOEXEC = 8,
40 AL_EBADF = 9,
41 AL_ECHILD = 10,
42 AL_EAGAIN = 11,
43 AL_ENOMEM = 12,
44 AL_EACCES = 13,
45 AL_EFAULT = 14,
46 AL_EBUSY = 16,
47 AL_EEXIST = 17,
48 AL_EXDEV = 18,
49 AL_ENODEV = 19,
50 AL_ENOTDIR = 20,
51 AL_EISDIR = 21,
52 AL_EINVAL = 22,
53 AL_ENFILE = 23,
54 AL_EMFILE = 24,
55 AL_ENOTTY = 25,
56 AL_EFBIG = 27,
57 AL_ENOSPC = 28,
58 AL_ESPIPE = 29,
59 AL_EROFS = 30,
60 AL_EMLINK = 31,
61 AL_EPIPE = 32,
62 AL_EDOM = 33,
63 AL_ERANGE = 34,
64 AL_EDEADLK = 36,
65 AL_ENAMETOOLONG = 38,
66 AL_ENOLCK = 39,
67 AL_ENOSYS = 40,
68 AL_ENOTEMPTY = 41,
69 AL_EILSEQ = 42
70};
71
72} // namespace AGS3
73
74#endif