Fix warnings about invalid API function 'icinga::Hello'

fixes #9884
This commit is contained in:
Gunnar Beutner 2015-08-11 14:13:53 +02:00
parent 9b0375bed8
commit 1c657feea1
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "remote/jsonrpcconnection.hpp"
#include "remote/endpoint.hpp"
#include "remote/jsonrpc.hpp"
#include "remote/apifunction.hpp"
#include "base/convert.hpp"
#include "base/netstring.hpp"
#include "base/json.hpp"
@ -43,6 +44,8 @@ boost::signals2::signal<void(bool)> ApiListener::OnMasterChanged;
REGISTER_STATSFUNCTION(ApiListenerStats, &ApiListener::StatsFunc);
REGISTER_APIFUNCTION(Hello, icinga, &ApiListener::HelloAPIHandler);
ApiListener::ApiListener(void)
: m_LogMessageCount(0)
{ }
@ -922,3 +925,8 @@ std::set<HttpConnection::Ptr> ApiListener::GetHttpClients(void) const
ObjectLock olock(this);
return m_HttpClients;
}
Value ApiListener::HelloAPIHandler(const MessageOrigin& origin, const Dictionary::Ptr& params)
{
return Empty;
}

View File

@ -75,6 +75,7 @@ public:
static Value ConfigUpdateHandler(const MessageOrigin& origin, const Dictionary::Ptr& params);
static Value HelloAPIHandler(const MessageOrigin& origin, const Dictionary::Ptr& params);
protected:
virtual void OnConfigLoaded(void);
virtual void OnAllConfigLoaded(void);