X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Ftools.h;h=1e9e22424906284458ea14f789c05ff3859916db;hp=7368e93208688291e8ea1eaa1ee9e1a2574a1bb6;hb=199023653cd6020218fbc4d0712591fc7ee0c5e1;hpb=1842f55199e6a5da273ca21b6fbe8afa6ecdfe11 diff --git a/tools/tools.h b/tools/tools.h index 7368e932..1e9e2242 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -31,8 +31,12 @@ char **get_deps(const void *ctx, const char *dir, const char *style, char **get_safe_ccan_deps(const void *ctx, const char *dir, const char *style, bool recurse); -/* This also needs to compile the info file. */ -char **get_libs(const void *ctx, const char *dir, bool recurse, +/* This also needs to compile the info file: + * style == NULL: don't recurse. + * style == depends: recurse dependencies. + * style == testdepends: recurse testdepends and depends. + */ +char **get_libs(const void *ctx, const char *dir, const char *style, char *(*get_info)(const void *ctx, const char *dir)); /* From tools.c */