Start implementation of IsoFilesystem for reading ISO images.

This commit is contained in:
Vreixo Formoso
2007-12-30 21:39:17 +01:00
parent 135ac835eb
commit d8cb56ecf3
6 changed files with 461 additions and 0 deletions

View File

@ -113,6 +113,11 @@ void iso_bb(uint8_t *buf, uint32_t num, int bytes);
uint32_t iso_read_lsb(const uint8_t *buf, int bytes);
uint32_t iso_read_msb(const uint8_t *buf, int bytes);
/**
* if error != NULL it will be set to 1 if LSB and MSB integers don't match.
*/
uint32_t iso_read_bb(const uint8_t *buf, int bytes, int *error);
/** Records the date/time into a 7 byte buffer (ECMA-119, 9.1.5) */
void iso_datetime_7(uint8_t *buf, time_t t);
@ -132,6 +137,12 @@ time_t iso_datetime_read_17(const uint8_t *buf);
*/
int iso_eaccess(const char *path);
/**
* Copy up to \p len chars from \p buf and return this newly allocated
* string. The new string is null-terminated.
*/
char *strcopy(const char *buf, size_t len);
typedef struct iso_rbtree IsoRBTree;
/**