3 * XML dissector for Wireshark
4 * DTD import declarations
6 * Copyright 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
20 #include <stdlib.h> /* exit() */
21 #include "ws_attributes.h"
23 typedef struct _dtd_build_data_t
{
31 GPtrArray
* attributes
;
36 typedef struct _dtd_token_data_t
{
41 typedef struct _dtd_named_list_t
{
46 typedef struct _dtd_preparse_scanner_state Dtd_PreParse_scanner_state_t
;
48 extern GString
* dtd_preparse(const char* dname
, const char* fname
, GString
* err
);
49 extern dtd_build_data_t
* dtd_parse(GString
* s
);
50 extern const char* dtd_location(Dtd_PreParse_scanner_state_t
* state
);