Changeset 818b54e in nscp for service/NSClient++.h


Ignore:
Timestamp:
11/11/09 06:59:09 (4 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
3eedfa6
Parents:
77b729e
Message:

First version which builds on Linux!!! (though 99% of all features are still disabled).
All it does is build and tell you there is no settings subsystem (which there isn't as simpleini does not support wchar_t on unix :(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/NSClient++.h

    r77b729e r818b54e  
    2020***************************************************************************/ 
    2121#pragma once 
    22  
     22#include <types.hpp> 
    2323#include <config.h> 
    2424#include <service/system_service.hpp> 
     
    146146  // Member functions 
    147147  std::wstring getBasePath(void); 
    148   NSCAPI::nagiosReturn injectRAW(const TCHAR* command, const unsigned int argLen, TCHAR **argument, TCHAR *returnMessageBuffer, unsigned int returnMessageBufferLen, TCHAR *returnPerfBuffer, unsigned int returnPerfBufferLen); 
    149   NSCAPI::nagiosReturn NSClientT::inject(std::wstring command, std::wstring arguments, TCHAR splitter, bool escape, std::wstring &msg, std::wstring & perf); 
     148  NSCAPI::nagiosReturn injectRAW(const wchar_t* command, const unsigned int argLen, wchar_t **argument, wchar_t *returnMessageBuffer, unsigned int returnMessageBufferLen, wchar_t *returnPerfBuffer, unsigned int returnPerfBufferLen); 
     149  NSCAPI::nagiosReturn inject(std::wstring command, std::wstring arguments, wchar_t splitter, bool escape, std::wstring &msg, std::wstring & perf); 
    150150//  std::wstring inject(const std::wstring buffer); 
    151151  std::wstring execute(std::wstring password, std::wstring cmd, std::list<std::wstring> args); 
    152   void reportMessage(int msgType, const TCHAR* file, const int line, std::wstring message); 
    153   int commandLineExec(const TCHAR* module, const TCHAR* command, const unsigned int argLen, TCHAR** args); 
     152  void reportMessage(int msgType, const wchar_t* file, const int line, std::wstring message); 
     153  int commandLineExec(const wchar_t* module, const wchar_t* command, const unsigned int argLen, wchar_t** args); 
    154154 
    155155  void addPlugins(const std::list<std::wstring> plugins); 
     
    161161  void registerCommand(std::wstring cmd, std::wstring desc); 
    162162  unsigned int getBufferLength(); 
    163   void HandleSettingsCLI(TCHAR* arg, int argc, TCHAR* argv[]); 
     163  void HandleSettingsCLI(wchar_t* arg, int argc, wchar_t* argv[]); 
    164164  void startTrayIcons(); 
    165165  void startTrayIcon(DWORD dwSessionId); 
     
    172172  void session_error(std::wstring file, unsigned int line, std::wstring msg); 
    173173  void session_info(std::wstring file, unsigned int line, std::wstring msg); 
    174   void session_log_message(int msgType, const TCHAR* file, const int line, std::wstring message) { 
     174  void session_log_message(int msgType, const wchar_t* file, const int line, std::wstring message) { 
    175175    reportMessage(msgType, file, line, message); 
    176176  } 
    177   int session_inject(std::wstring command, std::wstring arguments, TCHAR splitter, bool escape, std::wstring &msg, std::wstring & perf) { 
     177  int session_inject(std::wstring command, std::wstring arguments, wchar_t splitter, bool escape, std::wstring &msg, std::wstring & perf) { 
    178178    return inject(command, arguments, splitter, escape, msg, perf); 
    179179  } 
     
    197197std::wstring Decrypt(std::wstring str, unsigned int algorithm = NSCAPI::encryption_xor); 
    198198 
    199 #ifndef __FILEW__ 
    200 #define R(x) _T(x) 
    201 #define __FILEW__ R(__FILE__) 
    202 #endif 
    203199////////////////////////////////////////////////////////////////////////// 
    204200// Log macros to simplify logging 
Note: See TracChangeset for help on using the changeset viewer.