Build fix for non-unity builds

This commit is contained in:
Gunnar Beutner 2014-10-17 18:55:34 +02:00
parent f9209ec5e8
commit 152846ee38
4 changed files with 18 additions and 13 deletions

View File

@ -19,6 +19,8 @@
#include "base/clicommand.hpp"
#include "base/logger_fwd.hpp"
#include "base/type.hpp"
#include "base/serializer.hpp"
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/trim.hpp>

View File

@ -26,6 +26,7 @@
#include <fstream>
using namespace icinga;
namespace po = boost::program_options;
REGISTER_BLACKANDWHITELIST_CLICOMMAND("whitelist");
REGISTER_BLACKANDWHITELIST_CLICOMMAND("blacklist");

View File

@ -17,29 +17,30 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#ifndef AGENTUTILITYCOMMAND_H
#define AGENTUTILITYCOMMAND_H
#ifndef AGENTUTILITY_H
#define AGENTUTILITY_H
#include "base/i2-base.hpp"
#include "base/value.hpp"
namespace icinga
{
/**
* The "pki new-ca" command.
*
* @ingroup cli
*/
class AgentUtility {
class AgentUtility
{
public:
DECLARE_PTR_TYPEDEFS(AgentUtility);
void ListAgents(void);
bool AddAgent(const String& name);
bool RemoveAgent(const String& name);
bool SetAgentAttribute(const String& attr, const Value& val);
static void ListAgents(void);
static bool AddAgent(const String& name);
static bool RemoveAgent(const String& name);
static bool SetAgentAttribute(const String& attr, const Value& val);
private:
AgentUtility(void);
};
}
#endif /* AGENTUTILITYCOMMAND_H */
#endif /* AGENTUTILITY_H */

View File

@ -26,6 +26,7 @@
#include <fstream>
using namespace icinga;
namespace po = boost::program_options;
REGISTER_REPOSITORY_CLICOMMAND("Host");
REGISTER_REPOSITORY_CLICOMMAND("Service");