mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Plugin API: minor change (adding parent frame) to support calling methods from hook. Also declare network time update argument to be const because good practice.
This commit is contained in:
parent
daae28c72e
commit
2446a942e0
5 changed files with 12 additions and 11 deletions
|
@ -573,7 +573,7 @@ protected:
|
|||
* ignored; best to use a \c TYPE_ANY). If the plugin did not handle
|
||||
* the call, it must return null.
|
||||
*/
|
||||
virtual Val* HookCallFunction(const Func* func, val_list* args);
|
||||
virtual Val* HookCallFunction(const Func* func, Frame *parent, val_list* args);
|
||||
|
||||
/**
|
||||
* Hook into raising events. Whenever the script interpreter is about
|
||||
|
@ -607,7 +607,7 @@ protected:
|
|||
*
|
||||
* @param networkt_time The new network time.
|
||||
*/
|
||||
virtual void HookUpdateNetworkTime(double network_time);
|
||||
virtual void HookUpdateNetworkTime(const double network_time);
|
||||
|
||||
/**
|
||||
* Hook for destruction of objects registered with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue