mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
EventMgr: Add CurrentEvent() accessor
Avoid proliferation of accessors on EventMgr.
This commit is contained in:
parent
0864048c3f
commit
fc96c81c70
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ public:
|
|||
// by returning a zero-timeout.
|
||||
double GetNextTimeout() override { return head ? 0.0 : -1.0; }
|
||||
|
||||
/**
|
||||
* @return A pointer to the currently dispatched event or nullptr.
|
||||
*/
|
||||
const Event* CurrentEvent() const { return current; }
|
||||
|
||||
void Process() override;
|
||||
const char* Tag() override { return "EventManager"; }
|
||||
void InitPostScript();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue