]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
qlog_events.h is not a self-contained header file
authorBob Beck <beck@openssl.org>
Wed, 3 Sep 2025 00:40:22 +0000 (18:40 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 6 May 2026 11:35:24 +0000 (13:35 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Wed May  6 11:35:42 2026
(Merged from https://github.com/openssl/openssl/pull/31001)

include/internal/qlog_events.inc [moved from include/internal/qlog_events.h with 99% similarity]
ssl/quic/qlog.c

similarity index 99%
rename from include/internal/qlog_events.h
rename to include/internal/qlog_events.inc
index 6dd44bf365650f31a57fcf7cec4ec5597a32567b..8d2ef1b349d60c9073da6255d15bd288ee9cbb84 100644 (file)
@@ -6,6 +6,7 @@
  * in the file LICENSE in the source distribution or at
  * https://www.openssl.org/source/license.html
  */
+
 QLOG_EVENT(connectivity, connection_started)
 QLOG_EVENT(connectivity, connection_state_updated)
 QLOG_EVENT(connectivity, connection_closed)
index 6f505cf151d8878560656c139572e52a12ca08aa..a09c76ca2afc11c85eead3124bc04c4e0897ef9a 100644 (file)
@@ -642,13 +642,14 @@ static void filter_apply(size_t *enabled, int add,
     const char *cat, size_t cat_l,
     const char *event, size_t event_l)
 {
-    /* Find events which match the given filters. */
-#define QLOG_EVENT(e_cat, e_name)                      \
-    if (filter_match_event(cat, cat_l, event, event_l, \
-            #e_cat, #e_name))                          \
-        bit_set(enabled, QLOG_EVENT_TYPE_##e_cat##_##e_name, add);
-#include "internal/qlog_events.h"
+    /* clang-format off */
+       /* Find events which match the given filters. */
+#define QLOG_EVENT(e_cat, e_name)                                            \
+       if (filter_match_event(cat, cat_l, event, event_l, #e_cat, #e_name)) \
+               bit_set(enabled, QLOG_EVENT_TYPE_##e_cat##_##e_name, add);
+#include "internal/qlog_events.inc"
 #undef QLOG_EVENT
+    /* clang-format on */
 }
 
 static int lex_fail(struct lexer *lex, const char *msg)