summaryrefslogtreecommitdiffstats
path: root/lib/base/initialize.cpp
blob: 49b653fcf935aa76e3f654b3a4c68d89a3d4f072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#include "base/initialize.hpp"
#include "base/loader.hpp"

using namespace icinga;

bool icinga::InitializeOnceHelper(const std::function<void()>& func, InitializePriority priority)
{
	Loader::AddDeferredInitializer(func, priority);
	return true;
}