From 8543f1bdd4ad05a50305126be714bb20a5785839 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 26 Jul 2011 20:15:44 -0500 Subject: [PATCH] pkg: document pkg_traverse() --- pkg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg.c b/pkg.c index f9bfa72..a30cce3 100644 --- a/pkg.c +++ b/pkg.c @@ -232,6 +232,11 @@ pkg_verify_graph(pkg_t *root, int 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 pkg_traverse(pkg_t *root, void (*pkg_traverse_func)(pkg_t *package, void *data),