X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Flicenses.h;h=60d203763cf99417ba818c6dbdd7ad219b03253c;hb=60e31637d7545a22844a3c0f46833031bce4295f;hp=48aad16719bb958374d6842d756971df7699bac5;hpb=77818c1729ed1dc68b7b99a6def6ac534a0da07c;p=ccan diff --git a/tools/ccanlint/licenses.h b/tools/ccanlint/licenses.h index 48aad167..60d20376 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, @@ -13,6 +14,7 @@ enum license { LICENSE_GPL, LICENSE_BSD, LICENSE_MIT, + LICENSE_CC0, LICENSE_PUBLIC_DOMAIN, LICENSE_UNKNOWN }; @@ -22,6 +24,7 @@ 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]; }; @@ -40,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 */