mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Add a method to register an event handler to a std::function via C++
This commit is contained in:
parent
aac723cfe5
commit
39890fda5e
9 changed files with 65 additions and 2 deletions
|
@ -114,6 +114,7 @@ public:
|
|||
void AddBody(detail::StmtPtr new_body, const std::vector<detail::IDPtr>& new_inits, size_t new_frame_size,
|
||||
int priority = 0);
|
||||
void AddBody(detail::StmtPtr new_body, size_t new_frame_size);
|
||||
void AddBody(detail::StdFunctionStmt::FunctionVariant body, int priority = 0);
|
||||
|
||||
virtual void SetScope(detail::ScopePtr newscope);
|
||||
virtual detail::ScopePtr GetScope() const { return scope; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue