]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output: minor header cleanups
authorVictor Julien <vjulien@oisf.net>
Sun, 6 Feb 2022 12:32:25 +0000 (13:32 +0100)
committerVictor Julien <vjulien@oisf.net>
Sun, 6 Feb 2022 12:57:38 +0000 (13:57 +0100)
src/output-file.h
src/output-filedata.h
src/output-flow.h
src/output-streaming.h
src/output-tx.h

index 14b661251b14692652cf69aa278567341daeb682..cb467610c4578234a87049bda35b08472c084583 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 #include "decode.h"
 #include "util-file.h"
 
-/** packet logger function pointer type */
+/** file logger function pointer type */
 typedef int (*FileLogger)(ThreadVars *, void *thread_data, const Packet *,
                           const File *, uint8_t direction);
 
-/** packet logger condition function pointer type,
- *  must return true for packets that should be logged
- */
-//typedef int (*TxLogCondition)(ThreadVars *, const Packet *);
-
 int OutputRegisterFileLogger(LoggerId id, const char *name, FileLogger LogFunc,
     OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
     ThreadExitPrintStatsFunc ThreadExitPrintStats);
index b823510505699122159dbcdf77764270ad2d55c8..204970a1dc45cd7dee0758c829d1b42a22b3e978 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 typedef int (*FiledataLogger)(ThreadVars *, void *thread_data, const Packet *,
         File *, const uint8_t *, uint32_t, uint8_t, uint8_t dir);
 
-/** packet logger condition function pointer type,
- *  must return true for packets that should be logged
- */
-//typedef int (*TxLogCondition)(ThreadVars *, const Packet *);
-
 int OutputRegisterFiledataLogger(LoggerId id, const char *name,
     FiledataLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit,
     ThreadDeinitFunc ThreadDeinit,
@@ -50,4 +45,4 @@ void OutputFiledataLoggerRegister(void);
 
 void OutputFiledataShutdown(void);
 
-#endif /* __OUTPUT_FILE_H__ */
+#endif /* __OUTPUT_FILEDATA_H__ */
index 26bfc32450b2ccc0e15cd6c01637bf8419129e3f..8445d6fa1346d38ebd7566a8965846f9044fe959 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 /** flow logger function pointer type */
 typedef int (*FlowLogger)(ThreadVars *, void *thread_data, Flow *f);
 
-/** packet logger condition function pointer type,
- *  must return true for packets that should be logged
- */
-//typedef int (*TxLogCondition)(ThreadVars *, const Packet *);
-
 int OutputRegisterFlowLogger(const char *name, FlowLogger LogFunc,
     OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit,
     ThreadExitPrintStatsFunc ThreadExitPrintStats);
 
 void OutputFlowShutdown(void);
 
-
 TmEcode OutputFlowLog(ThreadVars *tv, void *thread_data, Flow *f);
 TmEcode OutputFlowLogThreadInit(ThreadVars *tv, void *initdata, void **data);
 TmEcode OutputFlowLogThreadDeinit(ThreadVars *tv, void *thread_data);
 void OutputFlowLogExitPrintStats(ThreadVars *tv, void *thread_data);
 
-
 #endif /* __OUTPUT_FLOW_H__ */
index bc02fe543be5f248da793d97d908208ff41fba14..d47a3e432c52431cb469fc05abec198dc0fe45b3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -20,7 +20,7 @@
  *
  * \author Victor Julien <victor@inliniac.net>
  *
- * AppLayer Filedata Logger Output registration functions
+ * Streaming Logger Output registration functions
  */
 
 #ifndef __OUTPUT_STREAMING_H__
@@ -40,7 +40,7 @@ enum OutputStreamingType {
     STREAMING_HTTP_BODIES,
 };
 
-/** filedata logger function pointer type */
+/** streaming logger function pointer type */
 typedef int (*StreamingLogger)(ThreadVars *, void *thread_data,
         const Flow *f, const uint8_t *data, uint32_t data_len,
         uint64_t tx_id, uint8_t flags);
index 847d0b472b7ff738374b11274e6441382183f1fa..ae2c6d90633e23a34ca1a131f2fff8e51b5585f4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 
 #include "decode.h"
 
-/** packet logger function pointer type */
+/** tx logger function pointer type */
 typedef int (*TxLogger)(ThreadVars *, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id);
 
-/** packet logger condition function pointer type,
- *  must return true for packets that should be logged
+/** tx logger condition function pointer type,
+ *  must return true for tx that should be logged
  */
 typedef int (*TxLoggerCondition)(ThreadVars *, const Packet *, void *state, void *tx, uint64_t tx_id);
 
@@ -47,4 +47,4 @@ void OutputTxLoggerRegister (void);
 
 void OutputTxShutdown(void);
 
-#endif /* __OUTPUT_PACKET_H__ */
+#endif /* __OUTPUT_TX_H__ */