From 61b6c3ce8358bc454982b8cc75b2c0bd6a2f119a Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Tue, 23 Jun 2015 17:56:21 +0200 Subject: [PATCH] Added OBI errnos but work in progress --- src/obierrno.h | 63 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/src/obierrno.h b/src/obierrno.h index 34e7fbe..b8812f0 100644 --- a/src/obierrno.h +++ b/src/obierrno.h @@ -43,22 +43,53 @@ extern int obi_errno; * * @{ */ -#define OBIDMS_EXIST_ERROR (1) /**< Trying to create an OBIDMS with a name - * that corresponds to an existing OBIDMS - */ -#define OBIDMS_NOT_EXIST_ERROR (2) /**< Trying to open a non-existing OBIDMS - */ -#define OBIDMS_LONG_NAME_ERROR (3) /**< The specified OBIDMS name is too long - */ -#define OBIDMS_MEMORY_ERROR (4) /**< A memory error occurred during allocation - */ -#define OBIDMS_UNKNOWN_ERROR (5) /**< Undetermined error - */ -#define OBIDMS_ACCESS_ERROR (6) /**< Permission error trying to access the database - */ -#define OBIDMS_BAD_ENDIAN_ERROR (7) /**< The opened data structure does not corresponds - * to the endianess of the platform. - */ +#define OBIDMS_EXIST_ERROR (1) /**< Trying to create an OBIDMS with a name + * that corresponds to an existing one + */ +#define OBIDMS_NOT_EXIST_ERROR (2) /**< Trying to open a non-existing OBIDMS + */ +#define OBIDMS_LONG_NAME_ERROR (3) /**< The specified OBIDMS name is too long + */ +#define OBIDMS_MEMORY_ERROR (4) /**< A memory error occurred during allocation while handling + * an OBIDMS + */ +#define OBIDMS_UNKNOWN_ERROR (5) /**< Undetermined error while handling an OBIDMS + */ +#define OBIDMS_ACCESS_ERROR (6) /**< Permission error trying to access the database + */ + +#define OBICOLDIR_EXIST_ERROR (7) /**< Trying to create an OBIDMS column directory with a name + * that corresponds to an existing one + */ +#define OBICOLDIR_NOT_EXIST_ERROR (8) /**< Trying to open a non-existing OBIDMS column directory + */ +#define OBICOLDIR_LONG_NAME_ERROR (9) /**< The specified OBIDMS column directory name is too long + */ +#define OBICOLDIR_MEMORY_ERROR (10) /**< A memory error occurred during allocation while handling + * an OBIDMS column directory + */ +#define OBICOLDIR_UNKNOWN_ERROR (11) /**< Undetermined error while handling an OBIDMS column directory + */ +#define OBICOLDIR_ACCESS_ERROR (12) /**< Permission error trying to access an OBIDSM column directory + */ + +#define OBICOL_BAD_ENDIAN_ERROR (13) /**< The opened data structure does not corresponds + * to the endianness of the platform. + */ +#define OBICOL_EXIST_ERROR (14) /**< Trying to create an OBIDMS column with a name + * that corresponds to an existing one + */ +#define OBICOL_NOT_EXIST_ERROR (15) /**< Trying to open a non-existing OBIDMS column directory + */ +#define OBICOL_LONG_NAME_ERROR (16) /**< The specified OBIDMS column directory name is too long + */ +#define OBICOL_MEMORY_ERROR (17) /**< A memory error occurred during allocation while handling + * an OBIDMS column directory + */ +#define OBICOL_UNKNOWN_ERROR (18) /**< Undetermined error while handling an OBIDMS column directory + */ +#define OBICOL_ACCESS_ERROR (19) /**< Permission error trying to access an OBIDSM column directory + */ /**@}*/ #endif /* OBIERRNO_H_ */