2007-11-24 12:14:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Vreixo Formoso
|
|
|
|
*
|
|
|
|
* This file is part of the libisofs project; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation. See COPYING file for details.
|
|
|
|
*/
|
2007-11-24 15:58:36 +00:00
|
|
|
#ifndef LIBISO_ERROR_H_
|
|
|
|
#define LIBISO_ERROR_H_
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2007-11-24 15:58:36 +00:00
|
|
|
/*
|
|
|
|
* Return values for libisofs functions, mainly error codes
|
|
|
|
* TODO #00003 make this header public
|
|
|
|
*/
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2007-12-20 15:09:29 +00:00
|
|
|
#define ISO_SUCCESS 1
|
|
|
|
#define ISO_ERROR -1
|
|
|
|
#define ISO_NULL_POINTER -2
|
|
|
|
#define ISO_OUT_OF_MEM -3
|
|
|
|
#define ISO_MEM_ERROR -4
|
|
|
|
#define ISO_INTERRUPTED -5
|
|
|
|
#define ISO_WRONG_ARG_VALUE -6
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2007-12-20 15:09:29 +00:00
|
|
|
#define ISO_WRITE_ERROR -10
|
2007-12-22 16:09:28 +00:00
|
|
|
#define ISO_THREAD_ERROR -11
|
2007-12-17 23:37:24 +00:00
|
|
|
|
2007-12-01 00:42:21 +00:00
|
|
|
#define ISO_NODE_ALREADY_ADDED -50
|
|
|
|
#define ISO_NODE_NAME_NOT_UNIQUE -51
|
2007-12-01 01:43:37 +00:00
|
|
|
#define ISO_NODE_NOT_ADDED_TO_DIR -52
|
2007-12-01 00:42:21 +00:00
|
|
|
|
2007-12-20 15:09:29 +00:00
|
|
|
#define ISO_FILE_ERROR -100
|
|
|
|
#define ISO_FILE_ALREADY_OPENNED -101
|
|
|
|
#define ISO_FILE_ACCESS_DENIED -102
|
|
|
|
#define ISO_FILE_BAD_PATH -103
|
|
|
|
#define ISO_FILE_DOESNT_EXIST -104
|
|
|
|
#define ISO_FILE_NOT_OPENNED -105
|
|
|
|
#define ISO_FILE_IS_DIR -106
|
|
|
|
#define ISO_FILE_READ_ERROR -107
|
|
|
|
#define ISO_FILE_IS_NOT_DIR -108
|
|
|
|
#define ISO_FILE_IS_NOT_SYMLINK -109
|
2007-12-17 19:47:53 +00:00
|
|
|
#define ISO_FILE_TOO_BIG -110
|
2007-12-30 17:29:39 +00:00
|
|
|
#define ISO_FILE_SEEK_ERROR -111
|
2007-11-24 15:58:36 +00:00
|
|
|
|
2007-12-16 16:32:05 +00:00
|
|
|
#define ISO_CHARSET_CONV_ERROR -150
|
|
|
|
|
|
|
|
#define ISO_MANGLE_TOO_MUCH_FILES -200
|
2007-11-24 15:58:36 +00:00
|
|
|
|
2007-12-30 20:39:17 +00:00
|
|
|
/* image read errors */
|
|
|
|
#define ISO_WRONG_PVD -300
|
2007-12-31 02:36:48 +00:00
|
|
|
#define ISO_WRONG_RR -301
|
2007-12-31 20:51:31 +00:00
|
|
|
#define ISO_UNSUPPORTED_RR -302
|
|
|
|
#define ISO_WRONG_ECMA119 -303
|
2008-01-02 17:56:45 +00:00
|
|
|
#define ISO_UNSUPPORTED_ECMA119 -304
|
2007-12-30 20:39:17 +00:00
|
|
|
|
|
|
|
|
2007-11-24 15:58:36 +00:00
|
|
|
#endif /*LIBISO_ERROR_H_*/
|