From 6a61e404d1e2c9c75c0f74226f2bc3d75024234d Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sun, 12 Dec 2004 22:57:59 +0000 Subject: [PATCH] Add EMILE error codes --- libemile/libemile.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libemile/libemile.h b/libemile/libemile.h index ca380cf..cd2d693 100644 --- a/libemile/libemile.h +++ b/libemile/libemile.h @@ -22,6 +22,24 @@ static __attribute__((used)) char* libemile_header = "$CVSHeader$"; #define FLOPPY_SECTOR_SIZE 512 #define FIRST_LEVEL_SIZE (FLOPPY_SECTOR_SIZE * 2) +enum { + EEMILE_CANNOT_READ_FIRST = -2, + EEMILE_UNKNOWN_FIRST = -3, + EEMILE_CANNOT_WRITE_FIRST = -4, + EEMILE_MALLOC_ERROR = -5, + EEMILE_CANNOT_OPEN_FILE = -6, + EEMILE_CANNOT_WRITE_SECOND = -7, + EEMILE_CANNOT_WRITE_KERNEL = -8, + EEMILE_CANNOT_WRITE_RAMDISK = -9, + EEMILE_CANNOT_WRITE_PAD = -10, + EEMILE_CANNOT_CREATE_IMAGE = -11, + EEMILE_MISSING_FIRST = -12, + EEMILE_MISSING_SECOND = -13, + EEMILE_CANNOT_READ_SECOND = -14, + EEMILE_INVALID_SECOND = -15, + EEMILE_CANNOT_READ_KERNEL = -16, +}; + static inline unsigned long emile_file_get_size(char* file) { struct stat result;