1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
James Buren 2021-07-03 00:19:58 +00:00
parent d1a92aafff
commit c9f2308a1d
6 changed files with 19 additions and 17 deletions

View file

@ -24,8 +24,10 @@
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include "time.h"
time_t dostime_mktime(uint16_t dosdate, uint16_t dostime);
struct tm *get_time(void);
int set_time(const struct tm *tm);
#if CONFIG_RTC