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;
42 /* From tests/license_exists.c */
46 /* Get the manifest for a given directory. */
47 struct manifest *get_manifest(const void *ctx, const char *dir);
50 struct list_node list;
52 /* Name (usually, within m->dir). */
58 /* Pristine version of the original file.
59 * Use get_ccan_file_contents to fill this. */
63 /* Use get_ccan_file_lines / get_ccan_line_info to fill these. */
64 unsigned int num_lines;
66 struct line_info *line_info;
68 struct list_head *doc_sections;
70 /* If this file gets compiled (eg. .C file to .o file), result here. */
71 char *compiled[COMPILE_TYPES];
73 /* Filename containing output from valgrind. */
76 /* Leak output from valgrind. */
79 /* Simplified stream (lowercase letters and single spaces) */
83 /* A new ccan_file, with the given name (talloc_steal onto returned value). */
84 struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name);
86 /* Use this rather than accessing f->contents directly: loads on demand. */
87 const char *get_ccan_file_contents(struct ccan_file *f);
89 /* Use this rather than accessing f->lines directly: loads on demand. */
90 char **get_ccan_file_lines(struct ccan_file *f);
92 #endif /* CCAN_TOOLS_MANIFEST_H */