aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_help.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-05-27 15:51:25 +0000
committerGerald Combs <gerald@wireshark.org>2010-05-27 15:51:25 +0000
commitfa5f6cced76ce35ed3a493abe1a12d2df75add2e (patch)
treef0e828aefc1e0da3ba482280f2a81e8c15e2c8e8 /gtk/proto_help.h
parent812f7c0ba757dcd0117a62033561e24179266a03 (diff)
From Edgar Gladkich:
This is an extension to the Wireshark context sensitive protocol help. Rows in TreeView window are analyzed and suitable help file (as HTML) is opened in a browser. The help part (large file, 23 MB) of the Protocol Help can be downloaded under www.inacon.com/dowload/stuff/protocol_help.tar.gz This protocol help "light" provides descriptive content for the most frequently used standard protocols, including IP, TCP or SMTP. From me: Changes: Rename "ph_" in some function names to "proto_help_". Move the protocol help code to its own module. Make a bunch of functions static. Remove unused code. Use browser_open_url() instead of a custom function. Increase the logging levels. Don't clobber the normal log handler. Update some Doxygen comments to match the format in the rest of the code base. Removed GTK version checks. We've been 2.x only for a while. Move ph_replace_string to string_replace() in epan/strutil.[ch]. Fix a bunch of memory leaks. Add a NULL pointer check. Reformat the overview menu label. Document the file format and locations. Add Edgar to AUTHORS. svn path=/trunk/; revision=32995
Diffstat (limited to 'gtk/proto_help.h')
-rw-r--r--gtk/proto_help.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/gtk/proto_help.h b/gtk/proto_help.h
new file mode 100644
index 0000000000..e11681ad4a
--- /dev/null
+++ b/gtk/proto_help.h
@@ -0,0 +1,46 @@
+/* proto_help.h
+ * Routines for dynamic protocol help menus
+ *
+ * $Id: capture_dlg.c 32829 2010-05-16 08:14:29Z guy $
+ *
+ * Edgar Gladkich <edgar.gladkich@incacon.de>
+ * Gerald Combs <gerald@wireshark.org>
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/** Search for and read configuration files
+ *
+ */
+extern void proto_help_init(void);
+
+/** Initialize the menu
+ *
+ * @param widget Context menu root
+ * @return void
+ */
+extern void proto_help_menu_init(GtkWidget *);
+
+/** Fill in the protocol help menu
+ *
+ * @param selection Currently-selected packet
+ * @param cf Capture file
+ * @return void
+ */
+extern void proto_help_menu_modify(GtkTreeSelection*, capture_file *cfile);