context->set_file_config(&(snort_conf->file_config));
- FileEnforcer* file_enforcer = FileService::get_file_enforcer();
- if (file_enforcer &&
- (file_enforcer->cached_verdict_lookup(flow, context) != FILE_VERDICT_UNKNOWN))
+ if((FileService::get_file_enforcer()->cached_verdict_lookup(flow, context)
+ != FILE_VERDICT_UNKNOWN))
return true;
/*file type id*/
class FileCapture;
class FileConfig;
-class FileInfo
+class SO_PUBLIC FileInfo
{
public:
virtual ~FileInfo();
size_t file_id = 0;
};
-class FileContext: public FileInfo
+class SO_PUBLIC FileContext: public FileInfo
{
public:
FileContext();
LogHandler(FileLogConfig& conf)
{ config = conf; }
- void handle(DataEvent& e, Flow*);
+ void handle(DataEvent&, Flow*);
private:
FileLogConfig config;
- void log_file_name(TextLog* log, FileContext* file);
+ void log_file_name(TextLog*, FileContext*);
};
void LogHandler::log_file_name(TextLog* log, FileContext* file)