aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-02-22 06:44:55 +0000
committerJoão Valverde <j@v6e.pt>2023-02-22 07:09:36 +0000
commita2bc5bd01284b51aca5bdbdce1238f730026fd10 (patch)
tree84bab5004a20f0a1ae068f5a790708b28fec5a1c
parent33493cb602ce105663c54a252240cbddbd44e0f0 (diff)
doc: Update header preamble for dissector skeleton
-rw-r--r--doc/packet-PROTOABBREV.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/packet-PROTOABBREV.c b/doc/packet-PROTOABBREV.c
index af11542918..7e17842e64 100644
--- a/doc/packet-PROTOABBREV.c
+++ b/doc/packet-PROTOABBREV.c
@@ -14,7 +14,12 @@
* detailed documentation, etc.)
*/
-#include <config.h>
+#include "config.h"
+/* Define the name for the logging domain (try to avoid collisions with existing domains) */
+#define WS_LOG_DOMAIN "PROTOABBREV"
+
+/* Global header providing a minimum base set of required macros and APIs */
+#include <wireshark.h>
#if 0
/* "System" includes used only as needed */
@@ -24,7 +29,7 @@
...
#endif
-#include <epan/packet.h> /* Should be first Wireshark include (other than config.h) */
+#include <epan/packet.h> /* Required dissection API header */
#include <epan/expert.h> /* Include only as needed */
#include <epan/prefs.h> /* Include only as needed */