]> git.ozlabs.org Git - ccan/blobdiff - tools/tools.h
tools: enhance get_libs to get libraries for tests, too.
[ccan] / tools / tools.h
index 7368e93208688291e8ea1eaa1ee9e1a2574a1bb6..1e9e22424906284458ea14f789c05ff3859916db 100644 (file)
@@ -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 */