diff options
author | Stef van Os <stef.van.os@prodrive-technologies.com> | 2016-04-20 15:22:00 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-04-21 23:08:52 +0200 |
commit | c0124282910cfebe24e4efdbac184e5fee522589 (patch) | |
tree | 22cf5d7424bffa7dd0de2d0d9453392a644df627 /payloads/libpayload/include/libpayload.h | |
parent | 3a6374c4541a92ec0c31e2290a26073e195102a8 (diff) |
libpayload: time: split time.h from libpayload.h
Move time functions and prototypes from libpayload.h to time.h.
In a similar manner to other c libary headers, this change makes
porting existing applications to libpayload easier.
Change-Id: I71e27c6dddde6e77e0e9b4d7be7cd5298e03a648
Signed-off-by: Stef van Os <stef.van.os@prodrive-technologies.com>
Reviewed-on: https://review.coreboot.org/14437
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include/libpayload.h')
-rw-r--r-- | payloads/libpayload/include/libpayload.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 1b66bf8ddb..b51abdfec6 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -56,6 +56,7 @@ #include <stdarg.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include <arch/types.h> #include <arch/io.h> #include <arch/virtual.h> @@ -354,20 +355,6 @@ u8 *sha1(const u8 *data, size_t len, u8 *buf); /** @} */ /** - * @defgroup time Time functions - * @{ - */ - -/** System time structure */ -struct timeval { - time_t tv_sec; /**< Seconds */ - suseconds_t tv_usec; /**< Microseconds */ -}; - -int gettimeofday(struct timeval *tv, void *tz); -/** @} */ - -/** * @defgroup info System information functions * This module contains functions that return information about the system * @{ |