mirror of https://github.com/OISF/suricata
Switch to using a detection engine ctx.
parent
171c8c777d
commit
dc48c58473
@ -0,0 +1,27 @@
|
|||||||
|
/* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
|
||||||
|
|
||||||
|
#include "vips.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "detect.h"
|
||||||
|
#include "flow.h"
|
||||||
|
|
||||||
|
#include "detect-parse.h"
|
||||||
|
#include "detect-siggroup.h"
|
||||||
|
|
||||||
|
#include "detect-address.h"
|
||||||
|
|
||||||
|
DetectEngineCtx *DetectEngineCtxInit(void) {
|
||||||
|
DetectEngineCtx *de_ctx;
|
||||||
|
|
||||||
|
de_ctx = malloc(sizeof(DetectEngineCtx));
|
||||||
|
if (de_ctx == NULL) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
|
memset(de_ctx,0,sizeof(DetectEngineCtx));
|
||||||
|
|
||||||
|
return de_ctx;
|
||||||
|
error:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
#ifndef __DETECT_ENGINE_H__
|
||||||
|
#define __DETECT_ENGINE_H__
|
||||||
|
|
||||||
|
/* prototypes */
|
||||||
|
DetectEngineCtx *DetectEngineCtxInit();
|
||||||
|
|
||||||
|
#endif /* __DETECT_ENGINE_H__ */
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue