dmp: Enhance ack framenum links.
[metze/wireshark/wip.git] / epan / diam_dict.h
1 /*
2  ** diam_dict.h
3  ** Diameter Dictionary Import Routines
4  **
5  ** (c) 2007, Luis E. Garcia Ontanon <luis@ontanon.org>
6  **
7  ** This library is free software; you can redistribute it and/or
8  ** modify it under the terms of the GNU Library General Public
9  ** License as published by the Free Software Foundation; either
10  ** version 2 of the License, or (at your option) any later version.
11  **
12  ** This library is distributed in the hope that it will be useful,
13  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  ** Library General Public License for more details.
16  **
17  ** You should have received a copy of the GNU Library General Public
18  ** License along with this library; if not, write to the Free Software
19  ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef _DIAM_DICT_H_
23 #define _DIAM_DICT_H_
24
25 struct _ddict_namecode_t {
26         char* name;
27         guint code;
28         struct _ddict_namecode_t* next;
29 };
30
31 typedef struct _ddict_namecode_t ddict_gavp_t;
32 typedef struct _ddict_namecode_t ddict_enum_t;
33 typedef struct _ddict_namecode_t ddict_application_t;
34
35 typedef struct _ddict_vendor_t {
36         char* name;
37         char* desc;
38         guint code;
39         struct _ddict_vendor_t* next;
40 } ddict_vendor_t;
41
42 typedef struct _ddict_avp_t {
43         char* name;
44         char* description;
45         char* vendor;
46         char* type;
47         guint code;
48         ddict_gavp_t* gavps;
49         ddict_enum_t* enums;
50         struct _ddict_avp_t* next;
51 } ddict_avp_t;
52
53 typedef struct _ddict_typedefn_t {
54         char* name;
55         char* parent;
56         struct _ddict_typedefn_t* next;
57 } ddict_typedefn_t;
58
59 typedef struct _ddict_cmd_t {
60         char* name;
61         char* vendor;
62         guint code;
63         struct _ddict_cmd_t* next;
64 } ddict_cmd_t;
65
66 typedef struct _ddict_xmlpi_t {
67         char* name;
68         char* key;
69         char* value;
70         struct _ddict_xmlpi_t* next;
71 } ddict_xmlpi_t;
72
73 typedef struct _ddict_t {
74         ddict_application_t* applications;
75         ddict_vendor_t* vendors;
76         ddict_cmd_t* cmds;
77         ddict_typedefn_t* typedefns;
78         ddict_avp_t* avps;
79         ddict_xmlpi_t* xmlpis;
80 } ddict_t;
81
82 extern void ddict_print(FILE* fh, ddict_t* d);
83 extern ddict_t* ddict_scan(const char* directory, const char* filename, int dbg);
84 extern void ddict_free(ddict_t* d);
85
86 #endif