Skip to content

Commit

Permalink
Change source headers to use SPDX license identifiers
Browse files Browse the repository at this point in the history
SSIA. Note that there might be some cases in which the style checker
trips because the intention is to only modify the license lines in
file headers, and add the missing ones.

Fixes #357
  • Loading branch information
aperezdc committed Oct 25, 2023
1 parent 7158e8e commit 5e49323
Show file tree
Hide file tree
Showing 63 changed files with 80 additions and 53 deletions.
2 changes: 1 addition & 1 deletion core/cog-directory-files-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-directory-files-handler.c
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-directory-files-handler.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-directory-files-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-directory-files-handler.h
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#ifndef COG_DIRECTORY_FILES_HANDLER_H
Expand Down
2 changes: 1 addition & 1 deletion core/cog-gamepad-manette.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-gamepad-manette.c
* Copyright (C) 2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-gamepad.c
* Copyright (C) 2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-gamepad.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-gamepad.h
* Copyright (C) 2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-host-routes-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-host-routes-handler.c
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-host-routes-handler.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-host-routes-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-host-routes-handler.h
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-modules.c
* Copyright (C) 2021 Adrian Perez de Castro <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-modules.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-modules.h
* Copyright (C) 2021 Adrian Perez de Castro <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
* Copyright (C) 2018 Eduardo Lima <elima@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-platform.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
* Copyright (C) 2018 Eduardo Lima <elima@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#ifndef COG_PLATFORM_H
Expand Down
2 changes: 1 addition & 1 deletion core/cog-prefix-routes-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-prefix-routes-handler.c
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-prefix-routes-handler.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-prefix-routes-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-prefix-routes-handler.h
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-request-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-request-handler.c
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-request-handler.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-request-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-request-handler.h
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#ifndef COG_REQUEST_HANDLER_H
Expand Down
2 changes: 1 addition & 1 deletion core/cog-shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-shell.c
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-shell.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-shell.h
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-utils.c
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-utils.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-utils.h
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog-webkit-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-webkit-utils.c
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-webkit-utils.h"
Expand Down
2 changes: 1 addition & 1 deletion core/cog-webkit-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2021 Igalia S.L.
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion core/cog.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2018 Eduardo Lima <elima@igalia.com>
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#ifndef COG_H
Expand Down
2 changes: 1 addition & 1 deletion launcher/cog-launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2021 Igalia S.L.
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-launcher.h"
Expand Down
2 changes: 1 addition & 1 deletion launcher/cog-launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2021 Igalia S.L.
* Copyright (C) 2017 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion launcher/cog.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2018 Eduardo Lima <elima@igalia.com>
* Copyright (C) 2017-2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-launcher.h"
Expand Down
2 changes: 1 addition & 1 deletion launcher/cogctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2021 Igalia S.L.
* Copyright (C) 2018 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#define COG_INSIDE_COG__ 1
Expand Down
2 changes: 1 addition & 1 deletion platform/common/cog-file-chooser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-file-chooser.c
* Copyright (C) 2023 SUSE Software Solutions Germany GmbH
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-file-chooser.h"
Expand Down
2 changes: 1 addition & 1 deletion platform/common/cog-file-chooser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-file-chooser.h
* Copyright (C) 2023 SUSE Software Solutions Germany GmbH
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion platform/common/cog-gl-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-gl-utils.c
* Copyright (C) 2021-2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-gl-utils.h"
Expand Down
2 changes: 1 addition & 1 deletion platform/common/cog-gl-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-gl-utils.h
* Copyright (C) 2021-2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion platform/common/cursors.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cursors.h
* Copyright (C) 2023 SUSE Software Solutions Germany GmbH
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion platform/common/egl-proc-address.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* egl-proc-address.h
* Copyright (C) 2020 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion platform/drm/cog-drm-gles-renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-drm-gles-renderer.c
* Copyright (C) 2021-2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "../../core/cog.h"
Expand Down
2 changes: 1 addition & 1 deletion platform/drm/cog-drm-modeset-renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-drm-modeset-renderer.c
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "../../core/cog.h"
Expand Down
2 changes: 1 addition & 1 deletion platform/drm/cog-drm-renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-drm-renderer.c
* Copyright (C) 2021 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "cog-drm-renderer.h"
Expand Down
2 changes: 1 addition & 1 deletion platform/drm/cog-drm-renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* cog-drm-renderer.h
* Copyright (C) 2021-2022 Igalia S.L.
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion platform/drm/cog-platform-drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2019-2022 Igalia S.L.
* Copyright (C) 2020 Michal Artazov <michal@artazov.cz>
*
* Distributed under terms of the MIT license.
* SPDX-License-Identifier: MIT
*/

#include "../../core/cog.h"
Expand Down
6 changes: 6 additions & 0 deletions platform/drm/cursor-drm.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) 2021 Michal Artazov
*
* SPDX-License-Identifier: MIT
*/

#include <drm_fourcc.h>
#include "cursor-drm.h"

Expand Down
5 changes: 5 additions & 0 deletions platform/drm/cursor-drm.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (C) 2021 Michal Artazov
*
* SPDX-License-Identifier: MIT
*/

#ifndef COG_CURSOR_DRM_H
#define COG_CURSOR_DRM_H
Expand Down
2 changes: 2 additions & 0 deletions platform/drm/kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* SPDX-License-Identifier: MIT
*/

#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions platform/drm/kms.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* SPDX-License-Identifier: MIT
*/

#ifndef COG_KMS_H
Expand Down
2 changes: 2 additions & 0 deletions platform/gtk4/cog-gtk-settings-cell-renderer-variant.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "cog-gtk-settings-cell-renderer-variant.h"
Expand Down
2 changes: 2 additions & 0 deletions platform/gtk4/cog-gtk-settings-cell-renderer-variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef BrowserCellRendererVariant_h
Expand Down
2 changes: 2 additions & 0 deletions platform/gtk4/cog-gtk-settings-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "cog-gtk-settings-dialog.h"
Expand Down
Loading

0 comments on commit 5e49323

Please sign in to comment.