
"nm-dbus-compat.h" was GPL licensed. That is a problem, because we use it from libnm (which is LGPL). The history of this file in NetworkManager source tree: $ git shortlog -n -se055bdbbc3
-- shared/nm-std-aux/nm-dbus-compat.h include/nm-dbus-compat.h shared/nm-dbus-compat.h 5 Thomas Haller 1 Dan Winship 1 Lubomir Rintel Note that commitdd0e198955
('include: add nm-dbus-compat.h') introduced this file from dbus sources ([1]). Hence, originally the file is (like all of dbus sources) dual-licensed under GPL-2.0+ and Academic Free License 2.1 (AFL-2.1). That makes it problematic to change the license of this file to LGPL also because of the old history of the file. Instead, drop everything from the header except the bits that we actually use. I claim the remainder is trivial and only contains defines for documented D-Bus API. I don't think that the remainder is copyrightable and hence get rid of the copy-right notice and the GPL license. [1]39ea37b587/dbus/dbus-shared.h
26 lines
942 B
C
26 lines
942 B
C
// SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#ifndef __NM_DBUS_COMPAT_H__
|
|
#define __NM_DBUS_COMPAT_H__
|
|
|
|
#define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
|
|
|
|
#define DBUS_PATH_DBUS "/org/freedesktop/DBus"
|
|
|
|
#define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
|
|
#define DBUS_INTERFACE_INTROSPECTABLE "org.freedesktop.DBus.Introspectable"
|
|
#define DBUS_INTERFACE_OBJECT_MANAGER "org.freedesktop.DBus.ObjectManager"
|
|
#define DBUS_INTERFACE_PEER "org.freedesktop.DBus.Peer"
|
|
#define DBUS_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
|
|
|
|
#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT 0x1
|
|
#define DBUS_NAME_FLAG_REPLACE_EXISTING 0x2
|
|
#define DBUS_NAME_FLAG_DO_NOT_QUEUE 0x4
|
|
|
|
#define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER 1
|
|
#define DBUS_REQUEST_NAME_REPLY_IN_QUEUE 2
|
|
#define DBUS_REQUEST_NAME_REPLY_EXISTS 3
|
|
#define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER 4
|
|
|
|
#endif /* __NM_DBUS_COMPAT_H__ */
|