source: nscp/service/core_api.h @ b3078b4

0.4.00.4.10.4.2
Last change on this file since b3078b4 was 818b54e, checked in by Michael Medin <michael@…>, 4 years ago

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 :(

  • Property mode set to 100644
File size: 4.3 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2004-2007 by Michael Medin <michael@medin.name>         *
3*                                                                         *
4*   This code is part of NSClient++ - http://trac.nakednuns.org/nscp      *
5*                                                                         *
6*   This program is free software; you can redistribute it and/or modify  *
7*   it under the terms of the GNU General Public License as published by  *
8*   the Free Software Foundation; either version 2 of the License, or     *
9*   (at your option) any later version.                                   *
10*                                                                         *
11*   This program is distributed in the hope that it will be useful,       *
12*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14*   GNU General Public License for more details.                          *
15*                                                                         *
16*   You should have received a copy of the GNU General Public License     *
17*   along with this program; if not, write to the                         *
18*   Free Software Foundation, Inc.,                                       *
19*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20***************************************************************************/
21#pragma once
22
23#include <NSCAPI.h>
24
25
26//////////////////////////////////////////////////////////////////////////
27// Various NSAPI callback functions (available for plug-ins to make calls back to the core.
28// <b>NOTICE</b> No threading is allowed so technically every thread is responsible for marshaling things back.
29// Though I think this is not the case at the moment.
30//
31
32LPVOID NSAPILoader(wchar_t*buffer);
33NSCAPI::errorReturn NSAPIGetApplicationName(wchar_t*buffer, unsigned int bufLen);
34NSCAPI::errorReturn NSAPIGetBasePath(wchar_t*buffer, unsigned int bufLen);
35NSCAPI::errorReturn NSAPIGetApplicationVersionStr(wchar_t*buffer, unsigned int bufLen);
36NSCAPI::errorReturn NSAPIGetSettingsString(const wchar_t* section, const wchar_t* key, const wchar_t* defaultValue, wchar_t* buffer, unsigned int bufLen);
37int NSAPIGetSettingsInt(const wchar_t* section, const wchar_t* key, int defaultValue);
38void NSAPIMessage(int msgType, const wchar_t* file, const int line, const wchar_t* message);
39void NSAPIStopServer(void);
40NSCAPI::nagiosReturn NSAPIInject(const wchar_t* command, const unsigned int argLen, wchar_t **argument, wchar_t *returnMessageBuffer, unsigned int returnMessageBufferLen, wchar_t *returnPerfBuffer, unsigned int returnPerfBufferLen);
41NSCAPI::errorReturn NSAPIGetSettingsSection(const wchar_t*, wchar_t***, unsigned int *);
42NSCAPI::errorReturn NSAPIReleaseSettingsSectionBuffer(wchar_t*** aBuffer, unsigned int * bufLen);
43NSCAPI::boolReturn NSAPICheckLogMessages(int messageType);
44NSCAPI::errorReturn NSAPIEncrypt(unsigned int algorithm, const wchar_t* inBuffer, unsigned int inBufLen, wchar_t* outBuf, unsigned int *outBufLen);
45NSCAPI::errorReturn NSAPIDecrypt(unsigned int algorithm, const wchar_t* inBuffer, unsigned int inBufLen, wchar_t* outBuf, unsigned int *outBufLen);
46NSCAPI::errorReturn NSAPISetSettingsString(const wchar_t* section, const wchar_t* key, const wchar_t* value);
47NSCAPI::errorReturn NSAPISetSettingsInt(const wchar_t* section, const wchar_t* key, int value);
48NSCAPI::errorReturn NSAPIWriteSettings(int type);
49NSCAPI::errorReturn NSAPIReadSettings(int type);
50NSCAPI::errorReturn NSAPIRehash(int flag);
51NSCAPI::errorReturn NSAPIDescribeCommand(const wchar_t*,wchar_t*,unsigned int);
52NSCAPI::errorReturn NSAPIGetAllCommandNames(wchar_t***, unsigned int *);
53NSCAPI::errorReturn NSAPIReleaseAllCommandNamessBuffer(wchar_t***, unsigned int *);
54NSCAPI::errorReturn NSAPIRegisterCommand(const wchar_t*,const wchar_t*);
55NSCAPI::errorReturn NSAPISettingsRegKey(const wchar_t*, const wchar_t*, int, const wchar_t*, const wchar_t*, const wchar_t*, int);
56NSCAPI::errorReturn NSAPISettingsRegPath(const wchar_t*, const wchar_t*, const wchar_t*, int);
57NSCAPI::errorReturn NSAPIGetPluginList(int*, NSCAPI::plugin_info*[]);
58NSCAPI::errorReturn NSAPIReleasePluginList(int,NSCAPI::plugin_info*[]);
59NSCAPI::errorReturn NSAPISettingsSave(void);
Note: See TracBrowser for help on using the repository browser.