ohcount
|
00001 // licenses.h written by Mitchell Foral. mitchell<att>caladbolg.net. 00002 // See COPYING for license information. 00003 00004 #ifndef OHCOUNT_LICENSES_H 00005 #define OHCOUNT_LICENSES_H 00006 00024 #include "sourcefile.h" 00025 00026 #define LIC_ACADEMIC "academic" 00027 #define LIC_ADAPTIVE "adaptive" 00028 #define LIC_AFFERO "affero" 00029 #define LIC_APACHE "apache" 00030 #define LIC_APACHE2 "apache_2" 00031 #define LIC_APPLE_OPEN_SOURCE "apple_open_source" 00032 #define LIC_ARTISTIC "artistic" 00033 #define LIC_ATTRIBUTION_ASSURANCE "attribution_assurance" 00034 #define LIC_BOOST "boost" 00035 #define LIC_BSD "bsd" 00036 #define LIC_CECILL "cecill" 00037 #define LIC_CECILL_B "cecill_b" 00038 #define LIC_CECILL_C "cecill_c" 00039 #define LIC_COMPUTER_ASSOCIATES_TRUSTED "computer_associates_trusted" 00040 #define LIC_COMMON_DEVELOPMENT_AND_DISTRIBUTION \ 00041 "common_development_and_distribution" 00042 #define LIC_COMMON_PUBLIC "common_public" 00043 #define LIC_CUA_OFFICE "cua_office" 00044 #define LIC_EU_DATAGRID "eu_datagrid" 00045 #define LIC_ECLIPSE "eclipse" 00046 #define LIC_EDUCATIONAL "educational" 00047 #define LIC_EIFFEL "eiffel" 00048 #define LIC_EIFFEL2 "eiffel_2" 00049 #define LIC_ENTESSA "entessa" 00050 #define LIC_FAIR "fair" 00051 #define LIC_FRAMEWORX "frameworx" 00052 #define LIC_GPL3_OR_LATER "gpl3_or_later" 00053 #define LIC_GPL3 "gpl3" 00054 #define LIC_LGPL3 "lgpl3" 00055 #define LIC_GPL "gpl" 00056 #define LIC_LGPL "lgpl" 00057 #define LIC_HISTORICAL "historical" 00058 #define LIC_I9 "i9_license" 00059 #define LIC_IBM_PUBLIC "ibm_public" 00060 #define LIC_INTEL_OPEN_SOURCE "intel_open_source" 00061 #define LIC_JABBER_OPEN_SOURCE "jabber_open_source" 00062 #define LIC_LUCENT_PLAN9 "lucent_plan9" 00063 #define LIC_LUCENT_PUBLIC "lucent_public" 00064 #define LIC_MIT "mit" 00065 #define LIC_MITRE "mitre" 00066 #define LIC_MOTOSOTO "motosoto" 00067 #define LIC_MOZILLA_PUBLIC1 "mozilla_public_1" 00068 #define LIC_MOZILLA_PUBLIC11 "mozilla_public_1_1" 00069 #define LIC_NASA_OPEN "nasa_open" 00070 #define LIC_NAUMEN "naumen" 00071 #define LIC_NETHACK "nethack" 00072 #define LIC_NOKIA_OPEN_SOURCE "nokia_open_source" 00073 #define LIC_OCLC_RESEARCH "oclc_research" 00074 #define LIC_OPEN_GROUP_TEST "open_group_test" 00075 #define LIC_OPEN_SOFTWARE "open_software" 00076 #define LIC_PHP_LICENSE "php_license" 00077 #define LIC_PYTHON_LICENSE "python_license" 00078 #define LIC_PYTHON_SOFTWARE_FOUNDATION "python_software_foundation" 00079 #define LIC_QT_PUBLIC "qt_public" 00080 #define LIC_REALNETWORKS_PUBLIC_SOURCE "realnetworks_public_source" 00081 #define LIC_RECIPROCAL_PUBLIC "reciprocal_public" 00082 #define LIC_RICOH_SOURCE "ricoh_source" 00083 #define LIC_SLEEPYCAT "sleepycat" 00084 #define LIC_SUGARCRM113 "sugarcrm_1_1_3" 00085 #define LIC_SUN_INDUSTRY_STANDARDS "sun_industry_standards" 00086 #define LIC_SUN_PUBLIC "sun_public" 00087 #define LIC_SYBASE_OPEN_WATCOM "sybase_open_watcom" 00088 #define LIC_U_OF_I_NCSA "u_of_i_ncsa" 00089 #define LIC_VOVIDA_SOFTWARE "vovida_software" 00090 #define LIC_W3C "w3c" 00091 #define LIC_WXWINDOWS "wx_windows" 00092 #define LIC_XNET "x_net" 00093 #define LIC_ZOPE "zope" 00094 #define LIC_ZLIB_LIBPNG "zlib_libpng" 00095 #define LIC_APACHE_ISH "apache_ish" 00096 #define LIC_BSD_ISH "bsd_ish" 00097 #define LIC_BSD_2CLAUSE_ISH "bsd_2clause_ish" 00098 00106 LicenseList *ohcount_detect_license(SourceFile *sourcefile); 00107 00112 LicenseList *ohcount_license_list_new(); 00113 00118 void ohcount_license_list_free(LicenseList *list); 00119 00120 #endif