From b695b3e2f72998d66ca4b7a6826d4ce1688060c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Thu, 16 Nov 2017 23:55:57 +0000 Subject: Begin cleanup of make-dissector-reg.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move registration code to a new register.c file so it is readable. Dissector load points are stored in a generated function pointer array instead. Simplify python script somewhat by not interleaving the plugin and dissector logic. Change-Id: I5ec21270f4e1550a5c911efa7f0dc4fc7fcb13a5 Reviewed-on: https://code.wireshark.org/review/24474 Reviewed-by: João Valverde Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 187212fab1..7e54f517cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -395,6 +395,7 @@ EXTCAP_COMMON_SRC = \ SHARK_COMMON_SRC = \ cfile.c \ frame_tvbuff.c \ + register.c \ sync_pipe_write.c # wireshark specifics @@ -677,7 +678,8 @@ randpkt_LDADD = \ @C_ARES_LIBS@ dftest_SOURCES = \ - dftest.c + dftest.c \ + register.c dftest_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) @@ -723,7 +725,6 @@ pkginclude_HEADERS = \ file.h \ globals.h \ log.h \ - register.h \ ws_attributes.h \ ws_compiler_tests.h \ ws_diag_control.h \ @@ -740,6 +741,7 @@ noinst_HEADERS = \ extcap_spawn.h \ fileset.h \ frame_tvbuff.h \ + register.h \ ringbuffer.h \ summary.h \ sync_pipe.h \ -- cgit v1.2.3