]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: only typedef opaque pointers once 753/head
authorVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 09:15:48 +0000 (10:15 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 10:53:56 +0000 (11:53 +0100)
src/app-layer-detect-proto.c
src/app-layer-parser.c
src/app-layer.c

index 7cf21de0be510f35485d376bd01cb4f6daee11b3..35f0c85d59eb9519d2fdaeeb2cc0ba6121c9a3ee 100644 (file)
@@ -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;
index 530e5b962060775d90bf7eb09a7a5c630d6f4968..843fa2b91c7425633dc982b04804e349b5ae61f5 100644 (file)
@@ -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. */
index e50818b0b884a42346ae0ff7959bb545a7236052..29d97b8d2e38223e095a18d8b7b22a89083ed2f5 100644 (file)
@@ -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 *****/