-#include "talloc/talloc.h"
-#include "string/string.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/str/str.h>
+#include <ccan/grab_file/grab_file.h>
+#include <ccan/str_talloc/str_talloc.h>
#include "tools.h"
#include <err.h>
#include <stdbool.h>
return deps;
}
-char **get_deps(const void *ctx, const char *dir)
+char **get_deps(const void *ctx, const char *dir, bool recurse)
{
+ if (!recurse) {
+ unsigned int num;
+ return get_one_deps(ctx, dir, &num);
+ }
return get_all_deps(ctx, dir, get_one_deps);
}
-char **get_safe_ccan_deps(const void *ctx, const char *dir)
+char **get_safe_ccan_deps(const void *ctx, const char *dir, bool recurse)
{
+ if (!recurse) {
+ unsigned int num;
+ return get_one_safe_deps(ctx, dir, &num);
+ }
return get_all_deps(ctx, dir, get_one_safe_deps);
}