OSDN Git Service

Add support for timezone offsets.
[android-x86/external-exfat.git] / libexfat / exfat.h
index 00c903d..8e9765f 100644 (file)
@@ -228,9 +228,10 @@ int exfat_set_label(struct exfat* ef, const char* label);
 int exfat_mount(struct exfat* ef, const char* spec, const char* options);
 void exfat_unmount(struct exfat* ef);
 
-time_t exfat_exfat2unix(le16_t date, le16_t time, uint8_t centisec);
+time_t exfat_exfat2unix(le16_t date, le16_t time, uint8_t centisec,
+               uint8_t tzoffset);
 void exfat_unix2exfat(time_t unix_time, le16_t* date, le16_t* time,
-               uint8_t* centisec);
+               uint8_t* centisec, uint8_t* tzoffset);
 void exfat_tzset(void);
 
 bool exfat_ask_to_fix(const struct exfat* ef);
@@ -238,5 +239,7 @@ bool exfat_fix_invalid_vbr_checksum(const struct exfat* ef, void* sector,
                uint32_t vbr_checksum);
 bool exfat_fix_invalid_node_checksum(const struct exfat* ef,
                struct exfat_node* node);
+bool exfat_fix_unknown_entry(struct exfat* ef, struct exfat_node* dir,
+               const struct exfat_entry* entry, off_t offset);
 
 #endif /* ifndef EXFAT_H_INCLUDED */