libfdt: Enhanced and published fdt_next_tag()
Enhanced the formerly private function _fdt_next_tag() to allow stepping through the tree, used to produce a human-readable dump, and made it part of the published interface. Also added some comments.
This commit is contained in:
@@ -81,6 +81,9 @@ struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
|
||||
void *fdt_getprop(const void *fdt, int nodeoffset,
|
||||
const char *name, int *lenp);
|
||||
|
||||
uint32_t fdt_next_tag(const void *fdt, int offset,
|
||||
int *nextoffset, char **namep);
|
||||
|
||||
/* Write-in-place functions */
|
||||
int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
|
||||
const void *val, int len);
|
||||
|
||||
Reference in New Issue
Block a user