Skip to content

Commit

Permalink
refactor: unserialise -> deserialise
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Jan 19, 2025
1 parent df5bde1 commit 7bce66d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hw/arm/apple-silicon/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ DTBNode *load_dtb_from_file(char *filename)
filename, payload_type);
}

root = dtb_unserialise(file_data);
root = dtb_deserialise(file_data);
g_free(file_data);
return root;
}
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/apple-silicon/dtb.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static DTBNode *dtb_deserialise_node(uint8_t **dtb_blob)
return node;
}

DTBNode *dtb_unserialise(uint8_t *dtb_blob)
DTBNode *dtb_deserialise(uint8_t *dtb_blob)
{
return dtb_deserialise_node(&dtb_blob);
}
Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/apple-silicon/dtb.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ typedef struct {
} DTBNode;

DTBNode *dtb_create_node(DTBNode *parent, const char *name);
DTBNode *dtb_unserialise(uint8_t *dtb_blob);
DTBNode *dtb_deserialise(uint8_t *dtb_blob);
void dtb_serialise(uint8_t *buf, DTBNode *root);
bool dtb_remove_node_named(DTBNode *parent, const char *name);
void dtb_remove_node(DTBNode *node, DTBNode *child);
Expand Down

0 comments on commit 7bce66d

Please sign in to comment.