more decompress
[wireshark-sm.git] / epan / diam_dict.h
blobe8105eb214eedb925a0be11f0b523048eefae91e
1 /** @file
2 ** Diameter Dictionary Import Routines
3 **
4 ** (c) 2007, Luis E. Garcia Ontanon <luis@ontanon.org>
5 **
6 ** SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef _DIAM_DICT_H_
10 #define _DIAM_DICT_H_
12 struct _ddict_namecode_t {
13 char* name;
14 unsigned code;
15 struct _ddict_namecode_t* next;
18 typedef struct _ddict_namecode_t ddict_gavp_t;
19 typedef struct _ddict_namecode_t ddict_enum_t;
20 typedef struct _ddict_namecode_t ddict_application_t;
22 typedef struct _ddict_vendor_t {
23 char* name;
24 char* desc;
25 unsigned code;
26 struct _ddict_vendor_t* next;
27 } ddict_vendor_t;
29 typedef struct _ddict_avp_t {
30 char* name;
31 char* description;
32 char* vendor;
33 char* type;
34 unsigned code;
35 ddict_gavp_t* gavps;
36 ddict_enum_t* enums;
37 struct _ddict_avp_t* next;
38 } ddict_avp_t;
40 typedef struct _ddict_typedefn_t {
41 char* name;
42 char* parent;
43 struct _ddict_typedefn_t* next;
44 } ddict_typedefn_t;
46 typedef struct _ddict_cmd_t {
47 char* name;
48 char* vendor;
49 unsigned code;
50 struct _ddict_cmd_t* next;
51 } ddict_cmd_t;
53 typedef struct _ddict_xmlpi_t {
54 char* name;
55 char* key;
56 char* value;
57 struct _ddict_xmlpi_t* next;
58 } ddict_xmlpi_t;
60 typedef struct _ddict_t {
61 ddict_application_t* applications;
62 ddict_vendor_t* vendors;
63 ddict_cmd_t* cmds;
64 ddict_typedefn_t* typedefns;
65 ddict_avp_t* avps;
66 ddict_xmlpi_t* xmlpis;
67 } ddict_t;
69 extern void ddict_print(FILE* fh, ddict_t* d);
70 extern ddict_t* ddict_scan(const char* directory, const char* filename, int dbg);
71 extern void ddict_free(ddict_t* d);
73 #endif