diff options
author | James Buren <braewoods+rb@braewoods.net> | 2021-07-03 00:19:58 +0000 |
---|---|---|
committer | James Buren <braewoods+rb@braewoods.net> | 2021-07-03 00:19:58 +0000 |
commit | c9f2308a1d4401ceefaac47b1ea851530d07e47d (patch) | |
tree | 81f75a26707bd8583f5117a7a0febba894787996 /firmware/include | |
parent | d1a92aafff55defefcb8cf8f4b045701325088b2 (diff) | |
download | rockbox-c9f2308a1d4401ceefaac47b1ea851530d07e47d.tar.gz rockbox-c9f2308a1d4401ceefaac47b1ea851530d07e47d.zip |
fat: move fattime_mktime to timefuncs
This moves the time conversion function to timefuncs since it has
uses on ports that don't use the FAT driver. This function has no
dependency on the FAT driver as it is so this should not cause any
issues. To reflect this separation the function was renamed to
dostime_mktime since it is really for DOS timestamps. The places
where it was used have also been updated.
Change-Id: Id98b1448d5c6fcda286846e1d2c736db682bfb52
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/timefuncs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h index c72508e862..2e8ef01ca6 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h | |||
@@ -24,8 +24,10 @@ | |||
24 | 24 | ||
25 | #include "config.h" | 25 | #include "config.h" |
26 | #include <stdbool.h> | 26 | #include <stdbool.h> |
27 | #include <stdint.h> | ||
27 | #include "time.h" | 28 | #include "time.h" |
28 | 29 | ||
30 | time_t dostime_mktime(uint16_t dosdate, uint16_t dostime); | ||
29 | struct tm *get_time(void); | 31 | struct tm *get_time(void); |
30 | int set_time(const struct tm *tm); | 32 | int set_time(const struct tm *tm); |
31 | #if CONFIG_RTC | 33 | #if CONFIG_RTC |