summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-03-30 11:15:39 +0200
committerBastien Nocera <hadess@hadess.net>2021-03-30 11:15:39 +0200
commit3a77ac1993492296bcfdc8ee17626e5d1c7f9761 (patch)
treeabbdad5354e67402f26fbd6eace1627a4fd858ed
parente3834de6cca55d7294bc3932af1ea9f85f5f116b (diff)
downloadlibgudev-3a77ac1993492296bcfdc8ee17626e5d1c7f9761.tar.gz
all: Use SPDX headers
-rw-r--r--gudev/gudev.h16
-rw-r--r--gudev/gudevclient.c15
-rw-r--r--gudev/gudevclient.h15
-rw-r--r--gudev/gudevdevice.c15
-rw-r--r--gudev/gudevdevice.h16
-rw-r--r--gudev/gudevenumerator.c16
-rw-r--r--gudev/gudevenumerator.h16
-rw-r--r--gudev/gudevenums.h16
-rw-r--r--gudev/gudevprivate.h16
-rw-r--r--gudev/gudevtypes.h16
-rw-r--r--tests/test-enumerator-filter.c17
-rw-r--r--tests/test-sysfsattr.c22
12 files changed, 26 insertions, 170 deletions
diff --git a/gudev/gudev.h b/gudev/gudev.h
index 2606101..cb43cde 100644
--- a/gudev/gudev.h
+++ b/gudev/gudev.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef __G_UDEV_H__
diff --git a/gudev/gudevclient.c b/gudev/gudevclient.c
index f147a4d..cfd8baa 100644
--- a/gudev/gudevclient.c
+++ b/gudev/gudevclient.c
@@ -1,18 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008-2010 David Zeuthen <davidz@redhat.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008-2010 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifdef HAVE_CONFIG_H
diff --git a/gudev/gudevclient.h b/gudev/gudevclient.h
index f5c0a71..329f22d 100644
--- a/gudev/gudevclient.h
+++ b/gudev/gudevclient.h
@@ -1,18 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/gudev/gudevdevice.c b/gudev/gudevdevice.c
index 92230aa..565fa28 100644
--- a/gudev/gudevdevice.c
+++ b/gudev/gudevdevice.c
@@ -1,18 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifdef HAVE_CONFIG_H
diff --git a/gudev/gudevdevice.h b/gudev/gudevdevice.h
index 3da71b8..69ecc0a 100644
--- a/gudev/gudevdevice.h
+++ b/gudev/gudevdevice.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/gudev/gudevenumerator.c b/gudev/gudevenumerator.c
index cc85f1a..f908f82 100644
--- a/gudev/gudevenumerator.c
+++ b/gudev/gudevenumerator.c
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008-2010 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008-2010 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifdef HAVE_CONFIG_H
diff --git a/gudev/gudevenumerator.h b/gudev/gudevenumerator.h
index ea892e2..e0838ee 100644
--- a/gudev/gudevenumerator.h
+++ b/gudev/gudevenumerator.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008-2010 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008-2010 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/gudev/gudevenums.h b/gudev/gudevenums.h
index 06e58ff..259472d 100644
--- a/gudev/gudevenums.h
+++ b/gudev/gudevenums.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/gudev/gudevprivate.h b/gudev/gudevprivate.h
index 061388d..52e9f5b 100644
--- a/gudev/gudevprivate.h
+++ b/gudev/gudevprivate.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/gudev/gudevtypes.h b/gudev/gudevtypes.h
index 74bd96a..f206368 100644
--- a/gudev/gudevtypes.h
+++ b/gudev/gudevtypes.h
@@ -1,19 +1,7 @@
/* -*- Mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
- * Copyright (C) 2008 David Zeuthen <davidz@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2008 David Zeuthen <davidz@redhat.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*/
#if !defined (_GUDEV_COMPILATION) && !defined(_GUDEV_INSIDE_GUDEV_H)
diff --git a/tests/test-enumerator-filter.c b/tests/test-enumerator-filter.c
index dfcdba2..6e9a073 100644
--- a/tests/test-enumerator-filter.c
+++ b/tests/test-enumerator-filter.c
@@ -4,21 +4,10 @@
* Run with:
* umockdev-wrapper /tmp/battery
*
- * Copyright (C) 2013 Canonical Ltd.
- * Author: Martin Pitt <martin.pitt@ubuntu.com>
- *
- * umockdev is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * SPDX-FileCopyrightText: 2013 Canonical Ltd.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*
- * umockdev is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ * Author: Martin Pitt <martin.pitt@ubuntu.com>
*/
#include <locale.h>
diff --git a/tests/test-sysfsattr.c b/tests/test-sysfsattr.c
index 9d1c920..12e45ef 100644
--- a/tests/test-sysfsattr.c
+++ b/tests/test-sysfsattr.c
@@ -1,24 +1,8 @@
-/* umockdev example: use libumockdev in C to fake a battery
- * Build with:
- * gcc battery.c -Wall `pkg-config --cflags --libs umockdev-1.0 gio-2.0` -o /tmp/battery
- * Run with:
- * umockdev-wrapper /tmp/battery
+/*
+ * SPDX-FileCopyrightText: 2013 Canonical Ltd.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
*
- * Copyright (C) 2013 Canonical Ltd.
* Author: Martin Pitt <martin.pitt@ubuntu.com>
- *
- * umockdev is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * umockdev is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
#include <locale.h>