maat::event::EventHook class

Generic hook base.

❱   Public functions

auto id() -> int
Return the hook id.

auto trigger(MaatEngine& engine) -> Action
Execute all callbacks and return an action for the emulation engine.

void enable()
Enable the hook.

void disable()
Disable the hook.

auto is_enabled() -> bool
Return 'true' if hook is enabled.

auto callbacks() -> const std::vector<EventCallback>&
Get callbacks registered for the hook.

void add_callback(EventCallback cb)
Register new native callback to the hook.

❱   Protected variables

int _id
Unique hook identifier.

AddrFilter filter

❱   Friends

auto operator<<(std::ostream& os, const EventHook& hook) -> std::ostream&
Pretty print to stream.