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:
parent
d1a92aafff
commit
c9f2308a1d
6 changed files with 19 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue