Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

hi_return_codes.h

Go to the documentation of this file.
00001 /**
00002 **  @file       hi_return_codes.h
00003 **
00004 **  @author     Daniel Roelker <droelker@sourcefire.com>
00005 **
00006 **  @brief      This file defines the return codes for the HttpInspect
00007 **              functions.
00008 **
00009 **  Common return codes are defined here for all functions and libraries to
00010 **  use.  This should make function error checking easier.
00011 **
00012 **  NOTES:
00013 **
00014 **  - 2.14.03:  Initial Development.  DJR
00015 */
00016 
00017 #ifndef __HI_RETURN_CODES_H__
00018 #define __HI_RETURN_CODES_H__
00019 
00020 #include "hi_include.h"
00021 
00022 #define HI_BOOL_FALSE 0
00023 #define HI_SUCCESS    0
00024 
00025 /*
00026 **  Non-fatal errors are positive
00027 */
00028 #define HI_BOOL_TRUE          1
00029 #define HI_NONFATAL_ERR       1
00030 #define HI_OUT_OF_BOUNDS      2
00031 
00032 /*
00033 **  Fatal errors are negative
00034 */
00035 #define HI_FATAL_ERR         -1
00036 #define HI_INVALID_ARG       -2
00037 #define HI_MEM_ALLOC_FAIL    -3
00038 #define HI_NOT_FOUND         -4
00039 #define HI_INVALID_FILE      -5
00040 
00041 #endif

Generated on Sun May 14 14:51:15 2006 by  doxygen 1.4.2