summaryrefslogtreecommitdiffstats
path: root/epan/diam_dict.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/diam_dict.h
parentInitial commit. (diff)
downloadwireshark-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/diam_dict.h')
-rw-r--r--epan/diam_dict.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/epan/diam_dict.h b/epan/diam_dict.h
new file mode 100644
index 00000000..e2111a5e
--- /dev/null
+++ b/epan/diam_dict.h
@@ -0,0 +1,73 @@
+/** @file
+ ** Diameter Dictionary Import Routines
+ **
+ ** (c) 2007, Luis E. Garcia Ontanon <luis@ontanon.org>
+ **
+ ** SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef _DIAM_DICT_H_
+#define _DIAM_DICT_H_
+
+struct _ddict_namecode_t {
+ char* name;
+ guint code;
+ struct _ddict_namecode_t* next;
+};
+
+typedef struct _ddict_namecode_t ddict_gavp_t;
+typedef struct _ddict_namecode_t ddict_enum_t;
+typedef struct _ddict_namecode_t ddict_application_t;
+
+typedef struct _ddict_vendor_t {
+ char* name;
+ char* desc;
+ guint code;
+ struct _ddict_vendor_t* next;
+} ddict_vendor_t;
+
+typedef struct _ddict_avp_t {
+ char* name;
+ char* description;
+ char* vendor;
+ char* type;
+ guint code;
+ ddict_gavp_t* gavps;
+ ddict_enum_t* enums;
+ struct _ddict_avp_t* next;
+} ddict_avp_t;
+
+typedef struct _ddict_typedefn_t {
+ char* name;
+ char* parent;
+ struct _ddict_typedefn_t* next;
+} ddict_typedefn_t;
+
+typedef struct _ddict_cmd_t {
+ char* name;
+ char* vendor;
+ guint code;
+ struct _ddict_cmd_t* next;
+} ddict_cmd_t;
+
+typedef struct _ddict_xmlpi_t {
+ char* name;
+ char* key;
+ char* value;
+ struct _ddict_xmlpi_t* next;
+} ddict_xmlpi_t;
+
+typedef struct _ddict_t {
+ ddict_application_t* applications;
+ ddict_vendor_t* vendors;
+ ddict_cmd_t* cmds;
+ ddict_typedefn_t* typedefns;
+ ddict_avp_t* avps;
+ ddict_xmlpi_t* xmlpis;
+} ddict_t;
+
+extern void ddict_print(FILE* fh, ddict_t* d);
+extern ddict_t* ddict_scan(const char* directory, const char* filename, int dbg);
+extern void ddict_free(ddict_t* d);
+
+#endif