diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-09-22 21:14:54 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-09-22 21:14:54 +0000 |
commit | 9e23f31e5f116054682b9f8460f56fb7e73eedd1 (patch) | |
tree | f003e5ec1c257836dda6c2c807fdb0ecccb60e73 /epan/guid-utils.c | |
parent | b4b9ced31a8ab30e521309304689e80e82b13530 (diff) |
Add support for reading from stdin under Windows. Based on a patch sent
in last year by Gianluca Varenni.
Add partial support for reading from named pipes (currently disabled).
Move utf_8to16() and utf_16to8() to a separate module (unicode-utils.[ch])
so that we don't have to cut and paste code in dumpcap.c.
Fix up whitespace.
svn path=/trunk/; revision=19291
Diffstat (limited to 'epan/guid-utils.c')
-rw-r--r-- | epan/guid-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/guid-utils.c b/epan/guid-utils.c index 8427c93e6f..1b72db0bed 100644 --- a/epan/guid-utils.c +++ b/epan/guid-utils.c @@ -31,7 +31,7 @@ #include <glib.h> #include <epan/epan.h> -#include <epan/strutil.h> +#include <epan/unicode-utils.h> #include <epan/emem.h> #include "guid-utils.h" @@ -46,7 +46,7 @@ static emem_tree_t *guid_to_name_tree = NULL; #ifdef _WIN32 /* try to resolve an DCE/RPC interface name to it's name using the Windows registry entries */ /* XXX - might be better to fill all interfaces into our database at startup instead of searching each time */ -int +int ResolveWin32UUID(e_guid_t if_id, char *uuid_name, int uuid_name_max_len) { TCHAR *reg_uuid_name; @@ -82,7 +82,7 @@ ResolveWin32UUID(e_guid_t if_id, char *uuid_name, int uuid_name_max_len) /* store a guid to name mapping */ -void +void guids_add_guid(e_guid_t *guid, const gchar *name) { emem_tree_key_t guidkey[2]; @@ -113,7 +113,7 @@ guids_add_guid(e_guid_t *guid, const gchar *name) guidkey[0].key=g; guidkey[0].length=4; guidkey[1].length=0; - + pe_tree_insert32_array(guid_to_name_tree, &guidkey[0], name); } @@ -154,7 +154,7 @@ guids_get_guid_name(e_guid_t *guid) guidkey[0].key=g; guidkey[0].length=4; guidkey[1].length=0; - + if((name = pe_tree_lookup32_array(guid_to_name_tree, &guidkey[0]))){ return name; } @@ -172,7 +172,7 @@ guids_get_guid_name(e_guid_t *guid) } -void +void guids_init(void) { guid_to_name_tree=pe_tree_create(EMEM_TREE_TYPE_RED_BLACK, "guid_to_name"); |