diff options
author | Jakub Zawadzki <darkjames@darkjames.pl> | 2014-04-24 21:56:31 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-04-25 04:13:02 +0000 |
commit | 75cb2675fd6b95d3635b0b2a81b0e2d8c1ad715f (patch) | |
tree | 306d2cd04613fb1642dc9e738ced2e20bd7ea7f5 /wsutil/time_util.h | |
parent | 6ec73981acd2aea4b8aeb6809fc23f5d044ffb5e (diff) |
Move mktime_utc() from tvbuff.c to wsutil/time_util.c
Also do little cleanup in mktime_utc (one big #ifndef)
Change-Id: I8f721ba76cad856cfef0a2d78e7f98686f8e4e3f
Reviewed-on: https://code.wireshark.org/review/1327
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/time_util.h')
-rw-r--r-- | wsutil/time_util.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/wsutil/time_util.h b/wsutil/time_util.h new file mode 100644 index 0000000000..37c6669b30 --- /dev/null +++ b/wsutil/time_util.h @@ -0,0 +1,32 @@ +/* time_util.h + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __TIME_UTIL_H__ +#define __TIME_UTIL_H__ + +#include "ws_symbol_export.h" + +#include <time.h> + +WS_DLL_PUBLIC +time_t mktime_utc(struct tm *tm); + +#endif /* __TIME_UTIL_H__ */ |