Changeset 818b54e in nscp for service/NSClient++.h
- Timestamp:
- 11/11/09 06:59:09 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 3eedfa6
- Parents:
- 77b729e
- File:
-
- 1 edited
-
service/NSClient++.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service/NSClient++.h
r77b729e r818b54e 20 20 ***************************************************************************/ 21 21 #pragma once 22 22 #include <types.hpp> 23 23 #include <config.h> 24 24 #include <service/system_service.hpp> … … 146 146 // Member functions 147 147 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, TCHARsplitter, 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); 150 150 // std::wstring inject(const std::wstring buffer); 151 151 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); 154 154 155 155 void addPlugins(const std::list<std::wstring> plugins); … … 161 161 void registerCommand(std::wstring cmd, std::wstring desc); 162 162 unsigned int getBufferLength(); 163 void HandleSettingsCLI( TCHAR* arg, int argc, TCHAR* argv[]);163 void HandleSettingsCLI(wchar_t* arg, int argc, wchar_t* argv[]); 164 164 void startTrayIcons(); 165 165 void startTrayIcon(DWORD dwSessionId); … … 172 172 void session_error(std::wstring file, unsigned int line, std::wstring msg); 173 173 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) { 175 175 reportMessage(msgType, file, line, message); 176 176 } 177 int session_inject(std::wstring command, std::wstring arguments, TCHARsplitter, 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) { 178 178 return inject(command, arguments, splitter, escape, msg, perf); 179 179 } … … 197 197 std::wstring Decrypt(std::wstring str, unsigned int algorithm = NSCAPI::encryption_xor); 198 198 199 #ifndef __FILEW__200 #define R(x) _T(x)201 #define __FILEW__ R(__FILE__)202 #endif203 199 ////////////////////////////////////////////////////////////////////////// 204 200 // Log macros to simplify logging
Note: See TracChangeset
for help on using the changeset viewer.








