aboutsummaryrefslogtreecommitdiffstats
path: root/doc/plugins.example
AgeCommit message (Collapse)AuthorFilesLines
2018-11-24plugins.example: Fix build on WindowsJoão Valverde2-8/+9
Change-Id: I30798a697bc14076cc3bd9e224714a6a3567046b Reviewed-on: https://code.wireshark.org/review/30774 Reviewed-by: João Valverde <j@v6e.pt>
2018-10-27Update plugins.example/READMEJoão Valverde1-4/+4
Change-Id: Ib428859b75e1c196cf9fa81ebae4969bbce079f2 Reviewed-on: https://code.wireshark.org/review/30396 Reviewed-by: João Valverde <j@v6e.pt>
2018-08-25CMake: Modernize config-file package supportJoão Valverde1-22/+5
A CMake config-file package provides support for downstreams using CMake and Wireshark libraries to easily configure the libwireshark dependency with: find_package(Wireshark CONFIG [REQUIRED]) target_link_libraries(foo epan) The FindWireshark.cmake file is no longer needed. See cmake-package(7) for more details on CMake's package system. Change-Id: Ie8af1d44417a99dd08d37959f7b2ffca88572ec2 Reviewed-on: https://code.wireshark.org/review/29208 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
2018-08-21Fix comment.João Valverde1-3/+2
Change-Id: Ib41b9a84333a3d3d34ae9c0797dbae10141f9e53 Reviewed-on: https://code.wireshark.org/review/29235 Reviewed-by: João Valverde <j@v6e.pt>
2018-08-21plugins: Minor interface improvementJoão Valverde2-3/+4
Change the plugin compatibility check to make it more convenient to define and check the major.minor Wireshark version. Change-Id: I2a6d2a746682c29504311cce5c457e0a852c3daf Reviewed-on: https://code.wireshark.org/review/29224 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
2018-08-21plugins: Fix CMake build exampleJoão Valverde1-15/+12
Fix combination of pkg-config and CMake variables for feature detection. Remove non-system installation option. Just copy it manually for now. Change-Id: Ia80c703c6ec3df0a49f8d56f1bd6da69471c523f Reviewed-on: https://code.wireshark.org/review/29223 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
2018-05-23Expand doc/pugins.example README a bit.João Valverde1-5/+9
Change-Id: Ife25fe9aaa333ffcdce3f2a48faed565dc83aebf Reviewed-on: https://code.wireshark.org/review/27746 Reviewed-by: João Valverde <j@v6e.pt>
2018-05-23Fixups to doc/plugins.example buildJoão Valverde1-2/+6
Set symbol visibility properly. Add -Wall -Wextra GCC flags that were there previosuly. Remove duplicate -I compiler flags. Remove useless "hello_EXPORTS" definition while at it. Change-Id: Iac173f02e41b3b4f2999e5d71b95b910a9c2da11 Reviewed-on: https://code.wireshark.org/review/27744 Reviewed-by: João Valverde <j@v6e.pt>
2018-05-22Convert doc/plugins.example to use CMakeJoão Valverde4-76/+57
Change-Id: Ic290249569ea9bb435638a9cabd4d87ac7ef9323 Reviewed-on: https://code.wireshark.org/review/27699 Reviewed-by: João Valverde <j@v6e.pt>
2018-05-21Restore doc/plugins.example Makefile.amJoão Valverde1-0/+34
This file was erroneously removed in 4a156da068269aae75d79cd08e579754c52a0c43. This file is not part of Wireshark's (the application) build system. We may want to convert the example to use CMake instead (purely for consistency) but until then configure.ac and Makefile.am are required files. Change-Id: I7902ff71a44bba798e8dc7083103d4785095b374 Reviewed-on: https://code.wireshark.org/review/27684 Reviewed-by: João Valverde <j@v6e.pt>
2018-04-18Remove autotools build system.Dario Lombardo1-34/+0
It has been replaced by cmake. Change-Id: I83a5eddb8645dbbf6bca9f026066d2e995d8e87a Reviewed-on: https://code.wireshark.org/review/26969 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-08replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.Dario Lombardo2-2/+2
The first is deprecated, as per https://spdx.org/licenses/. Change-Id: I8e21e1d32d09b8b94b93a2dc9fbdde5ffeba6bed Reviewed-on: https://code.wireshark.org/review/25661 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-12-14Refactor plugin registration and loadingJoão Valverde3-9/+31
Put different types of plugins (libwiretap, libwireshark) in different subdirectories, give libwiretap and libwireshark init routines that load the plugins, and have them scan the appropriate subdirectories so that we don't even *try* to, for example, load libwireshark plugins in programs that only use libwiretap. Compiled plugins are stored in subfolders of the plugin folders, with the subfolder name being the Wireshark minor version number (X.Y). There is another hierarchical level for each Wireshark library (libwireshark, libwscodecs and libwiretap). The folder names are respectively plugins/X.Y/{epan,codecs,wiretap}. Currently we only distribute "epan" (libwireshark) plugins. Change-Id: I3438787a6f45820d64ba4ca91cbe3c8864708acb Reviewed-on: https://code.wireshark.org/review/23983 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
2017-11-11SPDX: Convert doc and docbook.Gerald Combs2-26/+2
Replace the GPLv2+ blurbs in the doc and docbook directories with SPDX headers as appropriate. This includes example code such as packet-PROTOABBREV.c. Remove dfilter2pod.pl and dfilter2xml.pl. We haven't used them since 2010. Change-Id: I4adec02a9a4bc3e71e32bdf89f2754edaf696938 Reviewed-on: https://code.wireshark.org/review/24343 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-10-03Add version check for plugin compatibilityJoão Valverde2-3/+8
Only plugins built for the same feature release (X.Y) are assured binary compatibility. Make sure we don't try to run unsuitable code and, if so, warn the user. This might happen for example if the user manually copies a binary plugin to the wrong folder, intentionally or by accident. I'm using "release version" to loosely mean not a patch release (i.e: a feature release). Change-Id: I896e9cbbd2d3843623fff6af8ef51002ec06f1f8 Reviewed-on: https://code.wireshark.org/review/23807 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
2017-09-25Add toy plugin to doc/ as an out-of-tree build exampleJoão Valverde4-0/+144
Change-Id: I9b7abb27d30dbe83996a01b7f722693a974948c5 Reviewed-on: https://code.wireshark.org/review/23665 Reviewed-by: João Valverde <j@v6e.pt>