summaryrefslogtreecommitdiff
path: root/epan/guid-utils.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-08-17 19:09:41 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-08-17 19:09:41 +0000
commit7d040193881dc431ec20e471189f99d16a4cbbf8 (patch)
tree511ad9a6b80a92c30e8d7a008e3d07fe306bbc6d /epan/guid-utils.h
parent162d87a516782fb04df22471305df0a386a3d996 (diff)
downloadwireshark-7d040193881dc431ec20e471189f99d16a4cbbf8.tar.gz
some further work on the GUID/UUID resolvings
most of the relevant code moved to guid_utils lot of corresponding code cleanup in packet-dcerpc.c still using GHashTable still not using a manuf like file svn path=/trunk/; revision=18939
Diffstat (limited to 'epan/guid-utils.h')
-rw-r--r--epan/guid-utils.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/epan/guid-utils.h b/epan/guid-utils.h
index 75e1cb463e..2d6e8eb2e0 100644
--- a/epan/guid-utils.h
+++ b/epan/guid-utils.h
@@ -8,8 +8,6 @@
*
* Copyright 1998 Gerald Combs
*
- * MobileIPv6 support added by Tomislav Borosa <tomislav.borosa@siemens.hr>
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -40,22 +38,26 @@ typedef struct _e_guid_t {
} e_guid_t;
-/* GUID "registry" */
-typedef struct _guid_key {
- e_guid_t guid;
-} guid_key;
+extern void guids_init(void);
+
+/* add a GUID */
+extern void guids_add_guid(e_guid_t *guid, const gchar *name);
-typedef struct _guid_value {
- const gchar *name;
-} guid_value;
+/* try to get registered name for this GUID */
+extern const gchar *guids_get_guid_name(e_guid_t *guid);
+/* resolve GUID to name (or if unknown to hex string) */
+/* (if you need hex string only, use guid_to_str instead) */
+extern const gchar* guids_resolve_guid_to_str(e_guid_t *guid);
-extern GHashTable *guids_new(void);
+/* add a UUID (dcerpc_init_uuid() will call this too) */
+#define guids_add_uuid(uuid, name) guids_add_guid((e_guid_t *) (uuid), (name))
-/* add a GUID (don't forget to init the GHashTable) */
-extern void guids_add_guid(GHashTable *guids, e_guid_t *guid, gchar *name, void *private_data);
+/* try to get registered name for this UUID */
+#define guids_get_uuid_name(uuid) guids_get_guid_name((e_guid_t *) (uuid))
-/* try to get registered name for this guid */
-extern const gchar *guids_get_guid_name(GHashTable *guids, e_guid_t *guid);
+/* resolve UUID to name (or if unknown to hex string) */
+/* (if you need hex string only, use guid_to_str instead) */
+#define guids_resolve_uuid_to_str(uuid) guids_resolve_guid_to_str((e_guid_t *) (uuid))
#endif /* __GUID_UTILS_H__ */