1 #ifndef CCANLINT_LICENSES_H
2 #define CCANLINT_LICENSES_H
4 #include <ccan/tal/tal.h>
18 LICENSE_PUBLIC_DOMAIN,
26 const char *shortname;
28 /* Edit distance is expensive, and this works quite well. */
29 const char *clause[NUM_CLAUSES];
32 /* Is [project license][file license] compatible? */
33 bool license_compatible[LICENSE_UNKNOWN+1][LICENSE_UNKNOWN];
35 extern const struct license_info licenses[];
38 bool find_boilerplate(struct ccan_file *f, enum license license);
41 enum license which_license(struct doc_section *d);
44 struct doc_section *find_license_tag(const struct manifest *m);
46 const char *get_license_oneliner(const tal_t *ctx, enum license license);
48 #endif /* CCANLINT_LICENSES_H */