mark the "short segment" message field as generated and add an expert_info to it
[obnox/wireshark/wip.git] / epan / dtd.h
1 /*
2  *  dtd.h
3  *
4  * XML dissector for Wireshark 
5  * DTD import declarations
6  *
7  * Copyright 2005, Luis E. Garcia Ontanon <luis.ontanon@gmail.com>
8  *
9  * $Id$
10  *
11  * Wireshark - Network traffic analyzer
12  * By Gerald Combs <gerald@wireshark.org>
13  * Copyright 1998 Gerald Combs
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  * 
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  * 
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28  */
29
30 #ifndef _DTD_H_
31 #define _DTD_H_
32
33 #include <glib.h>
34
35 typedef struct _dtd_build_data_t {
36         gchar* proto_name;
37         gchar* media_type;
38         gchar* description;
39         gchar* proto_root;
40         gboolean recursion;
41
42         GPtrArray* elements;
43         GPtrArray* attributes;
44
45         GString* error;
46 } dtd_build_data_t;
47
48 typedef struct _dtd_token_data_t {
49         gchar* text;
50         gchar* location;
51 } dtd_token_data_t;
52
53 typedef struct _dtd_named_list_t {
54         gchar* name;
55         GPtrArray* list;
56 } dtd_named_list_t;
57
58 extern GString* dtd_preparse(const gchar* dname, const gchar* fname, GString* err);
59 extern dtd_build_data_t* dtd_parse(GString* s);
60
61 #endif