From efd108982a86868a47b5af83fc2a8ffc8eb0b29d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 15 Feb 2013 12:41:32 +0100 Subject: [PATCH] Removed the native:: prefix for built-in functions. --- itl/notification.conf | 2 +- itl/service.conf | 4 ++-- itl/types.conf | 4 ++-- lib/config/configtype.cpp | 2 +- lib/icinga/host.cpp | 2 +- lib/icinga/nullchecktask.cpp | 2 +- lib/icinga/pluginnotificationtask.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/itl/notification.conf b/itl/notification.conf index f7dcc6d4d..7df7f8aa9 100644 --- a/itl/notification.conf +++ b/itl/notification.conf @@ -19,6 +19,6 @@ abstract object Notification "plugin-notification" { methods = { - notify = "native::PluginNotification" + notify = "PluginNotification" } } diff --git a/itl/service.conf b/itl/service.conf index e555a35fa..b75de0646 100644 --- a/itl/service.conf +++ b/itl/service.conf @@ -27,12 +27,12 @@ abstract object Service "itl-service" { abstract object Service "null-service" inherits "itl-service" { methods = { - check = "native::NullCheck" + check = "NullCheck" } } abstract object Service "plugin-service" inherits "itl-service" { methods = { - check = "native::PluginCheck" + check = "PluginCheck" } } diff --git a/itl/types.conf b/itl/types.conf index 14bbe9901..5301b6d2a 100644 --- a/itl/types.conf +++ b/itl/types.conf @@ -31,7 +31,7 @@ type DynamicObject { %attribute string "__type", %attribute dictionary "methods" { - %validator "native::ValidateMethods", + %validator "ValidateMethods", %attribute string "*", }, @@ -68,7 +68,7 @@ type Host { } }, %attribute dictionary "services" { - %validator "native::ValidateServiceDictionary", + %validator "ValidateServiceDictionary", %attribute string "*", %attribute dictionary "*" { diff --git a/lib/config/configtype.cpp b/lib/config/configtype.cpp index 1d9a56310..a48296458 100644 --- a/lib/config/configtype.cpp +++ b/lib/config/configtype.cpp @@ -21,7 +21,7 @@ using namespace icinga; -REGISTER_SCRIPTFUNCTION("native::ValidateMethods", &ConfigType::ValidateMethods); +REGISTER_SCRIPTFUNCTION("ValidateMethods", &ConfigType::ValidateMethods); ConfigType::ConfigType(const String& name, const DebugInfo& debuginfo) : m_Name(name), m_RuleList(boost::make_shared()), m_DebugInfo(debuginfo) diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index 0269c8b7c..82754346a 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -24,7 +24,7 @@ using namespace icinga; map > > Host::m_ServicesCache; bool Host::m_ServicesCacheValid = true; -REGISTER_SCRIPTFUNCTION("native::ValidateServiceDictionary", &Host::ValidateServiceDictionary); +REGISTER_SCRIPTFUNCTION("ValidateServiceDictionary", &Host::ValidateServiceDictionary); static AttributeDescription hostAttributes[] = { { "slave_services", Attribute_Transient } diff --git a/lib/icinga/nullchecktask.cpp b/lib/icinga/nullchecktask.cpp index 92c39f03f..5e38d8465 100644 --- a/lib/icinga/nullchecktask.cpp +++ b/lib/icinga/nullchecktask.cpp @@ -21,7 +21,7 @@ using namespace icinga; -REGISTER_SCRIPTFUNCTION("native::NullCheck", &NullCheckTask::ScriptFunc); +REGISTER_SCRIPTFUNCTION("NullCheck", &NullCheckTask::ScriptFunc); void NullCheckTask::ScriptFunc(const ScriptTask::Ptr& task, const vector& arguments) { diff --git a/lib/icinga/pluginnotificationtask.cpp b/lib/icinga/pluginnotificationtask.cpp index a66a98289..d7b86976f 100644 --- a/lib/icinga/pluginnotificationtask.cpp +++ b/lib/icinga/pluginnotificationtask.cpp @@ -21,7 +21,7 @@ using namespace icinga; -REGISTER_SCRIPTFUNCTION("native::PluginNotification", &PluginNotificationTask::ScriptFunc); +REGISTER_SCRIPTFUNCTION("PluginNotification", &PluginNotificationTask::ScriptFunc); PluginNotificationTask::PluginNotificationTask(const ScriptTask::Ptr& task, const Process::Ptr& process, const String& service, const String& command) -- 2.40.0