Skip to content

Commit e36b236

Browse files
committed
program: add sparse attribute
1 parent d39e7dd commit e36b236

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

program.c

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static int load_program_tag(xmlNode *node, bool is_nand)
9393
program->label = attr_as_string(node, "label", &errors);
9494
program->num_sectors = attr_as_unsigned(node, "num_partition_sectors", &errors);
9595
program->partition = attr_as_unsigned(node, "physical_partition_number", &errors);
96+
program->sparse = attr_as_bool(node, "sparse", &errors);
9697
program->start_sector = attr_as_string(node, "start_sector", &errors);
9798

9899
if (is_nand) {

program.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ struct program {
1212
const char *label;
1313
unsigned num_sectors;
1414
unsigned partition;
15+
bool sparse;
1516
const char *start_sector;
1617
unsigned last_sector;
1718

0 commit comments

Comments
 (0)