2013-11-04 15:57:46 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2017-01-10 15:54:22 +01:00
|
|
|
* Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
|
2013-11-04 15:57:46 +01:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2015-09-22 18:18:29 +02:00
|
|
|
#include "hello/helloapplication.hpp"
|
|
|
|
#include "hello/helloapplication.tcpp"
|
|
|
|
#include "base/initialize.hpp"
|
2014-10-19 14:21:12 +02:00
|
|
|
#include "base/logger.hpp"
|
2015-09-22 18:18:29 +02:00
|
|
|
#include "base/scriptglobal.hpp"
|
2013-11-04 15:57:46 +01:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
2015-09-22 18:18:29 +02:00
|
|
|
REGISTER_TYPE(HelloApplication);
|
|
|
|
|
2016-08-27 09:35:08 +02:00
|
|
|
INITIALIZE_ONCE([]() {
|
2015-09-22 18:18:29 +02:00
|
|
|
ScriptGlobal::Set("ApplicationType", "HelloApplication");
|
2016-08-27 09:35:08 +02:00
|
|
|
});
|
2013-11-04 15:57:46 +01:00
|
|
|
|
|
|
|
/**
|
2015-09-22 18:18:29 +02:00
|
|
|
* The entry point for the hello application.
|
2013-11-04 15:57:46 +01:00
|
|
|
*
|
|
|
|
* @returns An exit status.
|
|
|
|
*/
|
2015-09-22 18:18:29 +02:00
|
|
|
int HelloApplication::Main(void)
|
2013-11-04 15:57:46 +01:00
|
|
|
{
|
2015-09-22 18:18:29 +02:00
|
|
|
Log(LogInformation, "HelloApplication", "Hello World!");
|
2013-11-04 15:57:46 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|