1 #ifndef CCAN_TOOLS_MANIFEST_H
2 #define CCAN_TOOLS_MANIFEST_H
4 #include "ccanlint/licenses.h"
5 #include <ccan/list/list.h>
16 /* The module name, ie. final element of dir name */
18 struct ccan_file *info_file;
20 /* Linked off deps. */
21 struct list_node list;
22 /* Where our final compiled output is */
23 char *compiled[COMPILE_TYPES];
25 struct list_head c_files;
26 struct list_head h_files;
28 struct list_head run_tests;
29 struct list_head api_tests;
30 struct list_head compile_ok_tests;
31 struct list_head compile_fail_tests;
32 struct list_head other_test_c_files;
33 struct list_head other_test_files;
35 struct list_head other_files;
36 struct list_head examples;
37 struct list_head mangled_examples;
39 /* From tests/check_depends_exist.c */
40 struct list_head deps;
41 struct list_head test_deps;
43 /* From tests/license_exists.c */
47 /* Get the manifest for a given directory. */
48 struct manifest *get_manifest(const void *ctx, const char *dir);
51 struct list_node list;
53 /* Name (usually, within m->dir). */
59 /* Pristine version of the original file.
60 * Use get_ccan_file_contents to fill this. */
64 /* Use get_ccan_file_lines / get_ccan_line_info to fill these. */
65 unsigned int num_lines;
67 struct line_info *line_info;
69 struct list_head *doc_sections;
71 /* If this file gets compiled (eg. .C file to .o file), result here. */
72 char *compiled[COMPILE_TYPES];
74 /* Filename containing output from valgrind. */
77 /* Leak output from valgrind. */
80 /* Simplified stream (lowercase letters and single spaces) */
84 /* A new ccan_file, with the given name (talloc_steal onto returned value). */
85 struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name);
87 /* Use this rather than accessing f->contents directly: loads on demand. */
88 const char *get_ccan_file_contents(struct ccan_file *f);
90 /* Use this rather than accessing f->lines directly: loads on demand. */
91 char **get_ccan_file_lines(struct ccan_file *f);
93 #endif /* CCAN_TOOLS_MANIFEST_H */