decrypt drsuapi attributes
[wireshark-sm.git] / epan / dtd.h
blobf835e54fba0a8c41af3e7bff2b4a9ccdc6226f4d
1 /** @file
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
15 #ifndef _DTD_H_
16 #define _DTD_H_
18 #include <glib.h>
19 #include <stdbool.h>
20 #include <stdlib.h> /* exit() */
21 #include "ws_attributes.h"
23 typedef struct _dtd_build_data_t {
24 char* proto_name;
25 char* media_type;
26 char* description;
27 char* proto_root;
28 bool recursion;
30 GPtrArray* elements;
31 GPtrArray* attributes;
33 GString* error;
34 } dtd_build_data_t;
36 typedef struct _dtd_token_data_t {
37 char* text;
38 char* location;
39 } dtd_token_data_t;
41 typedef struct _dtd_named_list_t {
42 char* name;
43 GPtrArray* list;
44 } 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);
52 #endif