static OutputCtx *OutputDNP3LogInitSub(ConfNode *conf, OutputCtx *parent_ctx)
{
- AlertJsonThread *ajt = parent_ctx->data;
+ OutputJsonCtx *ajt = parent_ctx->data;
LogDNP3FileCtx *dnp3log_ctx = SCCalloc(1, sizeof(*dnp3log_ctx));
if (unlikely(dnp3log_ctx == NULL)) {
return NULL;
}
- AlertJsonThread *ajt = parent_ctx->data;
+ OutputJsonCtx *ajt = parent_ctx->data;
JsonDropOutputCtx *drop_ctx = SCCalloc(1, sizeof(*drop_ctx));
if (drop_ctx == NULL)
static OutputCtx *OutputNFSLogInitSub(ConfNode *conf,
OutputCtx *parent_ctx)
{
- AlertJsonThread *ajt = parent_ctx->data;
+ OutputJsonCtx *ajt = parent_ctx->data;
LogNFSFileCtx *nfslog_ctx = SCCalloc(1, sizeof(*nfslog_ctx));
if (unlikely(nfslog_ctx == NULL)) {
static OutputCtx *OutputStatsLogInitSub(ConfNode *conf, OutputCtx *parent_ctx)
{
- AlertJsonThread *ajt = parent_ctx->data;
+ OutputJsonCtx *ajt = parent_ctx->data;
OutputStatsCtx *stats_ctx = SCMalloc(sizeof(OutputStatsCtx));
if (unlikely(stats_ctx == NULL))
static OutputCtx *OutputTemplateLogInitSub(ConfNode *conf,
OutputCtx *parent_ctx)
{
- AlertJsonThread *ajt = parent_ctx->data;
+ OutputJsonCtx *ajt = parent_ctx->data;
LogTemplateFileCtx *templatelog_ctx = SCCalloc(1, sizeof(*templatelog_ctx));
if (unlikely(templatelog_ctx == NULL)) {
enum JsonFormat format;
} OutputJsonCtx;
-typedef struct AlertJsonThread_ {
- /** LogFileCtx has the pointer to the file and a mutex to allow multithreading */
- LogFileCtx *file_ctx;
-} AlertJsonThread;
-
json_t *SCJsonBool(int val);
#endif /* HAVE_LIBJANSSON */