mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Deprecate internal_val() and internal_const_val()
Replaced with zeek::lookup_val() and zeek::lookup_const()
This commit is contained in:
parent
ac06259eec
commit
a83941d64d
10 changed files with 85 additions and 49 deletions
|
@ -15,7 +15,7 @@
|
|||
#include "Net.h"
|
||||
#include "Conn.h"
|
||||
#include "Timer.h"
|
||||
#include "Var.h" // for internal_val()
|
||||
#include "Var.h"
|
||||
#include "EventHandler.h"
|
||||
#include "plugin/Plugin.h"
|
||||
#include "plugin/Manager.h"
|
||||
|
@ -63,13 +63,13 @@ Reporter::~Reporter()
|
|||
|
||||
void Reporter::InitOptions()
|
||||
{
|
||||
info_to_stderr = internal_val("Reporter::info_to_stderr")->AsBool();
|
||||
warnings_to_stderr = internal_val("Reporter::warnings_to_stderr")->AsBool();
|
||||
errors_to_stderr = internal_val("Reporter::errors_to_stderr")->AsBool();
|
||||
weird_sampling_rate = internal_val("Weird::sampling_rate")->AsCount();
|
||||
weird_sampling_threshold = internal_val("Weird::sampling_threshold")->AsCount();
|
||||
weird_sampling_duration = internal_val("Weird::sampling_duration")->AsInterval();
|
||||
auto wl_val = internal_val("Weird::sampling_whitelist")->AsTableVal();
|
||||
info_to_stderr = zeek::lookup_val("Reporter::info_to_stderr")->AsBool();
|
||||
warnings_to_stderr = zeek::lookup_val("Reporter::warnings_to_stderr")->AsBool();
|
||||
errors_to_stderr = zeek::lookup_val("Reporter::errors_to_stderr")->AsBool();
|
||||
weird_sampling_rate = zeek::lookup_val("Weird::sampling_rate")->AsCount();
|
||||
weird_sampling_threshold = zeek::lookup_val("Weird::sampling_threshold")->AsCount();
|
||||
weird_sampling_duration = zeek::lookup_val("Weird::sampling_duration")->AsInterval();
|
||||
auto wl_val = zeek::lookup_val("Weird::sampling_whitelist")->AsTableVal();
|
||||
auto wl_table = wl_val->AsTable();
|
||||
|
||||
HashKey* k;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue