mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
add deprecation for Trigger Cache/Lookup interfaces
This commit is contained in:
parent
08fbc7efb3
commit
5c3cc4fba8
2 changed files with 14 additions and 2 deletions
|
@ -25,6 +25,7 @@ namespace detail
|
|||
class Frame;
|
||||
class Stmt;
|
||||
class Expr;
|
||||
class CallExpr;
|
||||
class ID;
|
||||
class WhenInfo;
|
||||
|
||||
|
@ -86,7 +87,18 @@ public:
|
|||
// void*'s so that the value can be associated with either a CallExpr
|
||||
// (for interpreted execution) or a C++ function (for compiled-to-C++).
|
||||
bool Cache(const void* obj, Val* val);
|
||||
Val* Lookup(const void*);
|
||||
Val* Lookup(const void* obj);
|
||||
|
||||
[[deprecated("Remove in v5.1. Use const void* interface instead.")]] bool
|
||||
Cache(const CallExpr* call, Val* val)
|
||||
{
|
||||
return Cache((const void*)call, val);
|
||||
}
|
||||
[[deprecated("Remove in v5.1. Use const void* interface instead.")]] Val*
|
||||
Lookup(const CallExpr* call)
|
||||
{
|
||||
return Lookup((const void*)call);
|
||||
}
|
||||
|
||||
// Disable this trigger completely. Needed because Unref'ing the trigger
|
||||
// may not immediately delete it as other references may still exist.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue