mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Switch plugin::Manager::HookCallFunction() to return IntrusivePtr
The plugin::Plugin side of things is not (yet) changed.
This commit is contained in:
parent
b1042e2824
commit
46c5dea733
4 changed files with 49 additions and 36 deletions
|
@ -109,8 +109,9 @@ protected:
|
|||
// Copies this function's state into other.
|
||||
void CopyStateInto(Func* other) const;
|
||||
|
||||
// Helper function for handling result of plugin hook.
|
||||
std::pair<bool, Val*> HandlePluginResult(std::pair<bool, Val*> plugin_result, function_flavor flavor) const;
|
||||
// Helper function for checking result of plugin hook.
|
||||
void CheckPluginResult(bool hooked, const IntrusivePtr<Val>& hook_result,
|
||||
function_flavor flavor) const;
|
||||
|
||||
std::vector<Body> bodies;
|
||||
IntrusivePtr<Scope> scope;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue