heraia_errors.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /*
00003   heraia_errors.h
00004   heraia - an hexadecimal file editor and analyser based on ghex
00005 
00006   (C) Copyright 2005 - 2007 Sebastien Tricaud  e-mail : toady@gscore.org
00007   (C) Copyright 2005 - 2010 Olivier Delhomme   e-mail : heraia@delhomme.org
00008 
00009   This program is free software; you can redistribute it and/or modify
00010   it under the terms of the GNU General Public License as published by
00011   the Free Software Foundation; either version 2, or  (at your option)
00012   any later version.
00013 
00014   This program is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY;  without even the implied warranty of
00016   MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the
00017   GNU General Public License for more details.
00018 
00019   You should have received a copy of the GNU General Public License
00020   along with this program; if not, write to the Free Software
00021   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
00022 /**
00023  * @file heraia_errors.h
00024  * Header file for handling errors
00025  */
00026 #ifndef _HERAIA_ERRORS_H_
00027 #define _HERAIA_ERRORS_H_
00028 
00029 /* this is empty for now, until there should be some errors functions */
00030 /**
00031  * @def HERAIA_NOERR
00032  *   No error occured, everything is fine
00033  *
00034  * @def HERAIA_MEMORY_ERROR
00035  *   Malloc error, you may get into trouble
00036  *
00037  * @def HERAIA_NO_PLUGINS
00038  *   When no plugin are found
00039  *
00040  * @def HERAIA_FILE_ERROR
00041  *   When an error on a file occurs
00042  *  @todo We may use errno to have more accurate file errors
00043  *
00044  * @def HERAIA_CANCELLED
00045  *   an operation has been cancelled
00046  */
00047 #define HERAIA_NOERR 0
00048 #define HERAIA_MEMORY_ERROR 1
00049 #define HERAIA_NO_PLUGINS 2
00050 #define HERAIA_FILE_ERROR 3
00051 #define HERAIA_CANCELLED 4
00052 
00053 #endif /* _HERAIA_ERRORS_H_ */
Generated on Fri Aug 20 09:15:18 2010 for Heraia by  doxygen 1.6.3