From 7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 20 Apr 2004 10:23:57 +0000 Subject: Reworked the time get/set functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4522 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/timefuncs.h | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'firmware/include/timefuncs.h') diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h index 3845b946c5..5c6719e709 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h @@ -21,24 +21,11 @@ #define _TIMEFUNCS_H_ #include "config.h" - -#ifndef SIMULATOR - -struct tm -{ - int tm_sec; /* seconds */ - int tm_min; /* minutes */ - int tm_hour; /* hours */ - int tm_mday; /* day of the month */ - int tm_mon; /* month */ - int tm_year; /* year since 1900 */ - int tm_wday; /* day of the week */ - int tm_yday; /* day in the year */ - int tm_isdst; /* daylight saving time */ -}; - -#endif +#include +#include "time.h" struct tm *get_time(void); +int set_time(struct tm *tm); +bool valid_time(struct tm *tm); #endif /* _TIMEFUNCS_H_ */ -- cgit v1.2.3