path: root/doc
diff options
authorRoland Knall <roland.knall@br-automation.com>2016-01-12 13:45:20 +0100
committerRoland Knall <rknall@gmail.com>2016-01-15 11:30:39 +0000
commit75ff25f2858709ba75aa22046e43ec7e6c3cd9aa (patch)
treea47d5b737c55cc7625efc2fde89f838dd7363485 /doc
parent6ef2b48dbe280bdc2c2e8559556a426a9ae44b0d (diff)
extcap: Add list of extcaps to about dialog
Adds the list of available extcaps to the plugin list in the About dialog of Wireshark (Qt only). To do this, and additional sentence is provided in the extcap arguments list, which allows for additional information to be passed (as of right now, just version and display is used) Additionally, cleans up the code when using g_free. Bug: 11683 Change-Id: I04a958e2b73c9a707ab1cb4f2fc8345833a854a9 Reviewed-on: https://code.wireshark.org/review/13224 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'doc')
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/README.extcap b/doc/README.extcap
index cb32683eed..50dc1a82f3 100644
--- a/doc/README.extcap
+++ b/doc/README.extcap
@@ -44,13 +44,17 @@ in the doc/extcap.4 generated man page (in the build dir).
$ extcapbin --extcap-interfaces
+extcap {version=1.0}
interface {value=example1}{display=Example interface 1 for extcap}
interface {value=example2}{display=Example interface 2 for extcap}
+The version for the extcap sentence (which may exist as often as wanted, but only the
+last one will be used) will be used for displaying the version information of the extcap
+interface in the about dialog of Wireshark (Qt only).
The value for each interface will be used in subsequent calls as the interface
name IFACE.
STEP2: the extcap is queried for valid DLTs (Data Link Types) for all the
interfaces returned by the step 1.
diff --git a/doc/extcap_example.py b/doc/extcap_example.py
index 13c079d0ec..39bb571075 100755
--- a/doc/extcap_example.py
+++ b/doc/extcap_example.py
@@ -90,6 +90,7 @@ def extcap_config(interface):
def extcap_interfaces():
+ print ("extcap {version=1.0}")
print ("interface {value=example1}{display=Example interface usage for extcap}")
def extcap_dlts(interface):