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.
diff --git a/include/libfdt.h b/include/libfdt.h
index acdc72e..c4b3c24 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -81,6 +81,9 @@
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);