mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Replace deprecated usage of BifFunc:: with zeek::BifFunc::
Names of functions also changed slightly, like bro_fmt -> fmt_bif. Should generally be unusual/unexpected to see somone calling these directly from C++ in their plugin, but since technically possible in previous versions, I also removed the "private" restriction on accessing the BifReturnVal member.
This commit is contained in:
parent
0db5c920f2
commit
ca1e5fe4be
4 changed files with 6 additions and 10 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 7fdbbfdf5ee3669a77f73360b86326344e15ea99
|
||||
Subproject commit 2d56fd7e6d59aab754176b3ec90e71600d22d713
|
|
@ -781,7 +781,7 @@ void init_builtin_funcs_subdirs()
|
|||
|
||||
bool check_built_in_call(BuiltinFunc* f, CallExpr* call)
|
||||
{
|
||||
if ( f->TheFunc() != BifFunc::bro_fmt )
|
||||
if ( f->TheFunc() != zeek::BifFunc::fmt_bif)
|
||||
return true;
|
||||
|
||||
const expr_list& args = call->Args()->Exprs();
|
||||
|
|
|
@ -206,10 +206,6 @@ public:
|
|||
[[deprecated("Remove in v4.1. Return an IntrusivePtr instead.")]]
|
||||
BifReturnVal(Val* v) noexcept;
|
||||
|
||||
private:
|
||||
|
||||
friend class BuiltinFunc;
|
||||
|
||||
IntrusivePtr<Val> rval;
|
||||
};
|
||||
|
||||
|
|
|
@ -30,9 +30,9 @@ class BroString;
|
|||
class Val;
|
||||
class Frame;
|
||||
class BifReturnVal;
|
||||
namespace BifFunc {
|
||||
extern BifReturnVal bro_md5_hmac(Frame* frame, const zeek::Args*);
|
||||
}
|
||||
namespace zeek { namespace BifFunc {
|
||||
extern BifReturnVal md5_hmac_bif(Frame* frame, const zeek::Args*);
|
||||
}}
|
||||
|
||||
typedef uint64_t hash_t;
|
||||
typedef uint64_t hash64_t;
|
||||
|
@ -196,7 +196,7 @@ private:
|
|||
inline static bool seeds_initialized = false;
|
||||
|
||||
friend void hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16]);
|
||||
friend BifReturnVal BifFunc::bro_md5_hmac(Frame* frame, const zeek::Args*);
|
||||
friend BifReturnVal zeek::BifFunc::md5_hmac_bif(Frame* frame, const zeek::Args*);
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue