Also add the new dissectors
[obnox/wireshark/wip.git] / epan / expert.h
1 /* expert.h
2  * Collecting of Expert information.
3  *
4  * For further info, see: http://wiki.ethereal.com/Development/ExpertInfo 
5  *
6  * $Id$
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27 #ifndef __EXPERT_H__
28 #define __EXPERT_H__
29
30 #include "gnuc_format_check.h"
31 #include <epan/proto.h>
32
33
34 /** only for internal and display use */
35 typedef struct expert_info_s {
36         guint32 packet_num;
37         int group;
38         int severity;
39         gchar * protocol;
40         gchar * summary;
41     proto_item *pitem;
42 } expert_info_t;
43
44
45 extern void
46 expert_init(void);
47
48 extern void
49 expert_cleanup(void);
50
51 /** Add an expert info.
52
53  @param pinfo packet info of the currently processed packet
54  @param pi current protocol item (or NULL)
55  @param group the expert group (like PI_CHECKSUM)
56  @param severity the expert severity (like PI_WARN)
57  @param format printf like format string with further infos
58  */
59 extern void
60 expert_add_info_format(packet_info *pinfo, proto_item *pi, int group,
61         int severity, const char *format, ...)
62         GNUC_FORMAT_CHECK(printf, 5, 6);
63
64 #endif /* __EXPERT_H__ */