Commit 85f45ab9ef02389cdb9f0a85ff85e89405a53d51

Authored by Imanol-Mikel Barba Sabariego
1 parent 49636ad9

Forgot to include new file in last commit lol

Showing 1 changed file with 27 additions and 0 deletions
errors.h 0 → 100644
  1 +#ifndef _ERRORS_H
  2 +#define _ERRORS_H
  3 +
  4 +enum GENERAL_ERROR_CODE {
  5 + SUCCESS = 0,
  6 + MEMORY_ERROR = -1,
  7 + ACCESS_ERROR = -2,
  8 + OPEN_ERROR = -3,
  9 + READ_ERROR = -4,
  10 + SEEK_ERROR = -5,
  11 + WRITE_ERROR = -6,
  12 +};
  13 +
  14 +enum CHUNK_ERROR_CODE {
  15 + INSUFFICIENT_SPACE_FOR_CHUNK = -10,
  16 + CHUNK_NOT_PRESENT = -11,
  17 + INVALID_HEADER = -12,
  18 +};
  19 +
  20 +enum COMPRESSION_ERROR_CODE {
  21 + ZLIB_STREAM_INIT_ERROR = -20,
  22 + ZLIB_INFLATE_ERROR = -21,
  23 + ZLIB_STREAM_FREE_ERROR = -22,
  24 + ZLIB_DEFLATE_ERROR = -23
  25 +};
  26 +
  27 +#endif
0 \ No newline at end of file 28 \ No newline at end of file