aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/decode_as_ber.h
diff options
context:
space:
mode:
authorgal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-13 12:59:27 +0000
committergal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-13 12:59:27 +0000
commit6852bd645c5ebd38eb2af9399dba5fddf19fe4c7 (patch)
tree8bc3e25bd6afc1b8eeb5ae59ab92988c18a6dcc8 /gtk/decode_as_ber.h
parentcabc89d0039541c9a21b8885fbb422b8f471fce4 (diff)
New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER).
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20414 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/decode_as_ber.h')
-rw-r--r--gtk/decode_as_ber.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/gtk/decode_as_ber.h b/gtk/decode_as_ber.h
new file mode 100644
index 0000000000..fb910cc07e
--- /dev/null
+++ b/gtk/decode_as_ber.h
@@ -0,0 +1,39 @@
+/* decode_as_ber.h
+ *
+ * $Id$
+ *
+ * Routines to modify BER decoding on the fly.
+ * Only internally used between decode_as_dlg and decode_as_ber
+ *
+ * Copyright 2006 Graeme Lunt
+ *
+ * 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.
+ *
+ */
+
+#ifndef __DECODE_AS_BER_H__
+#define __DECODE_AS_BER_H__
+
+/** @file
+ * "Decode As" / "User Specified Decodes" dialog box.
+ * @ingroup dialog_group
+ */
+
+#define E_PAGE_BER "notebook_page_ber" /* ber only */
+
+extern GtkWidget *
+decode_ber_add_page(packet_info *pinfo);
+
+#endif