nip_error.h

Go to the documentation of this file.
00001 /*##############################################################################
00002 
00003 nIP - nano IP stack
00004 
00005 File        : nip_error.h
00006 
00007 Description : nIP Error Codes
00008 
00009 Copyright notice:
00010 
00011 Copyright (C) 2005 -
00012 Andreas Dittrich, dittrich@informatik.hu-berlin.de
00013 Jon Kowal, kowal@informatik.hu-berlin.de
00014 
00015 This program is free software; you can redistribute it and/or
00016 modify it under the terms of the GNU General Public License
00017 as published by the Free Software Foundation; either version 2
00018 of the License, or (at your option) any later version.
00019 
00020 This program is distributed in the hope that it will be useful,
00021 but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00023 GNU General Public License for more details.
00024 
00025 You should have received a copy of the GNU General Public License
00026 along with this program; if not, write to the Free Software
00027 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00028 
00029 ##############################################################################*/
00030 
00031 #ifndef _NIP_ERROR_H
00032  #define _NIP_ERROR_H
00033 
00034 /** Errorcodes to be used by NIP functions. */
00035 typedef enum
00036 {
00037         NIP_E_OK,           //!< no error
00038         NIP_E_PARAM_FAILED, //!< function received invalid parameter
00039         NIP_E_INVALID_BLOCK,//!< function received invalid block id
00040         NIP_E_BLOCK_LOCKED, //!< tried to invalidly access locked memory block
00041         NIP_E_OUT_OF_MEMORY,//!< not enough dynamic memory available for allocation
00042         NIP_E_EOF,          //!< end of file or end block data reached
00043         NIP_E_RESOLVING_ADDR,//!< (still) resolving target address, don't send data yet
00044         NIP_E_HARD_ERROR,   //!< some unexpected hardware error occured
00045         NIP_E_DEV_BUSY,     //!< network interface busy, try again later
00046         NIP_E_DISP_RUNNING, //!< dispatcher already running
00047         NIP_E_INVALID_SOCK, //!< given socket id was invalid
00048         NIP_E_NO_ROUTE_TO_HOST,//!< found no route to target host
00049         NIP_E_HOST_NOT_FOUND,  //!< target host not found on local network
00050         NIP_E_AGAIN,        //!< try again later
00051         NIP_E_OUT_OF_RESSOURCES,
00052         NIP_E_LOCKED,       //!< ressource locked
00053         NIP_E_NOT_FOUND,    //!< ressource not found
00054         NIP_E_EXISTS,       //!< could not create ressource, because it exists already
00055         NIP_E_NOT_CONFIGURED,//!< ressource not configured properly
00056         NIP_E_INTERNAL_ERROR,//!< internal error occured, data integrity unknown
00057         NIP_E_NO_MATCH       //!< compared ressources don't match
00058 }
00059 #ifndef DOXYGEN
00060 __attribute__((packed))
00061 #endif
00062 nip_error_t;
00063 
00064 extern nip_error_t nip_error;
00065 
00066 #endif /* _NIP_ERROR_H */

Generated on Thu Jul 10 01:09:29 2008 for NIP by  doxygen 1.5.5