mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Deprecate internal_func(), replace with zeek::lookup_func()
This commit is contained in:
parent
a83941d64d
commit
26f6fe01c8
5 changed files with 34 additions and 8 deletions
|
@ -57,6 +57,7 @@ extern ListVal* internal_list_val(const char* name);
|
|||
[[deprecated("Remove in v4.1. Use zeek::lookup_type().")]]
|
||||
extern BroType* internal_type(const char* name);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use zeek::lookup_func().")]]
|
||||
extern Func* internal_func(const char* name);
|
||||
|
||||
extern EventHandlerPtr internal_handler(const char* name);
|
||||
|
@ -99,4 +100,12 @@ const IntrusivePtr<Val>& lookup_val(const char* name);
|
|||
*/
|
||||
const IntrusivePtr<Val>& lookup_const(const char* name);
|
||||
|
||||
/**
|
||||
* Lookup an ID by its name and return the function it references.
|
||||
* A fatal occurs if the ID does not exist or if it is not a function.
|
||||
* @param name The identifier name to lookup
|
||||
* @return The current function value the identifier references.
|
||||
*/
|
||||
IntrusivePtr<Func> lookup_func(const char* name);
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue