diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dtd.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dtd.h')
-rw-r--r-- | epan/dtd.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/epan/dtd.h b/epan/dtd.h new file mode 100644 index 00000000..053d3efa --- /dev/null +++ b/epan/dtd.h @@ -0,0 +1,51 @@ +/** @file + * + * XML dissector for Wireshark + * DTD import declarations + * + * Copyright 2005, Luis E. Garcia Ontanon <luis@ontanon.org> + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef _DTD_H_ +#define _DTD_H_ + +#include <glib.h> +#include <stdlib.h> /* exit() */ +#include "ws_attributes.h" + +typedef struct _dtd_build_data_t { + gchar* proto_name; + gchar* media_type; + gchar* description; + gchar* proto_root; + gboolean recursion; + + GPtrArray* elements; + GPtrArray* attributes; + + GString* error; +} dtd_build_data_t; + +typedef struct _dtd_token_data_t { + gchar* text; + gchar* location; +} dtd_token_data_t; + +typedef struct _dtd_named_list_t { + gchar* name; + GPtrArray* list; +} dtd_named_list_t; + +typedef struct _dtd_preparse_scanner_state Dtd_PreParse_scanner_state_t; + +extern GString* dtd_preparse(const gchar* dname, const gchar* fname, GString* err); +extern dtd_build_data_t* dtd_parse(GString* s); +extern const gchar* dtd_location(Dtd_PreParse_scanner_state_t* state); + +#endif |