Go to the documentation of this file.
26 #ifndef SURICATA_OUTPUT_FILEDATA_H
27 #define SURICATA_OUTPUT_FILEDATA_H
29 #define OUTPUT_FILEDATA_FLAG_OPEN 0x01
30 #define OUTPUT_FILEDATA_FLAG_CLOSE 0x02
45 AppLayerGetFileState files,
void *txv,
const uint64_t tx_id,
AppLayerTxData *txd,
46 const uint8_t call_flags,
const bool file_close,
const bool file_trunc,
const uint8_t dir);
52 const uint64_t tx_id,
const uint8_t *, uint32_t, uint8_t, uint8_t dir);
TmEcode OutputFiledataLogThreadDeinit(ThreadVars *tv, OutputFiledataLoggerThreadData *thread_data)
OutputLoggerThreadStore * store
int(* SCFiledataLogger)(ThreadVars *, void *thread_data, const Packet *, File *, void *tx, const uint64_t tx_id, const uint8_t *, uint32_t, uint8_t, uint8_t dir)
File-data logger function pointer type.
Per thread variable structure.
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
struct AppLayerTxData AppLayerTxData
void OutputFiledataLogFfc(ThreadVars *tv, OutputFiledataLoggerThreadData *td, Packet *p, AppLayerGetFileState files, void *txv, const uint64_t tx_id, AppLayerTxData *txd, const uint8_t call_flags, const bool file_close, const bool file_trunc, const uint8_t dir)
struct OutputFiledataLoggerThreadData_ OutputFiledataLoggerThreadData
int SCOutputRegisterFiledataLogger(LoggerId id, const char *name, SCFiledataLogger LogFunc, void *initdata, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
Register a file-data logger.
void OutputFiledataShutdown(void)
TmEcode OutputFiledataLogThreadInit(ThreadVars *tv, OutputFiledataLoggerThreadData **data)
thread init for the filedata logger This will run the thread init functions for the individual regist...
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)
void OutputFiledataLoggerRegister(void)