pkg: document pkg_traverse()
parent
03c9402e98
commit
8543f1bdd4
5
pkg.c
5
pkg.c
|
@ -232,6 +232,11 @@ pkg_verify_graph(pkg_t *root, int depth)
|
||||||
pkg_traverse(root, NULL, NULL, depth);
|
pkg_traverse(root, NULL, NULL, depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* pkg_traverse(root, pkg_traverse_func, data, maxdepth)
|
||||||
|
*
|
||||||
|
* walk the dependency graph up to maxdepth levels. -1 means infinite recursion.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
pkg_traverse(pkg_t *root,
|
pkg_traverse(pkg_t *root,
|
||||||
void (*pkg_traverse_func)(pkg_t *package, void *data),
|
void (*pkg_traverse_func)(pkg_t *package, void *data),
|
||||||
|
|
Loading…
Reference in New Issue