diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-06 10:32:59 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-06 10:32:59 +0000 |
commit | 6efcb1adf001eff4cff141733bad798fe2200d14 (patch) | |
tree | dd115ea922b4ddb9753879203b72ca647eb667eb /epan/timestamp.h | |
parent | 7ff0da29332710a8e3acbbcd0ad978ad5dc9bbd3 (diff) |
Added an option to display seconds as hours, minutes and seconds
in the packet list, on this format: "1h 2m 3.456s".
svn path=/trunk/; revision=32683
Diffstat (limited to 'epan/timestamp.h')
-rw-r--r-- | epan/timestamp.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/epan/timestamp.h b/epan/timestamp.h index bf45d3f8b6..bdc9ab0d62 100644 --- a/epan/timestamp.h +++ b/epan/timestamp.h @@ -48,7 +48,7 @@ typedef enum { TS_PREC_FIXED_SEC, /* recent and internal */ TS_PREC_FIXED_DSEC, /* recent and internal */ TS_PREC_FIXED_CSEC, /* recent and internal */ - TS_PREC_FIXED_MSEC, /* recent and internal */ + TS_PREC_FIXED_MSEC, /* recent and internal */ TS_PREC_FIXED_USEC, /* recent and internal */ TS_PREC_FIXED_NSEC, /* recent and internal */ TS_PREC_AUTO_SEC, /* internal */ @@ -59,10 +59,24 @@ typedef enum { TS_PREC_AUTO_NSEC /* internal */ } ts_precision; +typedef enum { + TS_SECONDS_DEFAULT, /* recent */ + TS_SECONDS_HOUR_MIN_SEC,/* recent */ + +/* + * Special value used for the command-line setting in Wireshark, to indicate + * that no value has been set from the command line. + */ + TS_SECONDS_NOT_SET +} ts_seconds_type; + extern ts_type timestamp_get_type(void); extern void timestamp_set_type(ts_type); extern int timestamp_get_precision(void); extern void timestamp_set_precision(int tsp); +extern ts_seconds_type timestamp_get_seconds_type(void); +extern void timestamp_set_seconds_type(ts_seconds_type); + #endif /* timestamp.h */ |