include/er_facilities.h

/* [<][>][^][v][top]
[bottom][index][help] */

FUNCTIONS

This source file includes following functions.

   1 /***************************************
   2   $Revision: 1.17 $
   3 
   4   Error reporting (er) er_facilities.h - list of facilities (modules)
   5 
   6   Status: NOT REVUED, TESTED, 
   7  
   8   Design and implementation by: Marek Bukowy
   9 
  10   ******************/ /******************
  11   Copyright (c) 1999                              RIPE NCC
  12  
  13   All Rights Reserved
  14   
  15   Permission to use, copy, modify, and distribute this software and its
  16   documentation for any purpose and without fee is hereby granted,
  17   provided that the above copyright notice appear in all copies and that
  18   both that copyright notice and this permission notice appear in
  19   supporting documentation, and that the name of the author not be
  20   used in advertising or publicity pertaining to distribution of the
  21   software without specific, written prior permission.
  22   
  23   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  24   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
  25   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  26   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  27   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  28   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  29   ***************************************/
  30 
  31 /* 
  32 NOTE:  modify the m4 file only, do not change the resulting .h !!!
  33 */
  34 
  35 #ifndef ER_FACILITIES_H
  36 #define ER_FACILITIES_H
  37 
  38 /* this #include is just for cxref to not get lost completely :-) */
  39 #include <erroutines.h>
  40 
  41 /* this is the file for adding new facilities.
  42    This requires three steps:
  43    1. Prepare and  a file with your error messages (see other files).   
  44       Please follow the filename convention er_??_errors.c 
  45    2. Declare your facility number in the enum (before the FAC_LAST)
  46 
  47    only when that's ready (for not to prevent other people from working)
  48 
  49    3. Add your facility to the facility table, using the GLUP macro
  50         (it takes a two-letter code and a description of the facility).
  51         This will add a pointer to the module-specific error table
  52         to the global table.
  53 */
  54 
  55 /* m4 macro */
  56 
  57 
  58 
  59 
  60 
  61 
  62 
  63 
  64 typedef enum {
  65         FAC_NONE=0,
  66          FAC_RX   , 
  67          FAC_ER    ,                           
  68          FAC_IP   ,                   
  69          FAC_UP    ,                     
  70          FAC_UT    ,         
  71          FAC_WH    ,                  
  72          FAC_RP   ,            
  73          FAC_QI   ,                         
  74          FAC_QC   ,                       
  75          FAC_PW   ,                          
  76          FAC_SK   ,                    
  77          FAC_TH   ,                         
  78          FAC_SQ   ,                           
  79          FAC_PM   , 
  80          FAC_MM   , 
  81          FAC_SV   , 
  82          FAC_AC   ,
  83          FAC_UD   ,
  84          FAC_PA   , 
  85          FAC_PC   ,
  86         FAC_LAST
  87 } er_fac_code_t;
  88  
  89 /* paste the "include"s here. This will define error codes. */
  90 #include "er_RX_errors.h"
  91 #include "er_ER_errors.h"
  92 #include "er_IP_errors.h"
  93 #include "er_UP_errors.h"
  94 #include "er_UT_errors.h"
  95 #include "er_WH_errors.h"
  96 #include "er_RP_errors.h"
  97 #include "er_QI_errors.h"
  98 #include "er_QC_errors.h"
  99 #include "er_PW_errors.h"
 100 #include "er_SK_errors.h"
 101 #include "er_TH_errors.h"
 102 #include "er_SQ_errors.h"
 103 #include "er_PM_errors.h"
 104 #include "er_MM_errors.h"
 105 #include "er_SV_errors.h"
 106 #include "er_AC_errors.h"
 107 #include "er_UD_errors.h"
 108 #include "er_PA_errors.h"
 109 #include "er_PC_errors.h"
 110 
 111 
 112 #ifndef ER_IMPL
 113 /* just a declaration for modules using this */
 114 #include "erroutines.h"
 115 extern er_fac_t er_fac_err[];
 116 #else 
 117   er_fac_t      er_fac_err[] = {
 118 /*    {FAC_NONE}, */
 119 DEFFAC(RX,"radix tree indexing for IP/route objects"),
 120 DEFFAC(ER,"error system"),
 121 DEFFAC(IP,"IP conversion library"),
 122 DEFFAC(UP,"upper update layer"),
 123 DEFFAC(UT,"general utilities and wrappers"),
 124 DEFFAC(WH,"embedded whois client"),
 125 DEFFAC(RP,"radix tree payload functions"),
 126 DEFFAC(QI,"query execution"),
 127 DEFFAC(QC,"query preparation"),
 128 DEFFAC(PW,"protocol whois"),
 129 DEFFAC(SK,"socket communication"),
 130 DEFFAC(TH,"thread handling"),
 131 DEFFAC(SQ,"SQL interface"),
 132 DEFFAC(PM,"protocol mirror"),
 133 DEFFAC(MM,"MIME parser"),
 134 DEFFAC(SV,"main server functions"),
 135 DEFFAC(AC,"access control"),
 136 DEFFAC(UD,"core update process"),
 137 DEFFAC(PA,"GPG authentication"),
 138 DEFFAC(PC,"Protocol config"),
 139 
 140     {FAC_LAST}
 141   };
 142 #endif /* ER_IMPL */
 143 
 144 #endif /* ER_FACILITIES_H */

/* [<][>][^][v][top][bottom][index][help] */