Mercurial > hg > dmlib
comparison dmlib.h @ 26:2f463a59d732
Implement rudimentary resource system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 29 Sep 2012 05:29:38 +0300 |
parents | 10f58ff516b3 |
children | f3407a58e01e |
comparison
equal
deleted
inserted
replaced
25:372b68c0752a | 26:2f463a59d732 |
---|---|
33 /* Error codes | 33 /* Error codes |
34 */ | 34 */ |
35 enum { | 35 enum { |
36 // General error codes | 36 // General error codes |
37 DMERR_OK = 0, | 37 DMERR_OK = 0, |
38 DMERR_PROGRESS, // Status OK, but operation in progress | |
39 | |
38 DMERR_FOPEN, | 40 DMERR_FOPEN, |
39 DMERR_FREAD, | 41 DMERR_FREAD, |
40 DMERR_FWRITE, | 42 DMERR_FWRITE, |
41 DMERR_FSEEK, | 43 DMERR_FSEEK, |
42 DMERR_NOT_FOUND, | 44 DMERR_NOT_FOUND, // Resource/data not found |
43 | 45 |
44 DMERR_INVALID_DATA, | 46 DMERR_INVALID_DATA, // Some data was invalid |
45 DMERR_MALLOC, | 47 DMERR_MALLOC, // Memory allocation failure |
46 DMERR_ALREADY_INIT, | 48 DMERR_ALREADY_INIT, // Resource has already been initialized |
47 DMERR_INIT_FAIL, | 49 DMERR_INIT_FAIL, // General initialization failure |
48 DMERR_INVALID_ARGS, | 50 DMERR_INVALID_ARGS, |
49 | 51 |
50 DMERR_NULLPTR, | 52 DMERR_NULLPTR, // NULL pointer specified in critical argument |
51 DMERR_NOT_SUPPORTED, | 53 DMERR_NOT_SUPPORTED,// Operation not supported |
52 DMERR_OUT_OF_DATA, | 54 DMERR_OUT_OF_DATA, |
53 DMERR_EXTRA_DATA, | 55 DMERR_EXTRA_DATA, |
54 DMERR_BOUNDS, | 56 DMERR_BOUNDS, |
55 | 57 |
56 // PACK-file subsystem | 58 // PACK-file subsystem |