plugins: Remove moduleinfo.h
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Fri, 15 Dec 2017 00:49:31 +0000 (00:49 +0000)
committerJoão Valverde <j@v6e.pt>
Sun, 17 Dec 2017 11:47:17 +0000 (11:47 +0000)
Micro version bump for mate to homogenize it between CMake and autotools.
The cmake macro doesn't handle the "a" suffix and it doesn't seem worth
implementing.

Change-Id: Ib022c6aa170623b83a9700e4fa098c60a9cddfab
Reviewed-on: https://code.wireshark.org/review/24847
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
35 files changed:
cmake/modules/WiresharkPlugin.cmake
doc/README.plugins
docbook/wsdg_src/WSDG_chapter_dissection.asciidoc
plugins/Makefile.am.inc
plugins/docsis/Makefile.am
plugins/docsis/moduleinfo.h [deleted file]
plugins/ethercat/Makefile.am
plugins/ethercat/moduleinfo.h [deleted file]
plugins/gryphon/Makefile.am
plugins/gryphon/moduleinfo.h [deleted file]
plugins/irda/Makefile.am
plugins/irda/moduleinfo.h [deleted file]
plugins/mate/CMakeLists.txt
plugins/mate/Makefile.am
plugins/mate/mate.h
plugins/mate/moduleinfo.h [deleted file]
plugins/opcua/Makefile.am
plugins/opcua/moduleinfo.h [deleted file]
plugins/pluginifdemo/Makefile.am
plugins/pluginifdemo/moduleinfo.h [deleted file]
plugins/profinet/Makefile.am
plugins/profinet/moduleinfo.h [deleted file]
plugins/stats_tree/Makefile.am
plugins/stats_tree/stats_tree_plugin.c
plugins/transum/Makefile.am
plugins/transum/moduleinfo.h [deleted file]
plugins/unistim/Makefile.am
plugins/unistim/moduleinfo.h [deleted file]
plugins/wimax/Makefile.am
plugins/wimax/moduleinfo.h [deleted file]
plugins/wimaxasncp/Makefile.am
plugins/wimaxasncp/moduleinfo.h [deleted file]
plugins/wimaxmacphy/Makefile.am
plugins/wimaxmacphy/moduleinfo.h [deleted file]
tools/make-plugin-reg.py

index 5e652ce5583707e752b8dc685828bd9944b80055..0d8e5c2c2758c5c97c531f81b536184f26f5c91a 100644 (file)
@@ -24,6 +24,9 @@ macro(SET_MODULE_INFO _plugin _ver_major _ver_minor _ver_micro _ver_extra)
                configure_file(${_plugin_rc_in} plugin.rc @ONLY)
                set(HAVE_PLUGIN_RC TRUE)
        endif()
+
+       set(PLUGIN_VERSION "${_ver_major}.${_ver_minor}.${_ver_micro}")
+       add_definitions(-DPLUGIN_VERSION=\"${PLUGIN_VERSION}\")
 endmacro()
 
 macro(ADD_PLUGIN_LIBRARY _plugin _subfolder)
index b14dfd3b8935d0e40ab5220c72d5791debca2555..dcb34a35b2566e5bcf566c88e3ef49617e7edb68 100644 (file)
@@ -19,7 +19,6 @@ contain at least the following files:
 
 CMakeLists.txt
 Makefile.am
-moduleinfo.h
 README
 
 The README can be brief but it should provide essential information relevant
@@ -47,13 +46,7 @@ which exports plugin_register() for your dissector in the
 DISSECTOR_SRC variable.  All other supporting source files should be
 listed in the DISSECTOR_SUPPORT_SRC variable.
 The header files for your dissector, if any, must be listed in the
-DISSECTOR_INCLUDES variable.  The DISSECTOR_INCLUDES variable should not
-include moduleinfo.h.
-
-2.3 moduleinfo.h
-
-Your plugins/foo/moduleinfo.h file is used to set the version information
-for the plugin.
+DISSECTOR_INCLUDES variable.
 
 2.4 plugin.rc.in
 
index 5e40c5fff4b4708ceec150a2153f576c62037fee..0070bbc59b0d156472e24b23ebe98bc71d1e1c81 100644 (file)
@@ -174,8 +174,6 @@ are required, besides the dissector source in 'packet-foo.c':
 
 * 'CMakeLists.txt' - Contains the CMake file and version info for this plugin.
 
-* 'moduleinfo.h' - Contains plugin version information.
-
 * 'packet-foo.c' - Your dissector source.
 
 * 'plugin.rc.in' - Contains the DLL resource template for Windows. (optional)
index 62c8ae1002fdf057a70590958da9172c95ef7246..5a0326223a302baf0715794949f89b1f8804e339 100644 (file)
@@ -22,7 +22,7 @@
 
 LIBS = @PLUGIN_LIBS@
 
-PLUGIN_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS)
+PLUGIN_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) -DPLUGIN_VERSION=\"$(PLUGIN_VERSION)\"
 
 PLUGIN_CFLAGS =
 
index 5c9bda7f79e88e831727c680d7767d92d2b0223b..d81ed2e767ddb320ce4ff82a00eb84fd8e81287a 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = docsis
 
+PLUGIN_VERSION = 0.0.5
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -49,7 +51,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = docsis.la
 
 docsis_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/docsis/moduleinfo.h b/plugins/docsis/moduleinfo.h
deleted file mode 100644 (file)
index a3d8c25..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "docsis"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.5"
-
index b2d76ddc2b99c0a9a22d3568a8b189533190411f..a924abbdecc27dedfb78959173329c169a216e48 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = ethercat
 
+PLUGIN_VERSION = 0.1.1
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -56,7 +58,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = ethercat.la
 
 ethercat_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/ethercat/moduleinfo.h b/plugins/ethercat/moduleinfo.h
deleted file mode 100644 (file)
index 181918e..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "ethercat"
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-/*#define VERSION "0.0.6"   * first version */
-/*#define VERSION "0.0.7"   * new dissector for mailbox inserted */
-/*#define VERSION "0.0.9"   * nv-protocol inserted */
-/*#define VERSION "0.0.10"  */
-/*#define VERSION "0.0.11"  * support of AoE protocol */
-/*#define VERSION "0.0.12"  * port to Wireshark */
-/*#define VERSION "0.1.0"   * First version integrated into the Wireshark sources*/
-#define VERSION "0.1.1"    /* Added the ability for sub dissectors to decode the data section of EtherCAT using heuristics */
index dd7a262f2cdc8504042c6b7861a154c32ce23a58..c87bc8f9155001c7bfad9e668f999ca554234649 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = gryphon
 
+PLUGIN_VERSION = 0.0.4
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -45,7 +47,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = gryphon.la
 
 gryphon_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/gryphon/moduleinfo.h b/plugins/gryphon/moduleinfo.h
deleted file mode 100644 (file)
index d427137..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "gryphon"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.4"
-
index 98bd1e874d38faff5a4eeed383ecf482fe392dd8..a2e499a871f02c9d2384a5091dae207a6847d3c2 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = irda
 
+PLUGIN_VERSION = 0.0.6
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -47,7 +49,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = irda.la
 
 irda_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/irda/moduleinfo.h b/plugins/irda/moduleinfo.h
deleted file mode 100644 (file)
index e484044..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "irda"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.6"
-
index 509145447fbbd577019f7bf3913c6158c223f27b..da7451b3e3938df66c02196a37eeb9ec2e4ca667 100644 (file)
@@ -22,7 +22,7 @@
 include(WiresharkPlugin)
 
 # Plugin name and version info (major minor micro extra)
-set_module_info(mate 1 0 0 1)
+set_module_info(mate 1 0 1 0)
 
 set(DISSECTOR_SRC
        packet-mate.c
index 3f8b1af82c9aaaf868ebd49ebd34e394a4db8fb8..0d425aa293fd9181b8751e8ef1e2bdf69ce95384 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = mate
 
+PLUGIN_VERSION = 1.0.1
+
 BUILT_SOURCES = \
        plugin.c \
        $(LEMON_GENERATED_HEADER_FILES) \
@@ -77,7 +79,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = mate.la
 
 mate_la_SOURCES = \
-       moduleinfo.h    \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
index 48999114aba64b5e141f3af73bb48be7100533e8..5e538dfa32c4e8e269ec8f962d5e899d944244d4 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "config.h"
 
-#include "moduleinfo.h"
 #include <gmodule.h>
 
 #include <stdio.h>
diff --git a/plugins/mate/moduleinfo.h b/plugins/mate/moduleinfo.h
deleted file mode 100644 (file)
index 2428247..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "mate"
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "1.0.0a"
-
index 9b85bb0b672d78039caa802298257ee95afde783..bd88fd1c2b4a6d26f7e9c87b8214fe12266242f1 100644 (file)
@@ -25,6 +25,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = opcua
 
+PLUGIN_VERSION = 1.1.0
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -69,7 +71,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = opcua.la
 
 opcua_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/opcua/moduleinfo.h b/plugins/opcua/moduleinfo.h
deleted file mode 100644 (file)
index 6f429e0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "opcua"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "1.1.0"
-
index 00cabbb9afffa83c38069bf96b72cf99058e95a4..f1e4edf6084c16b0619790ca0e5ae26936f29f8a 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = pluginifdemo
 
+PLUGIN_VERSION = 0.0.1
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -45,7 +47,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = pluginifdemo.la
 
 pluginifdemo_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/pluginifdemo/moduleinfo.h b/plugins/pluginifdemo/moduleinfo.h
deleted file mode 100644 (file)
index b1b10a5..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "pluginifdemo"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.1"
index 93446167916cc17327dd3fe9da33349eeeca397a..e638ecedfdf475153172de995d21856fa971ccc0 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = profinet
 
+PLUGIN_VERSION = 0.2.4
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -55,7 +57,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = profinet.la
 
 profinet_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/profinet/moduleinfo.h b/plugins/profinet/moduleinfo.h
deleted file mode 100644 (file)
index b06a9aa..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "profinet"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.2.4"
-
index 394fb4fa86974ed5fb10651eca1c8e6924fbf473..7bb578b133dd7f00663102b26777a8c113ca4710 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = stats_tree
 
+PLUGIN_VERSION = 0.0.1
+
 # Non-generated sources
 NONGENERATED_C_FILES = \
        $(NONGENERATED_REGISTER_C_FILES) \
index ad82f105c90e4f3f5db635e940cec4fe59b36950..d2c1df9df2e92105e2efade6b27e3b33c7dc7c8f 100644 (file)
@@ -32,7 +32,7 @@
 #include <epan/stats_tree.h>
 #include "pinfo_stats_tree.h"
 
-WS_DLL_PUBLIC_DEF const gchar plugin_version[] = "0.0.1";
+WS_DLL_PUBLIC_DEF const gchar plugin_version[] = PLUGIN_VERSION;
 WS_DLL_PUBLIC_DEF const gchar plugin_release[] = VERSION_RELEASE;
 
 WS_DLL_PUBLIC_DEF void plugin_register(void)
index 67fc910037aa224e6f8aa02d71d8d09780f0b3e6..cf787e659269d2e3680d96ff85d07257a5b4eb1b 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = transum
 
+PLUGIN_VERSION = 2.0.2
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -50,7 +52,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = transum.la
 
 transum_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/transum/moduleinfo.h b/plugins/transum/moduleinfo.h
deleted file mode 100644 (file)
index 0050eca..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "transum"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "2.0.2"
index 45f519a932a4b0a20a4dd28a57c0bea5bfa3b2fd..0142166151690ad1e38416082d8031a799a879b9 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = unistim
 
+PLUGIN_VERSION = 0.0.2
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -54,7 +56,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = unistim.la
 
 unistim_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/unistim/moduleinfo.h b/plugins/unistim/moduleinfo.h
deleted file mode 100644 (file)
index 62a3d59..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "unistim"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.2"
index 91b0e8483c8d8d649a9750bb1e459dfcae1d9938..82474f0053197865ff222a79aaf8a0462b779873 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = wimax
 
+PLUGIN_VERSION = 1.2.0
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -94,7 +96,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = wimax.la
 
 wimax_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/wimax/moduleinfo.h b/plugins/wimax/moduleinfo.h
deleted file mode 100644 (file)
index 0c598d2..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "wimax"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-
-#define stringiz1(x) #x
-#define stringize(x) stringiz1(x)
-
-#ifndef BUILD_NUMBER
-#define BUILD_NUMBER 0
-#endif
-
-#define VERSION "1.2." stringize(BUILD_NUMBER)
-
index 3dd83f5394fad152f92b5f62c73aea3fa9acbdba..e7216f5b4d20d93cfbc9514f4c9ae6c2bc063e32 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = wimaxasncp
 
+PLUGIN_VERSION = 0.0.1
+
 BUILT_SOURCES = \
        plugin.c \
        $(LEMON_GENERATED_HEADER_FILES) \
@@ -64,7 +66,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = wimaxasncp.la
 
 wimaxasncp_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/wimaxasncp/moduleinfo.h b/plugins/wimaxasncp/moduleinfo.h
deleted file mode 100644 (file)
index fc898ae..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "wimaxasncp"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.1"
-
-
index 1f1a2f1ae5c5672927026546268457e5281dfedf..d6208fea985927d6ebeae187b1e6270d33b612b1 100644 (file)
@@ -24,6 +24,8 @@ include ../Makefile.am.inc
 # the name of the plugin
 PLUGIN_NAME = wimaxmacphy
 
+PLUGIN_VERSION = 0.0.1
+
 BUILT_SOURCES = \
        plugin.c
 
@@ -45,7 +47,6 @@ HEADER_FILES = \
 epan_plugin_LTLIBRARIES = wimaxmacphy.la
 
 wimaxmacphy_la_SOURCES = \
-       moduleinfo.h \
        $(SRC_FILES)    \
        $(HEADER_FILES)
 
diff --git a/plugins/wimaxmacphy/moduleinfo.h b/plugins/wimaxmacphy/moduleinfo.h
deleted file mode 100644 (file)
index 730d26d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* moduleinfo.h
- *
- * Module info header for wireshark plugins.
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Included *after* config.h, in order to re-define these macros */
-
-#ifdef PACKAGE
-#undef PACKAGE
-#endif
-
-/* Name of package */
-#define PACKAGE "wimaxmacphy"
-
-
-#ifdef VERSION
-#undef VERSION
-#endif
-
-/* Version number of package */
-#define VERSION "0.0.1"
-
-
index d910fe6580c859c0b6e41e70b5102315e347e736..420299ec568b5c33bce19e46be8478dd5e2c2727 100755 (executable)
@@ -101,8 +101,6 @@ reg_code += """
 
 #include <gmodule.h>
 
-#include "moduleinfo.h"
-
 /* plugins are DLLs */
 #define WS_BUILD_DLL
 #include "ws_symbol_export.h"
@@ -122,7 +120,7 @@ for symbol in regs['wtap_register']:
     reg_code += "void wtap_register_%s(void);\n" % (symbol)
 
 reg_code += """
-WS_DLL_PUBLIC_DEF const gchar plugin_version[] = VERSION;
+WS_DLL_PUBLIC_DEF const gchar plugin_version[] = PLUGIN_VERSION;
 WS_DLL_PUBLIC_DEF const gchar plugin_release[] = VERSION_RELEASE;
 
 WS_DLL_PUBLIC_DEF void plugin_register(void)