diff --git a/components/checker/checkercomponent.cpp b/components/checker/checkercomponent.cpp index c65ca8925..2ee6cb56d 100644 --- a/components/checker/checkercomponent.cpp +++ b/components/checker/checkercomponent.cpp @@ -40,7 +40,7 @@ void CheckerComponent::Start(void) m_Stopped = false; - m_Thread = thread(boost::bind(&CheckerComponent::CheckThreadProc, this)); + m_Thread = boost::thread(boost::bind(&CheckerComponent::CheckThreadProc, this)); m_ResultTimer = boost::make_shared(); m_ResultTimer->SetInterval(5); diff --git a/components/checker/checkercomponent.h b/components/checker/checkercomponent.h index f93d4f343..0de4306ae 100644 --- a/components/checker/checkercomponent.h +++ b/components/checker/checkercomponent.h @@ -74,7 +74,7 @@ private: boost::mutex m_Mutex; boost::condition_variable m_CV; bool m_Stopped; - thread m_Thread; + boost::thread m_Thread; ServiceSet m_IdleServices; ServiceSet m_PendingServices; diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp index 7c06d6315..eea8ed77e 100644 --- a/components/compat/compatcomponent.cpp +++ b/components/compat/compatcomponent.cpp @@ -41,7 +41,7 @@ void CompatComponent::Start(void) m_StatusTimer->Reschedule(0); #ifndef _WIN32 - m_CommandThread = thread(boost::bind(&CompatComponent::CommandPipeThread, this, GetCommandPath())); + m_CommandThread = boost::thread(boost::bind(&CompatComponent::CommandPipeThread, this, GetCommandPath())); m_CommandThread.detach(); #endif /* _WIN32 */ } diff --git a/components/compat/compatcomponent.h b/components/compat/compatcomponent.h index 4da7e826f..9c412dd10 100644 --- a/components/compat/compatcomponent.h +++ b/components/compat/compatcomponent.h @@ -46,7 +46,7 @@ private: Attribute m_CommandPath; #ifndef _WIN32 - thread m_CommandThread; + boost::thread m_CommandThread; void CommandPipeThread(const String& commandPath); #endif /* _WIN32 */ diff --git a/components/livestatus/column.h b/components/livestatus/column.h index 2f226322a..94718a4fe 100644 --- a/components/livestatus/column.h +++ b/components/livestatus/column.h @@ -26,8 +26,8 @@ namespace livestatus class Column { public: - typedef function ValueAccessor; - typedef function ObjectAccessor; + typedef boost::function ValueAccessor; + typedef boost::function ObjectAccessor; Column(const ValueAccessor& valueAccessor, const ObjectAccessor& objectAccessor); diff --git a/components/livestatus/commentstable.cpp b/components/livestatus/commentstable.cpp index 935361727..ed2720523 100644 --- a/components/livestatus/commentstable.cpp +++ b/components/livestatus/commentstable.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-livestatus.h" +#include using namespace icinga; using namespace livestatus; @@ -50,7 +51,7 @@ String CommentsTable::GetName(void) const return "comments"; } -void CommentsTable::FetchRows(const function& addRowFn) +void CommentsTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Service")) { Service::Ptr service = static_pointer_cast(object); @@ -62,7 +63,7 @@ void CommentsTable::FetchRows(const function& addRowF ObjectLock olock(comments); Value comment; - BOOST_FOREACH(tie(tuples::ignore, comment), comments) { + BOOST_FOREACH(boost::tie(boost::tuples::ignore, comment), comments) { addRowFn(comment); } } diff --git a/components/livestatus/commentstable.h b/components/livestatus/commentstable.h index e3997dfba..aaa58dad2 100644 --- a/components/livestatus/commentstable.h +++ b/components/livestatus/commentstable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); }; } diff --git a/components/livestatus/contactgroupstable.cpp b/components/livestatus/contactgroupstable.cpp index 3b9f8a98f..39638a97a 100644 --- a/components/livestatus/contactgroupstable.cpp +++ b/components/livestatus/contactgroupstable.cpp @@ -40,7 +40,7 @@ String ContactGroupsTable::GetName(void) const return "contactgroups"; } -void ContactGroupsTable::FetchRows(const function& addRowFn) +void ContactGroupsTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("UserGroup")) { addRowFn(object); @@ -61,4 +61,4 @@ Value ContactGroupsTable::MembersAccessor(const Object::Ptr& object) } return members; -} \ No newline at end of file +} diff --git a/components/livestatus/contactgroupstable.h b/components/livestatus/contactgroupstable.h index c5431d5ae..1d6cd9ce6 100644 --- a/components/livestatus/contactgroupstable.h +++ b/components/livestatus/contactgroupstable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); static Value NameAccessor(const Object::Ptr& object); static Value MembersAccessor(const Object::Ptr& object); diff --git a/components/livestatus/contactstable.cpp b/components/livestatus/contactstable.cpp index a0a81fbf9..473bd3481 100644 --- a/components/livestatus/contactstable.cpp +++ b/components/livestatus/contactstable.cpp @@ -53,7 +53,7 @@ String ContactsTable::GetName(void) const return "contacts"; } -void ContactsTable::FetchRows(const function& addRowFn) +void ContactsTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("User")) { addRowFn(object); diff --git a/components/livestatus/contactstable.h b/components/livestatus/contactstable.h index 246127d7b..1a22f91bb 100644 --- a/components/livestatus/contactstable.h +++ b/components/livestatus/contactstable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); static Value NameAccessor(const Object::Ptr& object); static Value MembersAccessor(const Object::Ptr& object); diff --git a/components/livestatus/downtimestable.cpp b/components/livestatus/downtimestable.cpp index 7ce057f92..1e1b11138 100644 --- a/components/livestatus/downtimestable.cpp +++ b/components/livestatus/downtimestable.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-livestatus.h" +#include using namespace icinga; using namespace livestatus; @@ -50,7 +51,7 @@ String DowntimesTable::GetName(void) const return "downtimes"; } -void DowntimesTable::FetchRows(const function& addRowFn) +void DowntimesTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Service")) { Service::Ptr service = static_pointer_cast(object); @@ -62,7 +63,7 @@ void DowntimesTable::FetchRows(const function& addRow ObjectLock olock(downtimes); Value downtime; - BOOST_FOREACH(tie(tuples::ignore, downtime), downtimes) { + BOOST_FOREACH(boost::tie(boost::tuples::ignore, downtime), downtimes) { addRowFn(downtime); } } diff --git a/components/livestatus/downtimestable.h b/components/livestatus/downtimestable.h index 1505321d7..23e788565 100644 --- a/components/livestatus/downtimestable.h +++ b/components/livestatus/downtimestable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); }; } diff --git a/components/livestatus/hoststable.cpp b/components/livestatus/hoststable.cpp index 32de6681e..cb64f2411 100644 --- a/components/livestatus/hoststable.cpp +++ b/components/livestatus/hoststable.cpp @@ -145,7 +145,7 @@ String HostsTable::GetName(void) const return "hosts"; } -void HostsTable::FetchRows(const function& addRowFn) +void HostsTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Host")) { addRowFn(object); diff --git a/components/livestatus/hoststable.h b/components/livestatus/hoststable.h index bf6ecc01e..e16524a2a 100644 --- a/components/livestatus/hoststable.h +++ b/components/livestatus/hoststable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); static Value NameAccessor(const Object::Ptr& object); static Value DisplayNameAccessor(const Object::Ptr& object); diff --git a/components/livestatus/query.cpp b/components/livestatus/query.cpp index 5ebe405bd..45280b591 100644 --- a/components/livestatus/query.cpp +++ b/components/livestatus/query.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-livestatus.h" +#include using namespace icinga; using namespace livestatus; @@ -62,11 +63,11 @@ Query::Query(const vector& lines) else if (header == "OutputFormat") m_OutputFormat = params; else if (header == "Columns") - m_Columns = params.Split(is_any_of(" ")); + m_Columns = params.Split(boost::is_any_of(" ")); else if (header == "ColumnHeaders") m_ColumnHeaders = (params == "on"); else if (header == "Filter" || header == "Stats") { - vector tokens = params.Split(is_any_of(" ")); + vector tokens = params.Split(boost::is_any_of(" ")); if (tokens.size() == 2) tokens.push_back(""); diff --git a/components/livestatus/servicestable.cpp b/components/livestatus/servicestable.cpp index 2010abef0..97fe4e297 100644 --- a/components/livestatus/servicestable.cpp +++ b/components/livestatus/servicestable.cpp @@ -121,7 +121,7 @@ String ServicesTable::GetName(void) const return "services"; } -void ServicesTable::FetchRows(const function& addRowFn) +void ServicesTable::FetchRows(const AddRowFunction& addRowFn) { BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Service")) { addRowFn(object); diff --git a/components/livestatus/servicestable.h b/components/livestatus/servicestable.h index 7b08199f9..cf7abce09 100644 --- a/components/livestatus/servicestable.h +++ b/components/livestatus/servicestable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); static Object::Ptr HostAccessor(const Object::Ptr& object); diff --git a/components/livestatus/statustable.cpp b/components/livestatus/statustable.cpp index b4e212bd0..e35415c7b 100644 --- a/components/livestatus/statustable.cpp +++ b/components/livestatus/statustable.cpp @@ -96,7 +96,7 @@ String StatusTable::GetName(void) const return "status"; } -void StatusTable::FetchRows(const function& addRowFn) +void StatusTable::FetchRows(const AddRowFunction& addRowFn) { Object::Ptr obj = boost::make_shared(); diff --git a/components/livestatus/statustable.h b/components/livestatus/statustable.h index 971d2d5c0..4320fedbf 100644 --- a/components/livestatus/statustable.h +++ b/components/livestatus/statustable.h @@ -40,7 +40,7 @@ public: virtual String GetName(void) const; protected: - virtual void FetchRows(const function& addRowFn); + virtual void FetchRows(const AddRowFunction& addRowFn); }; } diff --git a/components/livestatus/table.cpp b/components/livestatus/table.cpp index dba1178b5..c3fdeede4 100644 --- a/components/livestatus/table.cpp +++ b/components/livestatus/table.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-livestatus.h" +#include using namespace icinga; using namespace livestatus; @@ -70,7 +71,7 @@ vector Table::GetColumnNames(void) const vector names; String name; - BOOST_FOREACH(tie(name, tuples::ignore), m_Columns) { + BOOST_FOREACH(boost::tie(name, boost::tuples::ignore), m_Columns) { names.push_back(name); } diff --git a/components/livestatus/table.h b/components/livestatus/table.h index d5813fd11..ac35f8938 100644 --- a/components/livestatus/table.h +++ b/components/livestatus/table.h @@ -34,6 +34,8 @@ public: typedef shared_ptr Ptr; typedef weak_ptr
WeakPtr; + typedef boost::function AddRowFunction; + static Table::Ptr GetByName(const String& name); @@ -48,7 +50,7 @@ public: protected: Table(void); - virtual void FetchRows(const function& addRowFn) = 0; + virtual void FetchRows(const AddRowFunction& addRowFn) = 0; static Value ZeroAccessor(const Object::Ptr&); static Value OneAccessor(const Object::Ptr&); diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 2350259d1..64d6bea9f 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -18,7 +18,8 @@ ******************************************************************************/ #include - +#include +#include #ifndef _WIN32 # include "icinga-version.h" @@ -49,7 +50,7 @@ static bool LoadConfigFiles(bool validateOnly) } String name, fragment; - BOOST_FOREACH(tie(name, fragment), ConfigFragmentRegistry::GetInstance()->GetItems()) { + BOOST_FOREACH(boost::tie(name, fragment), ConfigFragmentRegistry::GetInstance()->GetItems()) { ConfigCompiler::CompileText(name, fragment); } diff --git a/lib/base/application.cpp b/lib/base/application.cpp index c21be8e5b..17aad626a 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -18,6 +18,9 @@ ******************************************************************************/ #include "i2-base.h" +#include +#include +#include using namespace icinga; @@ -126,7 +129,7 @@ void Application::ShutdownTimerHandler(void) void Application::RunEventLoop(void) const { /* Start the system time watch thread. */ - thread t(&Application::TimeWatchThreadProc); + boost::thread t(&Application::TimeWatchThreadProc); t.detach(); /* Set up a timer that watches the m_Shutdown flag. */ diff --git a/lib/base/asynctask.h b/lib/base/asynctask.h index 210720311..9e4a84d83 100644 --- a/lib/base/asynctask.h +++ b/lib/base/asynctask.h @@ -20,6 +20,11 @@ #ifndef ASYNCTASK_H #define ASYNCTASK_H +#include +#include +#include +#include + namespace icinga { @@ -38,7 +43,7 @@ public: /** * A completion callback for an AsyncTask. */ - typedef function&)> CompletionCallback; + typedef boost::function&)> CompletionCallback; /** * Constructor for the AsyncTask class. diff --git a/lib/base/connection.cpp b/lib/base/connection.cpp index cedd4ef6f..6fb0c7947 100644 --- a/lib/base/connection.cpp +++ b/lib/base/connection.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-base.h" +#include using namespace icinga; diff --git a/lib/base/convert.cpp b/lib/base/convert.cpp index 3a35326c6..6a55d643f 100644 --- a/lib/base/convert.cpp +++ b/lib/base/convert.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-base.h" +#include using namespace icinga; diff --git a/lib/base/dictionary.cpp b/lib/base/dictionary.cpp index 0914fa65e..86f1ce2fa 100644 --- a/lib/base/dictionary.cpp +++ b/lib/base/dictionary.cpp @@ -19,6 +19,7 @@ #include "i2-base.h" #include +#include using namespace icinga; @@ -248,7 +249,7 @@ Dictionary::Ptr Dictionary::ShallowClone(void) const String key; Value value; - BOOST_FOREACH(tie(key, value), m_Data) { + BOOST_FOREACH(boost::tie(key, value), m_Data) { clone->Set(key, value); } @@ -294,7 +295,7 @@ cJSON *Dictionary::ToJson(void) const String key; Value value; - BOOST_FOREACH(tie(key, value), m_Data) { + BOOST_FOREACH(boost::tie(key, value), m_Data) { cJSON_AddItemToObject(json, key.CStr(), value.ToJson()); } } catch (...) { diff --git a/lib/base/dynamicobject.h b/lib/base/dynamicobject.h index aeee01c39..467692833 100644 --- a/lib/base/dynamicobject.h +++ b/lib/base/dynamicobject.h @@ -20,6 +20,8 @@ #ifndef DYNAMICOBJECT_H #define DYNAMICOBJECT_H +#include + namespace icinga { diff --git a/lib/base/dynamictype.h b/lib/base/dynamictype.h index 6c20147de..9507b18f5 100644 --- a/lib/base/dynamictype.h +++ b/lib/base/dynamictype.h @@ -20,6 +20,8 @@ #ifndef DYNAMICTYPE_H #define DYNAMICTYPE_H +#include + namespace icinga { @@ -29,7 +31,7 @@ public: typedef shared_ptr Ptr; typedef weak_ptr WeakPtr; - typedef function ObjectFactory; + typedef boost::function ObjectFactory; DynamicType(const String& name, const ObjectFactory& factory); @@ -73,7 +75,7 @@ private: * * @ingroup base */ -class I2_BASE_API DynamicTypeRegistry : public Registry +class DynamicTypeRegistry : public Registry { }; /** diff --git a/lib/base/eventqueue.cpp b/lib/base/eventqueue.cpp index e25f8d023..3fa30df40 100644 --- a/lib/base/eventqueue.cpp +++ b/lib/base/eventqueue.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "i2-base.h" +#include using namespace icinga; @@ -27,7 +28,7 @@ using namespace icinga; EventQueue::EventQueue(void) : m_Stopped(false) { - unsigned int threads = thread::hardware_concurrency(); + unsigned int threads = boost::thread::hardware_concurrency(); if (threads == 0) threads = 1; @@ -37,7 +38,7 @@ EventQueue::EventQueue(void) for (unsigned int i = 0; i < threads; i++) m_Threads.create_thread(boost::bind(&EventQueue::QueueThreadProc, this)); - thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this)); + boost::thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this)); reportThread.detach(); } diff --git a/lib/base/eventqueue.h b/lib/base/eventqueue.h index 141e4c381..3637fab89 100644 --- a/lib/base/eventqueue.h +++ b/lib/base/eventqueue.h @@ -20,6 +20,11 @@ #ifndef EVENTQUEUE_H #define EVENTQUEUE_H +#include +#include +#include +#include + namespace icinga { @@ -33,7 +38,7 @@ class Timer; class I2_BASE_API EventQueue { public: - typedef function Callback; + typedef boost::function Callback; EventQueue(void); ~EventQueue(void); @@ -44,10 +49,10 @@ public: void Post(const Callback& callback); private: - thread_group m_Threads; + boost::thread_group m_Threads; boost::mutex m_Mutex; - condition_variable m_CV; + boost::condition_variable m_CV; bool m_Stopped; stack m_Events; diff --git a/lib/base/exception.h b/lib/base/exception.h index 9d3901b57..3d6e87b29 100644 --- a/lib/base/exception.h +++ b/lib/base/exception.h @@ -20,6 +20,8 @@ #ifndef EXCEPTION_H #define EXCEPTION_H +#include + namespace icinga { diff --git a/lib/base/i2-base.h b/lib/base/i2-base.h index 6010fc9bf..d176c6b91 100644 --- a/lib/base/i2-base.h +++ b/lib/base/i2-base.h @@ -126,21 +126,8 @@ using std::type_info; #include #include #include -#include #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include #include #include #include @@ -149,23 +136,11 @@ using std::type_info; #include #include #include -#include using boost::shared_ptr; using boost::weak_ptr; -using boost::enable_shared_from_this; using boost::dynamic_pointer_cast; using boost::static_pointer_cast; -using boost::function; -using boost::thread; -using boost::thread_group; -using boost::recursive_mutex; -using boost::condition_variable; -using boost::system_time; -using boost::posix_time::millisec; -using boost::tie; -using boost::rethrow_exception; -using boost::current_exception; using boost::diagnostic_information; using boost::errinfo_api_function; using boost::errinfo_errno; @@ -177,7 +152,6 @@ using boost::multi_index::ordered_unique; using boost::multi_index::ordered_non_unique; using boost::multi_index::nth_index; -namespace tuples = boost::tuples; namespace signals2 = boost::signals2; #if defined(__APPLE__) && defined(__MACH__) diff --git a/lib/base/object.h b/lib/base/object.h index 37b565bf8..fb49f39d5 100644 --- a/lib/base/object.h +++ b/lib/base/object.h @@ -20,6 +20,8 @@ #ifndef OBJECT_H #define OBJECT_H +#include + namespace icinga { @@ -31,7 +33,7 @@ class SharedPtrHolder; * * @ingroup base */ -class I2_BASE_API Object : public enable_shared_from_this +class I2_BASE_API Object : public boost::enable_shared_from_this { public: typedef shared_ptr Ptr; diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp index 250e52c30..ceadd9276 100644 --- a/lib/base/process-unix.cpp +++ b/lib/base/process-unix.cpp @@ -18,13 +18,15 @@ ******************************************************************************/ #include "i2-base.h" +#include +#include #ifndef _WIN32 #include using namespace icinga; -condition_variable Process::m_CV; +boost::condition_variable Process::m_CV; int Process::m_TaskFd; Timer::Ptr Process::m_StatusTimer; @@ -60,7 +62,7 @@ void Process::Initialize(void) m_TaskFd = fds[1]; - unsigned int threads = thread::hardware_concurrency(); + unsigned int threads = boost::thread::hardware_concurrency(); if (threads == 0) threads = 2; @@ -77,7 +79,7 @@ void Process::Initialize(void) Utility::SetNonBlocking(childTaskFd); Utility::SetCloExec(childTaskFd); - thread t(&Process::WorkerThreadProc, childTaskFd); + boost::thread t(&Process::WorkerThreadProc, childTaskFd); t.detach(); } @@ -108,7 +110,7 @@ void Process::WorkerThreadProc(int taskFd) int idx = 0; int fd; - BOOST_FOREACH(tie(fd, tuples::ignore), tasks) { + BOOST_FOREACH(boost::tie(fd, boost::tuples::ignore), tasks) { pfds[idx].fd = fd; pfds[idx].events = POLLIN | POLLHUP; idx++; @@ -284,7 +286,7 @@ void Process::InitTask(void) String key; Value value; int index = envc; - BOOST_FOREACH(tie(key, value), m_ExtraEnvironment) { + BOOST_FOREACH(boost::tie(key, value), m_ExtraEnvironment) { String kv = key + "=" + Convert::ToString(value); envp[index] = strdup(kv.CStr()); index++; diff --git a/lib/base/process.h b/lib/base/process.h index 1b0dbd168..1c32b7ddf 100644 --- a/lib/base/process.h +++ b/lib/base/process.h @@ -20,6 +20,10 @@ #ifndef PROCESS_H #define PROCESS_H +#include +#include +#include + namespace icinga { @@ -71,7 +75,7 @@ private: static boost::mutex m_Mutex; static deque m_Tasks; #ifndef _WIN32 - static condition_variable m_CV; + static boost::condition_variable m_CV; static int m_TaskFd; static Timer::Ptr m_StatusTimer; diff --git a/lib/base/qstring.cpp b/lib/base/qstring.cpp index 883fe9f5c..8318040aa 100644 --- a/lib/base/qstring.cpp +++ b/lib/base/qstring.cpp @@ -18,6 +18,9 @@ ******************************************************************************/ #include "i2-base.h" +#include +#include +#include using namespace icinga; diff --git a/lib/base/qstring.h b/lib/base/qstring.h index 2afd61804..1aeebe929 100644 --- a/lib/base/qstring.h +++ b/lib/base/qstring.h @@ -20,6 +20,8 @@ #ifndef STRING_H #define STRING_H +#include + namespace icinga { /** diff --git a/lib/base/registry.h b/lib/base/registry.h index a783f533f..b32721f4d 100644 --- a/lib/base/registry.h +++ b/lib/base/registry.h @@ -29,7 +29,7 @@ namespace icinga * @ingroup base */ template -class Registry +class I2_BASE_API Registry { public: typedef map ItemMap; diff --git a/lib/base/script.cpp b/lib/base/script.cpp index 285b0692a..38ea3d930 100644 --- a/lib/base/script.cpp +++ b/lib/base/script.cpp @@ -26,10 +26,10 @@ REGISTER_TYPE(Script); /** * Constructor for the Script class. * - * @param properties A serialized dictionary containing attributes. + * @param serializedUpdate A serialized dictionary containing attributes. */ -Script::Script(const Dictionary::Ptr& properties) - : DynamicObject(properties) +Script::Script(const Dictionary::Ptr& serializedUpdate) + : DynamicObject(serializedUpdate) { RegisterAttribute("language", Attribute_Config, &m_Language); RegisterAttribute("code", Attribute_Config, &m_Code); diff --git a/lib/base/script.h b/lib/base/script.h index 208abbdb2..970c18e96 100644 --- a/lib/base/script.h +++ b/lib/base/script.h @@ -36,7 +36,7 @@ public: typedef shared_ptr