app-layer: only typedef opaque pointers once

pull/753/head
Victor Julien 13 years ago
parent 3b8e9ffbe9
commit 446e68adca

@ -151,11 +151,11 @@ typedef struct AppLayerProtoDetectCtx_ {
/**
* \brief The app layer protocol detection thread context.
*/
typedef struct AppLayerProtoDetectThreadCtx_ {
struct AppLayerProtoDetectThreadCtx_ {
PatternMatcherQueue pmq;
/* The value 2 is for direction(0 - toserver, 1 - toclient). */
MpmThreadCtx mpm_tctx[FLOW_PROTO_DEFAULT][2];
} AppLayerProtoDetectThreadCtx;
};
/* The global app layer proto detection context. */
AppLayerProtoDetectCtx alpd_ctx;

@ -68,9 +68,9 @@
#include "runmodes.h"
typedef struct AppLayerParserThreadCtx_ {
struct AppLayerParserThreadCtx_ {
void *alproto_local_storage[FLOW_PROTO_MAX][ALPROTO_MAX];
} AppLayerParserThreadCtx;
};
/**
@ -117,7 +117,7 @@ typedef struct AppLayerParserCtx_ {
AppLayerParserProtoCtx ctxs[FLOW_PROTO_MAX][ALPROTO_MAX];
} AppLayerParserCtx;
typedef struct AppLayerParserState_ {
struct AppLayerParserState_ {
uint8_t flags;
/* Indicates the current transaction that is being inspected.
@ -132,7 +132,7 @@ typedef struct AppLayerParserState_ {
/* Used to store decoder events. */
AppLayerDecoderEvents *decoder_events;
} AppLayerParserState;
};
/* Static global version of the parser context.
* Post 2.0 let's look at changing this to move it out to app-layer.c. */

@ -46,7 +46,7 @@
* \brief This is for the app layer in general and it contains per thread
* context relevant to both the alpd and alp.
*/
typedef struct AppLayerThreadCtx_ {
struct AppLayerThreadCtx_ {
/* App layer protocol detection thread context, from AppLayerProtoDetectGetCtxThread(). */
AppLayerProtoDetectThreadCtx *alpd_tctx;
/* App layer parser thread context, from AppLayerParserThreadCtxAlloc(). */
@ -61,7 +61,7 @@ typedef struct AppLayerThreadCtx_ {
uint64_t proto_detect_ticks_end;
uint64_t proto_detect_ticks_spent;
#endif
} AppLayerThreadCtx;
};
/***** L7 layer dispatchers *****/

Loading…
Cancel
Save