Pack file struct for.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-12-23 20:39:31 +01:00
parent 4f5f2a8854
commit f509833a3c
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3
2 changed files with 7 additions and 6 deletions

View file

@ -113,7 +113,6 @@ void process_fci(const file_t *pe, int fmd) {
}
}
#define MAX_DYNAMIC_FILES 128
uint16_t dynamic_files = 0;
file_t dynamic_file[MAX_DYNAMIC_FILES];

View file

@ -69,15 +69,17 @@
#define MAX_DEPTH 4
#define MAX_DYNAMIC_FILES 256
typedef struct file {
const uint16_t fid;
const uint8_t parent; //entry number in the whole table!!
const uint8_t *name;
uint8_t *data; //should include 2 bytes len at begining
const uint16_t fid;
const uint8_t acl[7];
const uint8_t parent; //entry number in the whole table!!
const uint8_t type;
const uint8_t ef_structure;
uint8_t *data; //should include 2 bytes len at begining
const uint8_t acl[7];
} file_t;
} __attribute__ ((packed)) file_t;
extern bool file_has_data(file_t *);