zeek/auxil/bifcl/include/module_util.h
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

20 lines
549 B
C++

//
// These functions are used by both Zeek and bifcl.
//
#pragma once
#include <string>
using namespace std;
static const char* GLOBAL_MODULE_NAME = "GLOBAL";
extern string extract_module_name(const char* name);
extern string extract_var_name(const char* name);
extern string normalized_module_name(const char* module_name); // w/o ::
// Concatenates module_name::var_name unless var_name is already fully
// qualified, in which case it is returned unmodified.
extern string make_full_var_name(const char* module_name, const char* var_name);