mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
06e72d134b
commit
80e6854ce6
@ -27,7 +27,7 @@ void ScriptSignal::AddSlot(const Callback& slot)
|
||||
m_Slots.push_back(slot);
|
||||
}
|
||||
|
||||
Value ScriptSignal::Invoke(const std::vector<Value>& arguments)
|
||||
void ScriptSignal::Invoke(const std::vector<Value>& arguments)
|
||||
{
|
||||
BOOST_FOREACH(const Callback& slot, m_Slots)
|
||||
slot(arguments);
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
typedef boost::function<void (const std::vector<Value>& arguments)> Callback;
|
||||
|
||||
void AddSlot(const Callback& slot);
|
||||
Value Invoke(const std::vector<Value>& arguments = std::vector<Value>());
|
||||
void Invoke(const std::vector<Value>& arguments = std::vector<Value>());
|
||||
|
||||
static ScriptSignal::Ptr GetByName(const String& name);
|
||||
static void Register(const String& name, const ScriptSignal::Ptr& signal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user