Jon Siwek
8f95a2a0bb
Deprecate Scope::Lookup(), replace with Scope::Find()
2020-05-14 17:24:21 -07:00
Jon Siwek
a5762c12cc
Move various elements into ID.h and zeek::id namespace
...
* A handful of generic/useful/common global type pointers that used
to be in NetVar.h
* Lookup functions that used to be Var.h
2020-05-14 17:24:20 -07:00
Jon Siwek
9210d443d3
Trim the list of "global type pointers" from NetVar.h further
...
Most of them are deprecated now, with usage sites now doing the lookup
themselves.
2020-05-14 17:23:20 -07:00
Jon Siwek
d34b24e776
Deprecate global Val pointers in NetVar.h
...
All of these have fairly niche uses, so better maintained as
lookup/static closer to the usage site.
2020-05-14 17:23:20 -07:00
Jon Siwek
c0986f0739
Deprecate global type pointers in NetVar.h
...
There's analogous IntrusivePtrs in zeek::vars
2020-05-14 17:23:20 -07:00
Jon Siwek
4351a26710
Add RecordVal ctor that takes IntrusivePtr
2020-05-14 17:23:20 -07:00
Jon Siwek
40ee59f0c3
Remove unused FlattenExpr
2020-05-14 17:23:20 -07:00
Jon Siwek
6147804b36
Add missing "vector_coerce" to expr_name()
2020-05-14 17:23:20 -07:00
Jon Siwek
e3f7b38890
Deprecate Expr::Type(), replace with GetType()
2020-05-14 17:23:20 -07:00
Jon Siwek
1eb723fc9d
Deprecate Val::Type(), replace with GetType()
2020-05-14 17:23:20 -07:00
Jon Siwek
737420c359
Change Val to store IntrusivePtr
2020-05-14 17:23:20 -07:00
Jon Siwek
afd939ceb1
Remove VectorVal::vector_type member
2020-05-14 17:23:20 -07:00
Jon Siwek
d4dba40727
Deprecate VectorVal(VectorType*) ctora
...
Adds a new one taking an IntrusivePtr.
2020-05-14 17:23:20 -07:00
Jon Siwek
c5236ecaee
Deprecate internal_list_val()
2020-05-14 17:23:20 -07:00
Jon Siwek
447b052d11
Deprecate opt_internal_val()
2020-05-14 17:23:20 -07:00
Jon Siwek
26f6fe01c8
Deprecate internal_func(), replace with zeek::lookup_func()
2020-05-14 17:23:20 -07:00
Jon Siwek
a83941d64d
Deprecate internal_val() and internal_const_val()
...
Replaced with zeek::lookup_val() and zeek::lookup_const()
2020-05-14 17:23:19 -07:00
Jon Siwek
ac06259eec
Deprecate internal_type(), replace with zeek::lookup_type()
2020-05-14 17:22:26 -07:00
Jon Siwek
32b895f4ba
Deprecate ID::ID_Val(), replace with ID::GetVal()
2020-05-14 17:18:00 -07:00
Jon Siwek
16a8bf3318
Use std::move in some zeekygen::Manager methods
2020-05-14 17:18:00 -07:00
Jon Siwek
4af1a26b1f
Add Val TypeType constructor taking an IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
3f07c57523
Deprecate ID::Type(), replace with GetType()
2020-05-14 17:18:00 -07:00
Jon Siwek
6e647416d5
Deprecate ID::AsType(), add ID::IsType() and ID::GetType()
2020-05-14 17:18:00 -07:00
Jon Siwek
f26904e031
Deprecate BroType::YieldType(), replace with Yield()
2020-05-14 17:18:00 -07:00
Jon Siwek
bb25f5d568
Change base_type() to return const-ref, deprecate base_type_no_ref()
2020-05-14 17:18:00 -07:00
Jon Siwek
2aa84eb86e
Deprecate BroType::GetField() and BroType::HasField()
2020-05-14 17:18:00 -07:00
Jon Siwek
103fed9f01
Deprecate RecordType::FieldType(), replace with GetFieldType()
2020-05-14 17:18:00 -07:00
Jon Siwek
455fc29b1a
Migrate TypeList to store IntrusivePtrs
...
This changes return types of TypeList::Types() and
IndexType::IndexTypes() to return std::vector instead of type_list*
2020-05-14 17:18:00 -07:00
Jon Siwek
011866a908
Deprecate TypeList::PureType(), replace with TypeList::GetPureType()
2020-05-14 17:18:00 -07:00
Jon Siwek
9ab7150883
Deprecate SetType::SetElements(), replace with SetType::Elements()
2020-05-14 17:18:00 -07:00
Jon Siwek
0f59b80d66
Remove unused TableType::ExpandRecordIndex()
2020-05-14 17:18:00 -07:00
Jon Siwek
6a1e4d61d1
Add cast_intrusive() and make use of it in two spots
2020-05-14 17:18:00 -07:00
Jon Siwek
c6f2e35af0
Give make_intrusive() access to protected EnumVal ctor
2020-05-14 17:18:00 -07:00
Jon Siwek
f512ae023e
Remove two superfluous IntrusivePtr NewRefs in Type.cc
2020-05-14 17:18:00 -07:00
Jon Siwek
89dd668aff
Change BroType::ShallowClone() to return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
b05e5c7686
Migrate IP.cc to use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
a60e5e9582
Migrate SMB analyzer to use IntrusivePtr
...
Deprecates the utf16_bytestring_to_utf8_val() function with replacement
being utf16_to_utf8_val().
2020-05-14 17:18:00 -07:00
Jon Siwek
ad6dbada71
Migrate ARP analyzer to use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
61b75ddd02
Migrate HTTP/MIME analyzers to use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
46e27bbf7d
Migrate ICMP analyzer to use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
0f2b176f75
Migrate DNS analyzer to use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
1abed4fd4c
Migrate Tag classes to use IntrusivePtr
...
Deprecates various methods that previously took raw pointers
2020-05-14 17:18:00 -07:00
Jon Siwek
b096e552d3
Deprecate TableVal::ConvertToList() and TableVal::ConvertToPureList()
...
Replaced with ToListVal() and ToPureListVal() that return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
5f57ceb70a
Switch ListVal to store IntrusivePtrs
...
* Deprecates ListVal::Index() methods and replaces with ListVal::Idx()
* Replaces ListVal::Vals() method with one that returns
std::vector<IntrusivePtr<Val>> rather than val_list
2020-05-14 17:18:00 -07:00
Jon Siwek
b422f68b88
Deprecant ListVal::Append(Val*) and add IntrusivePtr version
2020-05-14 17:18:00 -07:00
Jon Siwek
df65d1e829
Deprecate ListVal::ConvertToSet(), add ListVal::ToSetVal()
2020-05-14 17:18:00 -07:00
Jon Siwek
2cfbbd8cdb
Deprecate TunnelEncapsulation BuildRecordVal/BuildVectorVal methods
...
Replaced with ToVal methods that return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
61649d5da7
Deprecate various IP/packet header Val-building methods
...
And supply new alternatives that use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
457454bb80
Update submodule(s)
...
[nomail]
2020-05-14 17:10:57 -07:00
Jon Siwek
6c19229eef
Update external testing repo commit files
2020-05-14 17:02:12 -07:00