X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Flicenses.h;h=ed1e9ad7fbacec775ef05a8e927bc4952bbb4f91;hb=7bfb7a1cf4f7c5eaf4081ef7128b7fc7d1cf926e;hp=7b70bfac2109f2279c417738b49a1b3463abdd53;hpb=e67de75f0d64096956ad40ecb09462dac6fc5f03;p=ccan diff --git a/tools/ccanlint/licenses.h b/tools/ccanlint/licenses.h index 7b70bfac..ed1e9ad7 100644 --- a/tools/ccanlint/licenses.h +++ b/tools/ccanlint/licenses.h @@ -13,6 +13,7 @@ enum license { LICENSE_GPL, LICENSE_BSD, LICENSE_MIT, + LICENSE_CC0, LICENSE_PUBLIC_DOMAIN, LICENSE_UNKNOWN }; @@ -26,9 +27,18 @@ struct license_info { const char *clause[NUM_CLAUSES]; }; +/* Is [project license][file license] compatible? */ +bool license_compatible[LICENSE_UNKNOWN+1][LICENSE_UNKNOWN]; + extern const struct license_info licenses[]; struct ccan_file; bool find_boilerplate(struct ccan_file *f, enum license license); +struct doc_section; +enum license which_license(struct doc_section *d); + +struct manifest; +struct doc_section *find_license_tag(const struct manifest *m); + #endif /* CCANLINT_LICENSES_H */