Add Zero-Clause BSD license

This commit is contained in:
Nazar Mokrynskyi
2023-12-04 04:47:11 +00:00
parent 9af08e17e0
commit 994644ffe7
2 changed files with 6 additions and 3 deletions

View File

@@ -133,11 +133,12 @@ static const LicenseInfo gtk_license_info [] = {
{ N_("GNU Affero General Public License, version 3 only"), "https://www.gnu.org/licenses/agpl-3.0.html" },
{ N_("BSD 3-Clause License"), "https://opensource.org/licenses/BSD-3-Clause" },
{ N_("Apache License, Version 2.0"), "https://opensource.org/licenses/Apache-2.0" },
{ N_("Mozilla Public License 2.0"), "https://opensource.org/licenses/MPL-2.0" }
{ N_("Mozilla Public License 2.0"), "https://opensource.org/licenses/MPL-2.0" },
{ N_("BSD Zero-Clause License"), "https://opensource.org/license/0bsd" }
};
/* Keep this static assertion updated with the last element of the
* enumeration, and make sure it matches the last element of the array */
G_STATIC_ASSERT (G_N_ELEMENTS (gtk_license_info) - 1 == GTK_LICENSE_MPL_2_0);
G_STATIC_ASSERT (G_N_ELEMENTS (gtk_license_info) - 1 == GTK_LICENSE_0BSD);
typedef struct
{

View File

@@ -57,6 +57,7 @@ typedef struct _GtkAboutDialog GtkAboutDialog;
* @GTK_LICENSE_BSD_3: The 3-clause BSD licence
* @GTK_LICENSE_APACHE_2_0: The Apache License, version 2.0
* @GTK_LICENSE_MPL_2_0: The Mozilla Public License, version 2.0
* @GTK_LICENSE_0BSD: Zero-Clause BSD license
*
* The type of license for an application.
*
@@ -87,7 +88,8 @@ typedef enum {
GTK_LICENSE_BSD_3,
GTK_LICENSE_APACHE_2_0,
GTK_LICENSE_MPL_2_0
GTK_LICENSE_MPL_2_0,
GTK_LICENSE_0BSD
} GtkLicense;