Deprecate BroFile::FType(), replace with GetType()

This commit is contained in:
Jon Siwek 2020-05-15 18:25:45 -07:00
parent 688bed97bc
commit 6aa1d0468d
2 changed files with 5 additions and 1 deletions

View file

@ -37,8 +37,12 @@ public:
void SetBuf(bool buffered); // false=line buffered, true=fully buffered
[[deprecated("Remove in v4.1. Use GetType().")]]
BroType* FType() const { return t.get(); }
const IntrusivePtr<BroType>& GetType() const
{ return t; }
// Whether the file is open in a general sense; it might
// not be open as a Unix file due to our management of
// a finite number of FDs.