mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
method to add a fully-qualified enum name (module name included)
This commit is contained in:
parent
341c284de9
commit
9557029cf2
2 changed files with 9 additions and 3 deletions
|
@ -720,8 +720,10 @@ public:
|
|||
// added that aren't likewise explicitly initalized.
|
||||
void AddName(const std::string& module_name, const char* name, bro_int_t val, bool is_export, detail::Expr* deprecation = nullptr, bool from_redef = false);
|
||||
|
||||
// -1 indicates not found.
|
||||
// -1 indicates not found. Second version is for full names
|
||||
// that already incorporate the module.
|
||||
bro_int_t Lookup(const std::string& module_name, const char* name) const;
|
||||
bro_int_t Lookup(const std::string& full_name) const;
|
||||
|
||||
const char* Lookup(bro_int_t value) const; // Returns 0 if not found
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue