Changeset 5d8e0b5 in nscp for trunk/include/NSCHelper.h


Ignore:
Timestamp:
04/19/05 00:50:16 (8 years ago)
Author:
Michael Medin <michael@…>
Children:
ae192e3
Parents:
ce6eabf
Message:

MAJOR CHANGES
2004-04-19 MickeM

+ Added SSL support
+ Added alot of new options
+ Added documentation

  • Renamed and restructured NSCLientCompat to CheckSystem
  • *ALOT* of fixes all over : We are now starting to get to something that is "stable" : This means that soon you might actually be able to use this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/NSCHelper.h

    rf705d34 r5d8e0b5  
    1919  std::string translateReturn(NSCAPI::nagiosReturn returnCode); 
    2020  NSCAPI::nagiosReturn maxState(NSCAPI::nagiosReturn a, NSCAPI::nagiosReturn b); 
     21 
     22  inline bool isNagiosReturnCode(NSCAPI::nagiosReturn code) { 
     23    if ( (code == NSCAPI::returnOK) || (code == NSCAPI::returnWARN) || (code == NSCAPI::returnCRIT) || (code == NSCAPI::returnUNKNOWN) ) 
     24      return true; 
     25    return false; 
     26  } 
    2127 
    2228#ifdef DEBUG 
     
    159165  NSCModuleHelper::Message(NSCAPI::debug, __FILE__, __LINE__, msg) 
    160166 
     167/* 
     168#define NSC_DEBUG_MSG_STD(msg) 
     169#define NSC_DEBUG_MSG(msg) 
     170*/ 
    161171////////////////////////////////////////////////////////////////////////// 
    162172// Message wrappers below this point 
Note: See TracChangeset for help on using the changeset viewer.