From Lars Roland: Move timestamp_type into libethereal and provide accessor
[metze/wireshark/wip.git] / epan / timestamp.h
1 /* timestamp.h
2  * Defines for packet timestamps
3  *
4  * $Id: timestamp.h,v 1.5 2004/03/18 19:04:32 obiot Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
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,
33         TS_ABSOLUTE,
34         TS_ABSOLUTE_WITH_DATE,
35         TS_DELTA
36 } ts_type;
37
38 /*
39  * Special value used for the command-line setting in Ethereal, to indicate
40  * that no value has been set from the command line.
41  */
42 #define TS_NOT_SET      ((ts_type)-1)
43
44 extern ts_type get_timestamp_setting(void);
45 extern void set_timestamp_setting(ts_type);
46
47 #endif /* timestamp.h */