diff options
author | Michael Brown | 2012-03-19 17:59:53 +0100 |
---|---|---|
committer | Michael Brown | 2012-03-19 23:13:27 +0100 |
commit | 846bde90e6b1001480016fa46a957a9e726af68a (patch) | |
tree | cf3dfaaef4c90864c11c707482fde92f49b4abf7 /src/core/null_time.c | |
parent | [test] Add self-tests for mktime() (diff) | |
download | ipxe-846bde90e6b1001480016fa46a957a9e726af68a.tar.gz ipxe-846bde90e6b1001480016fa46a957a9e726af68a.tar.xz ipxe-846bde90e6b1001480016fa46a957a9e726af68a.zip |
[time] Define an API for getting the current time
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/null_time.c')
-rw-r--r-- | src/core/null_time.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/null_time.c b/src/core/null_time.c new file mode 100644 index 00000000..f9c48a95 --- /dev/null +++ b/src/core/null_time.c @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2012 Michael Brown <mbrown@fensystems.co.uk>. + * + * 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 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., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +/** @file + * + * Nonexistent time source + * + */ + +#include <ipxe/time.h> + +PROVIDE_TIME_INLINE ( null, time_now ); |