From 75cb2675fd6b95d3635b0b2a81b0e2d8c1ad715f Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Thu, 24 Apr 2014 21:56:31 +0200 Subject: 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 --- wsutil/time_util.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 wsutil/time_util.h (limited to 'wsutil/time_util.h') 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 + * 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 + +WS_DLL_PUBLIC +time_t mktime_utc(struct tm *tm); + +#endif /* __TIME_UTIL_H__ */ -- cgit v1.2.3