proto_malformed SHOULD NOT be used outside of show_exception.c
[metze/wireshark/wip.git] / epan / show_exception.h
1 /* show_exception.h
2  *
3  * Routines to put exception information into the protocol tree
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 2000 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25
26 /*
27  * Called to register the pseudo-protocols used for exceptions.
28  */
29 void register_show_exception(void);
30
31 /*
32  * Routine used to add an indication of an arbitrary exception to the tree.
33  */
34 WS_DLL_PUBLIC
35 void show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
36     unsigned long exception, const char *exception_message);
37
38 /*
39  * Routine used to add an indication of a ReportedBoundsError exception
40  * to the tree.
41  */
42 void
43 show_reported_bounds_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);