Jon Siwek
272db640aa
Deprecate Plugin::HookCallFunction(), replace with HookFunctionCall()
...
This also changes the argument type of Func::operator() to zeek::Args*
to allow plugins to be able to alter function arguments in place as
was previously documented.
2020-05-22 21:01:38 -07:00
Jon Siwek
0a23b8dff5
Change find_nested_record_types() to take IntrusivePtr
2020-05-21 23:21:37 -07:00
Jon Siwek
a0481c0b26
Deprecate TypeType::Type(), replace with GetType()
2020-05-21 23:12:43 -07:00
Jon Siwek
457c08f531
Add is_atomic_type() overloads for IntrusivePtr
2020-05-21 22:53:10 -07:00
Jon Siwek
6a1c312451
Add same_type() overloads for IntrusivePtr args
2020-05-21 21:33:02 -07:00
Jon Siwek
4b17929b6b
Deprecate IndexType::Indices(), replace with GetIndices()
2020-05-21 19:46:57 -07:00
Jon Siwek
ea878208ba
Factor static-local nil IntrusivePtrs to global locations
...
Minor optimization to remove any run-time impact.
2020-05-21 17:22:39 -07:00
Jon Siwek
a384bb8b81
Deprecate VectorVal::Lookup(), replace with At()
2020-05-21 17:03:46 -07:00
Jon Siwek
69533bcbc6
Switch VectorVal BroValUnion to store std::vector<IntrusivePtr<Val>>
...
This changes the return type of AsVector() from std::vector<Val*>*
2020-05-21 16:24:34 -07:00
Jon Siwek
40db09ccbf
Deprecate VectorVal::Insert() taking raw Val*, use IntrusivePtr
2020-05-21 15:44:06 -07:00
Jon Siwek
de1e3d7d6d
Deprecate VectorVal::Assign methods taking raw Val*
...
And adapt usages to pass in to alternate method taking IntrusivePtr
2020-05-21 15:31:04 -07:00
Jon Siwek
3b6f60a810
Add Val::AsFuncPtr() convenience method
...
Since it's not trivial to store IntrusivePtr in BroValUnion and also
not satisfying to store IntrusivePtr*.
2020-05-21 00:50:48 -07:00
Jon Siwek
5af962e11f
Deprecate StringVal::Substitute(), replace with Replace()
2020-05-20 23:38:01 -07:00
Jon Siwek
adb9d2881c
Switch a TableVal::CallChangeFunc param to IntrusivePtr
2020-05-20 23:17:25 -07:00
Jon Siwek
9798c4b763
Fix ambiguous ODesc::Add() call
2020-05-20 22:58:44 -07:00
Jon Siwek
61b44a9c63
Minor TableVal::Assign() ref-counting optimization
2020-05-20 22:23:31 -07:00
Jon Siwek
3f92df51b7
Improve TableVal HashKey management
...
* Deprecated ComputeHash() methods and replaced with MakeHashKey()
which returns std::unique_ptr<HashKey>
* Deprecated RecoverIndex() and replaced with RecreateIndex()
which takes HashKey& and returns IntrusivePtr.
* Updated the new TableVal Assign()/Remove() methods to take either
std::unique_ptr<HashKey> or HashKey& as appropriate for clarity of
ownership expectations.
2020-05-20 22:16:47 -07:00
Jon Siwek
dc03f0bb83
Deprecate TableVal::Delete(), replace with Remove()
2020-05-20 20:29:49 -07:00
Jon Siwek
087a0f3636
Switch Func::Call(val_list*) back to returning Val*
...
And renamed the method returning IntrusivePtr to operator().
This corrects the deprecation process for Func::Call(val_list*).
2020-05-20 18:41:59 -07:00
Jon Siwek
85a0ddd62d
Deprecate TableVal::Lookup(), replace with Find()/FindOrDefault()
2020-05-20 18:00:50 -07:00
Jon Siwek
b85cfc6fe4
Deprecate TableVal IsSubsetOf and EqualTo taking Val*, use Val&
2020-05-20 16:00:43 -07:00
Jon Siwek
e01d2c1b37
Deprecate ComputeHash(Val*) methods, replace with ComputeHash(Val&)
2020-05-20 15:47:19 -07:00
Jon Siwek
e5f66cd2e6
Deprecate TableVal::Intersect(), replace with Intersection()
2020-05-20 15:13:55 -07:00
Jon Siwek
7e89c8f0df
Deprecate TableVal::Assign methods with Val*, add IntrusivePtr overloads
2020-05-20 12:46:51 -07:00
Jon Siwek
5bf2ed02d7
Deprecate RecordVal::Lookup(const char*, bool)
...
Replace with GetField(const char*) and GetFieldOrDefault(const char*).
2020-05-19 21:09:40 -07:00
Jon Siwek
2b4d80c849
Deprecate RecordVal::LookupWithDefault() replace with GetFieldOrDefault()
...
(The former was previously changed during this release cycle to return
Intrusive pointer, but this just changes it back to return Val* and
deprecates it).
2020-05-19 20:11:06 -07:00
Jon Siwek
f729247778
Deprecate RecordVal::Lookup(int), replace with GetField(int)
2020-05-19 18:19:58 -07:00
Jon Siwek
377779bb2a
Change BroValUnion to use IntrusivePtr for record field storage
...
This also changes the AsRecord() and AsNonConstRecord() accessors
to return std::vector<IntrusivePtr<Val>>* instead of val_list*
2020-05-19 17:15:13 -07:00
Jon Siwek
cda4738407
Switch RecordVal::CoerceTo() to use IntrusivePtr
2020-05-18 17:52:54 -07:00
Jon Siwek
fcaade6e31
Deprecate TableEntryVal::Value(), replace with GetVal()
2020-05-18 17:09:27 -07:00
Johanna Amann
e7f25aa2ff
Merge remote-tracking branch 'origin/master' into topic/johanna/table-changes
...
Includes code-changes needed to make this compile again.
2020-05-18 16:12:21 -07:00
Jon Siwek
83f1a911d7
Deprecate FuncType::ArgTypes(), replace with ParamList()
2020-05-15 19:15:24 -07:00
Jon Siwek
40153cc5cb
Deprecate FuncType::Args(), replace with Params()
2020-05-15 19:04:31 -07:00
Jon Siwek
6aa1d0468d
Deprecate BroFile::FType(), replace with GetType()
2020-05-15 18:25:45 -07:00
Jon Siwek
688bed97bc
Deprecate Func::FType(), replace with Func::GetType()
2020-05-15 18:21:06 -07:00
Jon Siwek
65aad4922d
Deprecate Val(BroFile*) ctor, replace with one using IntrusivePtr
2020-05-15 17:11:05 -07:00
Jon Siwek
a031f5b727
Deprecate Val(Func*) ctor, replace with one using IntrusivePtr
2020-05-15 16:24:53 -07:00
Jon Siwek
440b0623ac
Deprecate RecordVal(RecordType*) ctor
...
Replaced with one that takes IntrusivePtr
2020-05-14 19:31:43 -07:00
Jon Siwek
4debad8caf
Switch zeek: 🆔 :lookup to zeek: 🆔 :find
...
For parity with Scope since it now uses Find instead of Lookup
2020-05-14 18:00:18 -07:00
Jon Siwek
eedeb07550
Deprecate all BroType* in BifType:: namespace
...
Replaced with equivalently named IntrusivePtr in zeek::BifType::
2020-05-14 17:25:35 -07:00
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
4351a26710
Add RecordVal ctor that takes IntrusivePtr
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
ac06259eec
Deprecate internal_type(), replace with zeek::lookup_type()
2020-05-14 17:22:26 -07:00