Changeset 1eef1ee in nscp for NSCPlugin.h


Ignore:
Timestamp:
03/20/05 20:54:25 (8 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
c6e008c
Parents:
2a94f3f
Message:

*OBS* This might no longer work! (expect updated code in the next few days if things are broken)

  • Fundamental API changes (due to NRPE compatibility)
    • HandleCommand? has changed
    • Inject has changed
    • Most API calls have new "return codes" (typedef:ed INT to allow for return code compiler checks)
    • A lot of the old return codes have changed
  • Preliminary NRPE support (can parse and execute incoming requests, cant return data yet, and no encryption)
  • New SimpleSocket? in include/ will be used as base class for Listeners
  • A lot of rewrite to the NSC API
File:
1 edited

Legend:

Unmodified
Added
Removed
  • NSCPlugin.h

    r36c340d r1eef1ee  
    9393  typedef INT (*lpHasCommandHandler)(); 
    9494  typedef INT (*lpHasMessageHandler)(); 
    95   typedef INT (*lpHandleCommand)(const char*, const unsigned int, char**,char*,unsigned int); 
     95  typedef NSCAPI::nagiosReturn (*lpHandleCommand)(const char*,const unsigned int, char**,char*,unsigned int,char *,unsigned int); 
    9696  typedef INT (*lpHandleMessage)(int,const char*,const int,const char*); 
    9797  typedef int (*lpUnLoadModule)(); 
     
    115115  bool hasCommandHandler(void); 
    116116  bool hasMessageHandler(void); 
    117   int handleCommand(const char *command, const unsigned int, char **arguments, char* returnBuffer, unsigned int returnBufferLen); 
     117  NSCAPI::nagiosReturn handleCommand(const char *command, const unsigned int argLen, char **arguments, char* returnMessageBuffer, unsigned int returnMessageBufferLen, char* returnPerfBuffer, unsigned int returnPerfBufferLen); 
    118118  void handleMessage(int msgType, const char* file, const int line, const char *message); 
    119119  void unload(void); 
Note: See TracChangeset for help on using the changeset viewer.