diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-08-30 02:50:18 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-08-30 02:50:18 +0000 |
commit | 0e3cb70212e3be65cca036b9e89e6366f8a8a5ef (patch) | |
tree | d443ba6ccbe2a38e65d07311896e4db887bfad28 /proto.h | |
parent | 1a06c6a7eae14624d1e1a766fe2221c49a306537 (diff) | |
download | wireshark-0e3cb70212e3be65cca036b9e89e6366f8a8a5ef.tar.gz wireshark-0e3cb70212e3be65cca036b9e89e6366f8a8a5ef.tar.bz2 wireshark-0e3cb70212e3be65cca036b9e89e6366f8a8a5ef.zip |
Add FT_STRINGZ type. NCP dissector is only one that uses it right now.
Remove tvb_get_stringz from quake dissector and add tvb_get_nstringz,
tvb_get_nstringz0, and tvb_strnlen to tvbuff.c.
Remove multiple definitions of pntohl and friends from various places
(except for wiretap) and put into pint.h
Consolidate duplicate code for turning FT_* enums into strings (ala the
glossary).
svn path=/trunk/; revision=2382
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.41 2000/08/22 06:38:20 gram Exp $ + * $Id: proto.h,v 1.42 2000/08/30 02:50:03 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -89,7 +89,8 @@ enum ftenum { FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_STRING, - FT_UINT_STRING, + FT_STRINGZ, /* for use with proto_tree_add_item() */ + FT_UINT_STRING, /* for use with proto_tree_add_item() */ FT_ETHER, FT_BYTES, FT_IPv4, @@ -546,4 +547,7 @@ extern int num_tree_types; #define g_ptr_array_len(a) ((a)->len) #endif +/* Returns a string representing the field type */ +const char* proto_registrar_ftype_name(enum ftenum ftype); + #endif /* proto.h */ |