suricata
|
#include "suricata-common.h"
#include "suricata-plugin.h"
#include "output-eve.h"
#include "util-mem.h"
#include "util-debug.h"
Go to the source code of this file.
Data Structures | |
struct | ThreadData_ |
struct | Context_ |
Macros | |
#define | FILETYPE_NAME "json-filetype-plugin" |
Typedefs | |
typedef struct ThreadData_ | ThreadData |
typedef struct Context_ | Context |
Functions | |
void | PluginInit (void) |
const SCPlugin * | SCPluginRegister () |
Variables | |
const SCPlugin | PluginRegistration |
#define FILETYPE_NAME "json-filetype-plugin" |
Definition at line 25 of file filetype.c.
typedef struct ThreadData_ ThreadData |
Per thread context data for each logging thread.
void PluginInit | ( | void | ) |
Called by Suricata to initialize the module. This module registers new file type to the JSON logger.
Definition at line 194 of file filetype.c.
References FILETYPE_NAME, SCEveFileType_::Init, SCEveFileType_::name, and SCCalloc.
const SCPlugin* SCPluginRegister | ( | ) |
The function called by Suricata after loading this plugin.
A pointer to a populated SCPlugin struct must be returned.
Definition at line 220 of file filetype.c.
References PluginRegistration.
const SCPlugin PluginRegistration |
Definition at line 208 of file filetype.c.
Referenced by SCPluginRegister().