Changeset d5356c1 in nscp for service/NSClient++.h
- Timestamp:
- 11/04/09 06:52:49 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 3b4097d
- Parents:
- 2305b35
- File:
-
- 1 edited
-
service/NSClient++.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service/NSClient++.h
rf0eb62d rd5356c1 31 31 #include <com_helpers.hpp> 32 32 #include <nsclient_session.hpp> 33 33 34 34 35 /** … … 103 104 MutexRW m_mutexRWcmdDescriptions; 104 105 cmdMap cmdDescriptions_; 105 typedef enum log_status {log_unknown, log_ debug, log_nodebug };106 typedef enum log_status {log_unknown, log_looking, log_debug, log_nodebug }; 106 107 log_status debug_; 107 108 com_helper::initialize_com com_helper_; … … 181 182 typedef service_helper::NTService<NSClientT> NSClient; 182 183 184 extern NSClient mainClient; // Global core instance forward declaration. 185 183 186 184 187 std::wstring Encrypt(std::wstring str, unsigned int algorithm = NSCAPI::xor); 185 188 std::wstring Decrypt(std::wstring str, unsigned int algorithm = NSCAPI::xor); 186 187 //////////////////////////////////////////////////////////////////////////188 // Various NSAPI callback functions (available for plug-ins to make calls back to the core.189 // <b>NOTICE</b> No threading is allowed so technically every thread is responsible for marshaling things back.190 // Though I think this is not the case at the moment.191 //192 193 LPVOID NSAPILoader(TCHAR*buffer);194 NSCAPI::errorReturn NSAPIGetApplicationName(TCHAR*buffer, unsigned int bufLen);195 NSCAPI::errorReturn NSAPIGetBasePath(TCHAR*buffer, unsigned int bufLen);196 NSCAPI::errorReturn NSAPIGetApplicationVersionStr(TCHAR*buffer, unsigned int bufLen);197 NSCAPI::errorReturn NSAPIGetSettingsString(const TCHAR* section, const TCHAR* key, const TCHAR* defaultValue, TCHAR* buffer, unsigned int bufLen);198 int NSAPIGetSettingsInt(const TCHAR* section, const TCHAR* key, int defaultValue);199 void NSAPIMessage(int msgType, const TCHAR* file, const int line, const TCHAR* message);200 void NSAPIStopServer(void);201 NSCAPI::nagiosReturn NSAPIInject(const TCHAR* command, const unsigned int argLen, TCHAR **argument, TCHAR *returnMessageBuffer, unsigned int returnMessageBufferLen, TCHAR *returnPerfBuffer, unsigned int returnPerfBufferLen);202 NSCAPI::errorReturn NSAPIGetSettingsSection(const TCHAR*, TCHAR***, unsigned int *);203 NSCAPI::errorReturn NSAPIReleaseSettingsSectionBuffer(TCHAR*** aBuffer, unsigned int * bufLen);204 NSCAPI::boolReturn NSAPICheckLogMessages(int messageType);205 NSCAPI::errorReturn NSAPIEncrypt(unsigned int algorithm, const TCHAR* inBuffer, unsigned int inBufLen, TCHAR* outBuf, unsigned int *outBufLen);206 NSCAPI::errorReturn NSAPIDecrypt(unsigned int algorithm, const TCHAR* inBuffer, unsigned int inBufLen, TCHAR* outBuf, unsigned int *outBufLen);207 NSCAPI::errorReturn NSAPISetSettingsString(const TCHAR* section, const TCHAR* key, const TCHAR* value);208 NSCAPI::errorReturn NSAPISetSettingsInt(const TCHAR* section, const TCHAR* key, int value);209 NSCAPI::errorReturn NSAPIWriteSettings(int type);210 NSCAPI::errorReturn NSAPIReadSettings(int type);211 NSCAPI::errorReturn NSAPIRehash(int flag);212 NSCAPI::errorReturn NSAPIDescribeCommand(const TCHAR*,TCHAR*,unsigned int);213 NSCAPI::errorReturn NSAPIGetAllCommandNames(TCHAR***, unsigned int *);214 NSCAPI::errorReturn NSAPIReleaseAllCommandNamessBuffer(TCHAR***, unsigned int *);215 NSCAPI::errorReturn NSAPIRegisterCommand(const TCHAR*,const TCHAR*);216 NSCAPI::errorReturn NSAPISettingsRegKey(const TCHAR*, const TCHAR*, int, const TCHAR*, const TCHAR*, const TCHAR*, int);217 NSCAPI::errorReturn NSAPISettingsRegPath(const TCHAR*, const TCHAR*, const TCHAR*, int);218 NSCAPI::errorReturn NSAPIGetPluginList(int*, NSCAPI::plugin_info*[]);219 NSCAPI::errorReturn NSAPIReleasePluginList(int,NSCAPI::plugin_info*[]);220 NSCAPI::errorReturn NSAPISettingsSave(void);221 222 189 223 190 //////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.








