repo2/firmware_legacy/fat/pff_file.h
46 | markw | #pragma once
|
|
#include "simplefile.h"
|
|||
#include "simpledir.h"
|
|||
#define MAX_DIR_LENGTH (9*5+1)
|
|||
#define MAX_FILE_LENGTH (8+3+1+1)
|
|||
#define MAX_PATH_LENGTH (9*5 + 8+3+1 + 1)
|
|||
// Do not access these directly... They vary by architecture, just the simplefile/simpledir interface is the same
|
|||
struct SimpleFile
|
|||
{
|
|||
char path[MAX_PATH_LENGTH];
|
|||
62 | markw | int is_readonly;
|
|
46 | markw | int size;
|
|
};
|
|||
struct SimpleDirEntry
|
|||
{
|
|||
char path[MAX_PATH_LENGTH];
|
|||
char * filename_ptr;
|
|||
52 | markw | char lfn[256];
|
|
46 | markw | int size;
|
|
int is_subdir;
|
|||
62 | markw | int is_readonly;
|
|
46 | markw | struct SimpleDirEntry * next; // as linked list - want to allow sorting...
|
|
};
|