diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-12-19 03:17:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-12-19 03:17:44 +0000 |
commit | 8e236e55defb5555eb3dde620d49e3a67f74ad4b (patch) | |
tree | 5d4eb5c243515cc0bf128f763d68a574ac3b2f76 /epan/proto.h | |
parent | 220054bd43730e0a85ab04d9e3f495cefe08703f (diff) |
For fields of type FT_ABSOLUTE_TIME, have the "display" value be one of
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display
the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL ==
(int)BASE_NONE, so there's no source or binary compatiblity issue,
although we might want to eliminate BASE_NONE at some point and have the
BASE_ values used with integral types start at 0, so that you can't
specify BASE_NONE for an integral field.
svn path=/trunk/; revision=31319
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index 2aedbab599..333bc234bb 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -167,6 +167,15 @@ typedef enum { /* BASE_ values that cause the field value to be displayed twice */ #define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC) +/* For FT_ABSOLUTE_TIME, the display format is ABSOLUTE_TIME_LOCAL if + * the time is to be displayed as local time in our time zone or + * ABSOLUTE_TIME_UTC if the time is to be displayed as UTC. */ + +typedef enum { + ABSOLUTE_TIME_LOCAL, + ABSOLUTE_TIME_UTC +} absolute_time_display_e; + typedef enum { HF_REF_TYPE_NONE, /**< Field is not referenced */ HF_REF_TYPE_INDIRECT, /**< Field is indirectly referenced (only applicable for FT_PROTOCOL) via. its child */ |