Make dissection of AVP: 3GPP-User-Location-Info(22) l=15 f=V-- vnd=TGPP val=303231...
[obnox/wireshark/wip.git] / epan / timestamp.h
1 /* timestamp.h
2  * Defines for packet timestamps
3  *
4  * $Id$
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef __TIMESTAMP_H__
26 #define __TIMESTAMP_H__
27
28 /*
29  * Type of time-stamp shown in the summary display.
30  */
31 typedef enum {
32         TS_RELATIVE,            /* Since start of capture */
33         TS_ABSOLUTE,
34         TS_ABSOLUTE_WITH_DATE,
35         TS_DELTA,               /* Since previous captured packet */
36         TS_DELTA_DIS,           /* Since previous displayed packet */
37         TS_EPOCH,               /* Seconds (and fractions) since epoch */
38         TS_UTC,
39         TS_UTC_WITH_DATE,
40
41 /*
42  * Special value used for the command-line setting in Wireshark, to indicate
43  * that no value has been set from the command line.
44  */
45         TS_NOT_SET
46 } ts_type;
47
48 typedef enum {
49         TS_PREC_AUTO,           /* recent */
50         TS_PREC_FIXED_SEC,      /* recent and internal */
51         TS_PREC_FIXED_DSEC,     /* recent and internal */
52         TS_PREC_FIXED_CSEC,     /* recent and internal */
53         TS_PREC_FIXED_MSEC,     /* recent and internal */
54         TS_PREC_FIXED_USEC,     /* recent and internal */
55         TS_PREC_FIXED_NSEC,     /* recent and internal */
56         TS_PREC_AUTO_SEC,       /* internal */
57         TS_PREC_AUTO_DSEC,      /* internal */
58         TS_PREC_AUTO_CSEC,      /* internal */
59         TS_PREC_AUTO_MSEC,      /* internal */
60         TS_PREC_AUTO_USEC,      /* internal */
61         TS_PREC_AUTO_NSEC       /* internal */
62 } ts_precision;
63
64 typedef enum {
65         TS_SECONDS_DEFAULT,     /* recent */
66         TS_SECONDS_HOUR_MIN_SEC,/* recent */
67
68 /*
69  * Special value used for the command-line setting in Wireshark, to indicate
70  * that no value has been set from the command line.
71  */
72         TS_SECONDS_NOT_SET
73 } ts_seconds_type;
74
75 extern ts_type timestamp_get_type(void);
76 extern void timestamp_set_type(ts_type);
77
78 extern int timestamp_get_precision(void);
79 extern void timestamp_set_precision(int tsp);
80
81 extern ts_seconds_type timestamp_get_seconds_type(void);
82 extern void timestamp_set_seconds_type(ts_seconds_type);
83
84 #endif /* timestamp.h */