X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Flicenses.h;h=b921fa6279b3da5e1aa36ccae10a85ad5f7df2e3;hp=ed1e9ad7fbacec775ef05a8e927bc4952bbb4f91;hb=HEAD;hpb=4fc1f40b58ec470a89d95e8790956a4967a87cb1 diff --git a/tools/ccanlint/licenses.h b/tools/ccanlint/licenses.h index ed1e9ad7..b921fa62 100644 --- a/tools/ccanlint/licenses.h +++ b/tools/ccanlint/licenses.h @@ -1,6 +1,7 @@ #ifndef CCANLINT_LICENSES_H #define CCANLINT_LICENSES_H #include +#include enum license { LICENSE_LGPLv2_PLUS, @@ -23,12 +24,13 @@ enum license { struct license_info { const char *name; const char *shortname; + const char *describe; /* Edit distance is expensive, and this works quite well. */ const char *clause[NUM_CLAUSES]; }; /* Is [project license][file license] compatible? */ -bool license_compatible[LICENSE_UNKNOWN+1][LICENSE_UNKNOWN]; +extern bool license_compatible[LICENSE_UNKNOWN+1][LICENSE_UNKNOWN]; extern const struct license_info licenses[]; @@ -41,4 +43,6 @@ enum license which_license(struct doc_section *d); struct manifest; struct doc_section *find_license_tag(const struct manifest *m); +const char *get_license_oneliner(const tal_t *ctx, enum license license); + #endif /* CCANLINT_LICENSES_H */