Skip to content

Commit 1906e7d

Browse files
committed
program: add sparse attribute
1 parent 1712ad6 commit 1906e7d

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
@@ -94,6 +94,7 @@ static int load_program_tag(xmlNode *node, bool is_nand)
9494
program->label = attr_as_string(node, "label", &errors);
9595
program->num_sectors = attr_as_unsigned(node, "num_partition_sectors", &errors);
9696
program->partition = attr_as_unsigned(node, "physical_partition_number", &errors);
97+
program->sparse = attr_as_bool(node, "sparse", &errors);
9798
program->start_sector = attr_as_string(node, "start_sector", &errors);
9899

99100
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)