1: 
   2: 
   3: /*************
   4: *            *
   5: *  SENTINEL  *
   6: *            *
   7: *************/
   8: 
   9: 
  10: #ifndef WWWI_MIND_DNSUTIL_H 
  11: #define WWWI_MIND_DNSUTIL_H 
  12: 
  13: 
  14: /**********************
  15: *                     *
  16: *  COMPILER INCLUDES  *
  17: *                     *
  18: **********************/
  19: 
  20: 
  21: /*********************
  22: *                    *
  23: *  PROJECT INCLUDES  *
  24: *                    *
  25: *********************/
  26: 
  27: 
  28: #include "mind.h" 
  29: 
  30: 
  31: using std::ostream;
  32: using WWWI::SockAddrIn;
  33: 
  34: 
  35: /************************
  36: *                       *
  37: *  FUNCTION PROTOTYPES  *
  38: *                       *
  39: ************************/
  40: 
  41: 
  42: inline unsigned char         FromBits(bool i_b3, bool i_b2, bool i_b1, bool i_b0);
  43: inline unsigned char         FromBits(bool i_b7, bool i_b6, bool i_b5, bool i_b4, bool i_b3, bool i_b2, bool i_b1, bool i_b0);
  44: const char                  *GetClassName(RRClass i_cl);
  45: const char                  *GetOpcodeName(Opcode i_op);
  46: const char                  *GetRCodeName(RCode i_rc);
  47: const char                  *GetTypeName(RRType i_ty);
  48: inline bool                  IsRDataIP(RRType i_ty, RRClass i_cl);
  49: inline bool                  IsRDataLabelList(RRType i_ty, RRClass i_cl);
  50: inline bool                  MatchClass(RRClass i_cl1, RRClass i_cl2);
  51: inline bool                  MatchType(RRType i_ty1, RRType i_ty2);
  52: template <class T> void      SoftDelete(T* &io_tpr);
  53: template <class T> void      SoftDeleteArray(T* &io_tpr);
  54: 
  55: 
  56: /*********************
  57: *                    *
  58: *  INLINE FUNCTIONS  *
  59: *                    *
  60: *********************/
  61: 
  62: 
  63: #include "dnsutil.i" 
  64: 
  65: 
  66: /************
  67: *           *
  68: *  THE END  *
  69: *           *
  70: ************/
  71: 
  72: 
  73: #endif 
  74: 
  75: 
  76: