mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
parent
397fee13ff
commit
b58c9ee3f8
@ -40,9 +40,7 @@ void ScriptInterpreter::SubscribeFunction(const String& name)
|
|||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
||||||
m_SubscribedFunctions.insert(name);
|
m_SubscribedFunctions.insert(name);
|
||||||
|
ScriptFunction::Register(name, boost::bind(&ScriptInterpreter::ProcessCall, this, name, _1));
|
||||||
ScriptFunction::Ptr sf = make_shared<ScriptFunction>(boost::bind(&ScriptInterpreter::ProcessCall, this, name, _1));
|
|
||||||
ScriptFunction::Register(name, sf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptInterpreter::UnsubscribeFunction(const String& name)
|
void ScriptInterpreter::UnsubscribeFunction(const String& name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user