From ddfcf76c5747fca3548942fd8bf764ad3f11a95d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 3 May 2019 14:21:04 +0200 Subject: [PATCH] detect/engine: make DetectAppLayerMpmRegister decprecated --- src/detect-engine-mpm.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/detect-engine-mpm.h b/src/detect-engine-mpm.h index cf03136a5b..906ced724f 100644 --- a/src/detect-engine-mpm.h +++ b/src/detect-engine-mpm.h @@ -86,11 +86,25 @@ int DetectSetFastPatternAndItsId(DetectEngineCtx *de_ctx); * * \note direction must be set to either toserver or toclient. * If both are needed, register the keyword twice. + * \deprecated since 5.0.0 */ void DetectAppLayerMpmRegister(const char *name, int direction, int priority, int (*PrefilterRegister)(DetectEngineCtx *de_ctx, - SigGroupHead *sgh, MpmCtx *mpm_ctx)); + SigGroupHead *sgh, MpmCtx *mpm_ctx)) __attribute__((deprecated)); + +/** \brief register an app layer keyword for mpm + * \param name buffer name + * \param direction SIG_FLAG_TOSERVER or SIG_FLAG_TOCLIENT + * \param priority mpm keyword priority + * \param PrefilterRegister Prefilter api registration function + * \param GetData callback to setup a InspectBuffer. May be NULL. + * \param alproto AppProto this MPM engine inspects + * \param tx_min_progress min tx progress needed to invoke this engine. + * + * \note direction must be set to either toserver or toclient. + * If both are needed, register the keyword twice. + */ void DetectAppLayerMpmRegister2(const char *name, int direction, int priority, int (*PrefilterRegister)(DetectEngineCtx *de_ctx, -- 2.47.2