Deprecate BroFile::GetFile(), replace with BroFile::Get()

This commit is contained in:
Jon Siwek 2020-05-15 17:22:16 -07:00
parent 65aad4922d
commit 599eec297c
3 changed files with 9 additions and 11 deletions

View file

@ -63,7 +63,10 @@ public:
static void CloseOpenFiles();
// Get the file with the given name, opening it if it doesn't yet exist.
static BroFile* GetFile(const char* name);
static IntrusivePtr<BroFile> Get(const char* name);
[[deprecated("Remove in v4.1. Use BroFile::Get().")]]
static BroFile* GetFile(const char* name)
{ return Get(name).release(); }
void EnableRawOutput() { raw_output = true; }
bool IsRawOutput() const { return raw_output; }