output-file.h File Reference
#include "decode.h"
#include "util-file.h"
Include dependency graph for output-file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef int(* FileLogger) (ThreadVars *, void *thread_data, const Packet *, const File *, uint8_t direction)


int OutputRegisterFileLogger (LoggerId id, const char *name, FileLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats)
void OutputFileLoggerRegister (void)
void OutputFileShutdown (void)

Detailed Description

Victor Julien

AppLayer File Logger Output registration functions

Definition in file output-file.h.

Typedef Documentation

◆ FileLogger

typedef int(* FileLogger) (ThreadVars *, void *thread_data, const Packet *, const File *, uint8_t direction)

packet logger function pointer type

Definition at line 33 of file output-file.h.

Function Documentation

◆ OutputFileLoggerRegister()

void OutputFileLoggerRegister ( void  )

Definition at line 311 of file output-file.c.

References OutputRegisterRootLogger().

Referenced by OutputRegisterRootLoggers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OutputFileShutdown()

void OutputFileShutdown ( void  )

Definition at line 318 of file output-file.c.

◆ OutputRegisterFileLogger()

int OutputRegisterFileLogger ( LoggerId  id,
const char *  name,
FileLogger  LogFunc,
OutputCtx ,
ThreadInitFunc  ThreadInit,
ThreadDeinitFunc  ThreadDeinit,
ThreadExitPrintStatsFunc  ThreadExitPrintStats 

packet logger condition function pointer type, must return true for packets that should be logged

Definition at line 69 of file output-file.c.

References OutputFileLogger_::LogFunc, OutputFileLogger_::logger_id, OutputFileLogger_::name, OutputFileLogger_::output_ctx, SCMalloc, OutputFileLogger_::ThreadDeinit, OutputFileLogger_::ThreadExitPrintStats, and OutputFileLogger_::ThreadInit.