summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am11
-rw-r--r--docs/libnm/Makefile.am1
-rw-r--r--docs/libnm/meson.build1
-rw-r--r--libnm-core/meson.build14
-rw-r--r--libnm-core/nm-connection.c2
-rw-r--r--libnm-core/nm-crypto-gnutls.c2
-rw-r--r--libnm-core/nm-crypto-nss.c2
-rw-r--r--libnm-core/nm-crypto.c2
-rw-r--r--libnm-core/nm-dbus-utils.c2
-rw-r--r--libnm-core/nm-default-libnm-core.h22
-rw-r--r--libnm-core/nm-errors.c2
-rw-r--r--libnm-core/nm-keyfile/nm-keyfile-utils.c2
-rw-r--r--libnm-core/nm-keyfile/nm-keyfile.c2
-rw-r--r--libnm-core/nm-libnm-core-intern/nm-auth-subject.c2
-rw-r--r--libnm-core/nm-libnm-core-intern/nm-libnm-core-utils.c2
-rw-r--r--libnm-core/nm-property-compare.c2
-rw-r--r--libnm-core/nm-setting-6lowpan.c2
-rw-r--r--libnm-core/nm-setting-8021x.c2
-rw-r--r--libnm-core/nm-setting-adsl.c2
-rw-r--r--libnm-core/nm-setting-bluetooth.c2
-rw-r--r--libnm-core/nm-setting-bond.c2
-rw-r--r--libnm-core/nm-setting-bridge-port.c2
-rw-r--r--libnm-core/nm-setting-bridge.c2
-rw-r--r--libnm-core/nm-setting-cdma.c2
-rw-r--r--libnm-core/nm-setting-connection.c2
-rw-r--r--libnm-core/nm-setting-dcb.c2
-rw-r--r--libnm-core/nm-setting-dummy.c2
-rw-r--r--libnm-core/nm-setting-ethtool.c2
-rw-r--r--libnm-core/nm-setting-generic.c2
-rw-r--r--libnm-core/nm-setting-gsm.c2
-rw-r--r--libnm-core/nm-setting-hostname.c2
-rw-r--r--libnm-core/nm-setting-infiniband.c2
-rw-r--r--libnm-core/nm-setting-ip-config.c2
-rw-r--r--libnm-core/nm-setting-ip-tunnel.c2
-rw-r--r--libnm-core/nm-setting-ip4-config.c2
-rw-r--r--libnm-core/nm-setting-ip6-config.c2
-rw-r--r--libnm-core/nm-setting-macsec.c2
-rw-r--r--libnm-core/nm-setting-macvlan.c2
-rw-r--r--libnm-core/nm-setting-match.c2
-rw-r--r--libnm-core/nm-setting-olpc-mesh.c2
-rw-r--r--libnm-core/nm-setting-ovs-bridge.c2
-rw-r--r--libnm-core/nm-setting-ovs-dpdk.c2
-rw-r--r--libnm-core/nm-setting-ovs-external-ids.c2
-rw-r--r--libnm-core/nm-setting-ovs-interface.c2
-rw-r--r--libnm-core/nm-setting-ovs-patch.c2
-rw-r--r--libnm-core/nm-setting-ovs-port.c2
-rw-r--r--libnm-core/nm-setting-ppp.c2
-rw-r--r--libnm-core/nm-setting-pppoe.c2
-rw-r--r--libnm-core/nm-setting-proxy.c2
-rw-r--r--libnm-core/nm-setting-serial.c2
-rw-r--r--libnm-core/nm-setting-sriov.c2
-rw-r--r--libnm-core/nm-setting-tc-config.c2
-rw-r--r--libnm-core/nm-setting-team-port.c2
-rw-r--r--libnm-core/nm-setting-team.c2
-rw-r--r--libnm-core/nm-setting-tun.c2
-rw-r--r--libnm-core/nm-setting-user.c2
-rw-r--r--libnm-core/nm-setting-veth.c2
-rw-r--r--libnm-core/nm-setting-vlan.c2
-rw-r--r--libnm-core/nm-setting-vpn.c2
-rw-r--r--libnm-core/nm-setting-vrf.c2
-rw-r--r--libnm-core/nm-setting-vxlan.c2
-rw-r--r--libnm-core/nm-setting-wifi-p2p.c2
-rw-r--r--libnm-core/nm-setting-wimax.c2
-rw-r--r--libnm-core/nm-setting-wired.c2
-rw-r--r--libnm-core/nm-setting-wireguard.c2
-rw-r--r--libnm-core/nm-setting-wireless-security.c2
-rw-r--r--libnm-core/nm-setting-wireless.c2
-rw-r--r--libnm-core/nm-setting-wpan.c2
-rw-r--r--libnm-core/nm-setting.c2
-rw-r--r--libnm-core/nm-simple-connection.c2
-rw-r--r--libnm-core/nm-team-utils.c2
-rw-r--r--libnm-core/nm-utils.c2
-rw-r--r--libnm-core/nm-vpn-editor-plugin.c2
-rw-r--r--libnm-core/nm-vpn-plugin-info.c2
-rw-r--r--libnm-core/tests/meson.build5
-rw-r--r--libnm-core/tests/test-compare.c2
-rw-r--r--libnm-core/tests/test-crypto.c2
-rw-r--r--libnm-core/tests/test-general.c2
-rw-r--r--libnm-core/tests/test-keyfile.c2
-rw-r--r--libnm-core/tests/test-secrets.c2
-rw-r--r--libnm-core/tests/test-setting.c2
-rw-r--r--libnm-core/tests/test-settings-defaults.c2
-rw-r--r--shared/nm-default.h2
-rw-r--r--shared/nm-meta-setting.c4
84 files changed, 112 insertions, 100 deletions
diff --git a/Makefile.am b/Makefile.am
index 77f4e986fc..eb7d8dc99b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -593,7 +593,6 @@ libnm_core_nm_libnm_core_intern_libnm_libnm_core_intern_la_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(SANITIZER_LIB_CFLAGS) \
-DG_LOG_DOMAIN=\""libnm"\" \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE \
$(NULL)
libnm_core_nm_libnm_core_intern_libnm_libnm_core_intern_la_SOURCES = \
@@ -666,7 +665,6 @@ libnm_core_nm_keyfile_libnm_keyfile_la_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(SANITIZER_LIB_CFLAGS) \
-DG_LOG_DOMAIN=\""libnm"\" \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE \
$(NULL)
libnm_core_nm_keyfile_libnm_keyfile_la_SOURCES = \
@@ -1114,6 +1112,7 @@ libnm_core_lib_h_priv = \
libnm-core/nm-core-types-internal.h \
libnm-core/nm-crypto-impl.h \
libnm-core/nm-crypto.h \
+ libnm-core/nm-default-libnm-core.h \
libnm-core/nm-property-compare.h \
libnm-core/nm-setting-private.h \
libnm-core/nm-team-utils.h \
@@ -1219,7 +1218,7 @@ GLIB_GENERATED += \
$(libnm_core_lib_c_mkenums)
nm_core_enum_types_sources = $(libnm_core_lib_h_pub_real)
-nm_core_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "nm-default.h"\n'
+nm_core_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "libnm-core/nm-default-libnm-core.h"\n'
libnm-core/nm-core-enum-types.h.stamp: libnm-core/.dirstamp
libnm-core/nm-core-enum-types.c.stamp: libnm-core/.dirstamp
@@ -1240,7 +1239,6 @@ $(src_core_devices_ovs_libnm_device_plugin_ovs_la_OBJECTS): $(li
libnm_core_libnm_core_la_CPPFLAGS = \
$(dflt_cppflags_libnm_core) \
-DG_LOG_DOMAIN=\""libnm"\" \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE \
$(NULL)
libnm_core_libnm_core_la_SOURCES = \
@@ -1339,7 +1337,7 @@ GLIB_GENERATED += \
libnm-core/tests/nm-core-tests-enum-types.h \
libnm-core/tests/nm-core-tests-enum-types.c
nm_core_tests_enum_types_sources = libnm-core/tests/test-general-enums.h
-nm_core_tests_enum_types_MKENUMS_C_FLAGS = --fhead '\#include "nm-default.h"\n'
+nm_core_tests_enum_types_MKENUMS_C_FLAGS = --fhead '\#include "libnm-core/nm-default-libnm-core.h"\n'
libnm-core/tests/nm-core-tests-enum-types.h.stamp: libnm-core/tests/.dirstamp
libnm-core/tests/nm-core-tests-enum-types.c.stamp: libnm-core/tests/.dirstamp
@@ -1350,8 +1348,7 @@ libnm_core_tests_cppflags = \
-I$(srcdir)/libnm-core/tests \
-I$(builddir)/libnm-core/tests \
$(dflt_cppflags_libnm_core) \
- -DNETWORKMANAGER_COMPILATION_TEST \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE \
+ -DG_LOG_DOMAIN=\""test"\" \
$(SANITIZER_EXEC_CFLAGS) \
$(NULL)
diff --git a/docs/libnm/Makefile.am b/docs/libnm/Makefile.am
index c8f095f215..ae61d85af0 100644
--- a/docs/libnm/Makefile.am
+++ b/docs/libnm/Makefile.am
@@ -40,6 +40,7 @@ IGNORE_HFILES= \
nm-crypto-impl.h \
nm-crypto.h \
nm-dbus-helpers.h \
+ nm-default-libnm-core.h \
nm-device-private.h \
nm-dhcp4-config.h \
nm-dhcp6-config.h \
diff --git a/docs/libnm/meson.build b/docs/libnm/meson.build
index 2f70eb5c84..102009899d 100644
--- a/docs/libnm/meson.build
+++ b/docs/libnm/meson.build
@@ -13,6 +13,7 @@ private_headers = [
'nm-crypto-impl.h',
'nm-crypto.h',
'nm-dbus-helpers.h',
+ 'nm-default-libnm-core.h',
'nm-device-private.h',
'nm-dhcp4-config.h',
'nm-dhcp6-config.h',
diff --git a/libnm-core/meson.build b/libnm-core/meson.build
index 6e1872af87..c63e40e8c5 100644
--- a/libnm-core/meson.build
+++ b/libnm-core/meson.build
@@ -79,7 +79,7 @@ libnm_core_enum_sources = gnome.mkenums_simple(
'nm-core-enum-types',
sources: libnm_core_headers + [nm_version_macro_header],
identifier_prefix: nm_id_prefix,
- body_prefix: '#include "nm-default.h"',
+ body_prefix: '#include "libnm-core/nm-default-libnm-core.h"',
install_header: true,
install_dir: libnm_pkgincludedir,
)
@@ -95,8 +95,7 @@ libnm_libnm_core_intern = static_library(
libnm_base_dep,
],
c_args: [
- '-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
- '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
+ '-DG_LOG_DOMAIN="libnm"',
],
)
@@ -118,8 +117,7 @@ libnm_crypto = static_library(
libnm_glib_aux_dep,
],
c_args: [
- '-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
- '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
+ '-DG_LOG_DOMAIN="libnm"',
],
)
@@ -203,8 +201,7 @@ libnm_core = static_library(
uuid_dep,
],
c_args: [
- '-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
- '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
+ '-DG_LOG_DOMAIN="libnm"',
],
link_with: [
libnm_crypto,
@@ -251,8 +248,7 @@ libnm_keyfile = static_library(
sources: nm_keyfile_source + [libnm_core_enum_sources[1]],
dependencies: libnm_glib_aux_dep,
c_args: [
- '-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
- '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
+ '-DG_LOG_DOMAIN="libnm"',
],
link_with: libnm_libnm_core_intern,
)
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c
index 60b2485fec..b39c41d7bd 100644
--- a/libnm-core/nm-connection.c
+++ b/libnm-core/nm-connection.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-connection.h"
diff --git a/libnm-core/nm-crypto-gnutls.c b/libnm-core/nm-crypto-gnutls.c
index 6b71efee23..17c5d1dc6a 100644
--- a/libnm-core/nm-crypto-gnutls.c
+++ b/libnm-core/nm-crypto-gnutls.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-crypto-impl.h"
diff --git a/libnm-core/nm-crypto-nss.c b/libnm-core/nm-crypto-nss.c
index 871b6d70e2..8cbb4daf67 100644
--- a/libnm-core/nm-crypto-nss.c
+++ b/libnm-core/nm-crypto-nss.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2009 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-crypto-impl.h"
diff --git a/libnm-core/nm-crypto.c b/libnm-core/nm-crypto.c
index 229f564c0a..0eaeeb72f5 100644
--- a/libnm-core/nm-crypto.c
+++ b/libnm-core/nm-crypto.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2018 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-crypto.h"
diff --git a/libnm-core/nm-dbus-utils.c b/libnm-core/nm-dbus-utils.c
index 52a3c028c6..cf679daf9c 100644
--- a/libnm-core/nm-dbus-utils.c
+++ b/libnm-core/nm-dbus-utils.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-core-internal.h"
diff --git a/libnm-core/nm-default-libnm-core.h b/libnm-core/nm-default-libnm-core.h
new file mode 100644
index 0000000000..6eb84b947a
--- /dev/null
+++ b/libnm-core/nm-default-libnm-core.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2015 Red Hat, Inc.
+ */
+
+#ifndef __NM_DEFAULT_LIBNM_CORE_H__
+#define __NM_DEFAULT_LIBNM_CORE_H__
+
+/*****************************************************************************/
+
+#include "nm-glib-aux/nm-default-glib-i18n-lib.h"
+
+#undef NETWORKMANAGER_COMPILATION
+#define NETWORKMANAGER_COMPILATION NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE
+
+/*****************************************************************************/
+
+#include "nm-version.h"
+
+/*****************************************************************************/
+
+#endif /* __NM_DEFAULT_LIBNM_CORE_H__ */
diff --git a/libnm-core/nm-errors.c b/libnm-core/nm-errors.c
index 95a12c0717..023926630a 100644
--- a/libnm-core/nm-errors.c
+++ b/libnm-core/nm-errors.c
@@ -3,7 +3,7 @@
* Copyright (C) 2004 - 2014 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-errors.h"
diff --git a/libnm-core/nm-keyfile/nm-keyfile-utils.c b/libnm-core/nm-keyfile/nm-keyfile-utils.c
index f14e89c89d..8de4b0d257 100644
--- a/libnm-core/nm-keyfile/nm-keyfile-utils.c
+++ b/libnm-core/nm-keyfile/nm-keyfile-utils.c
@@ -3,7 +3,7 @@
* Copyright (C) 2010 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-keyfile-utils.h"
diff --git a/libnm-core/nm-keyfile/nm-keyfile.c b/libnm-core/nm-keyfile/nm-keyfile.c
index cfae785c19..c9c8cf8966 100644
--- a/libnm-core/nm-keyfile/nm-keyfile.c
+++ b/libnm-core/nm-keyfile/nm-keyfile.c
@@ -4,7 +4,7 @@
* Copyright (C) 2008 - 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-keyfile-internal.h"
diff --git a/libnm-core/nm-libnm-core-intern/nm-auth-subject.c b/libnm-core/nm-libnm-core-intern/nm-auth-subject.c
index 4e79e0ba19..1866662c2d 100644
--- a/libnm-core/nm-libnm-core-intern/nm-auth-subject.c
+++ b/libnm-core/nm-libnm-core-intern/nm-auth-subject.c
@@ -11,7 +11,7 @@
* makes requests, like process identifier and user UID.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-auth-subject.h"
diff --git a/libnm-core/nm-libnm-core-intern/nm-libnm-core-utils.c b/libnm-core/nm-libnm-core-intern/nm-libnm-core-utils.c
index 92426d33d9..1ab0fcf253 100644
--- a/libnm-core/nm-libnm-core-intern/nm-libnm-core-utils.c
+++ b/libnm-core/nm-libnm-core-intern/nm-libnm-core-utils.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-libnm-core-utils.h"
diff --git a/libnm-core/nm-property-compare.c b/libnm-core/nm-property-compare.c
index 053dfbfe58..c7cf10a26b 100644
--- a/libnm-core/nm-property-compare.c
+++ b/libnm-core/nm-property-compare.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-property-compare.h"
diff --git a/libnm-core/nm-setting-6lowpan.c b/libnm-core/nm-setting-6lowpan.c
index e90887f6c7..f71daf3258 100644
--- a/libnm-core/nm-setting-6lowpan.c
+++ b/libnm-core/nm-setting-6lowpan.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-6lowpan.h"
diff --git a/libnm-core/nm-setting-8021x.c b/libnm-core/nm-setting-8021x.c
index 24daf3f43a..9361f035d8 100644
--- a/libnm-core/nm-setting-8021x.c
+++ b/libnm-core/nm-setting-8021x.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-8021x.h"
diff --git a/libnm-core/nm-setting-adsl.c b/libnm-core/nm-setting-adsl.c
index 54ec5b6aa2..f26698b6da 100644
--- a/libnm-core/nm-setting-adsl.c
+++ b/libnm-core/nm-setting-adsl.c
@@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-adsl.h"
diff --git a/libnm-core/nm-setting-bluetooth.c b/libnm-core/nm-setting-bluetooth.c
index 643b386941..eb0e59300d 100644
--- a/libnm-core/nm-setting-bluetooth.c
+++ b/libnm-core/nm-setting-bluetooth.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-bluetooth.h"
diff --git a/libnm-core/nm-setting-bond.c b/libnm-core/nm-setting-bond.c
index a5ed07b312..2d64ef02b4 100644
--- a/libnm-core/nm-setting-bond.c
+++ b/libnm-core/nm-setting-bond.c
@@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-bond.h"
diff --git a/libnm-core/nm-setting-bridge-port.c b/libnm-core/nm-setting-bridge-port.c
index 7d565274f9..74c6384772 100644
--- a/libnm-core/nm-setting-bridge-port.c
+++ b/libnm-core/nm-setting-bridge-port.c
@@ -3,7 +3,7 @@
* Copyright (C) 2012 - 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-bridge-port.h"
diff --git a/libnm-core/nm-setting-bridge.c b/libnm-core/nm-setting-bridge.c
index 44e4b62724..15d663db40 100644
--- a/libnm-core/nm-setting-bridge.c
+++ b/libnm-core/nm-setting-bridge.c
@@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-bridge.h"
diff --git a/libnm-core/nm-setting-cdma.c b/libnm-core/nm-setting-cdma.c
index 2b6635a801..42e77c6169 100644
--- a/libnm-core/nm-setting-cdma.c
+++ b/libnm-core/nm-setting-cdma.c
@@ -3,7 +3,7 @@
* Copyright (C) 2007 - 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-cdma.h"
diff --git a/libnm-core/nm-setting-connection.c b/libnm-core/nm-setting-connection.c
index 16277ff18e..d6626a4d5a 100644
--- a/libnm-core/nm-setting-connection.c
+++ b/libnm-core/nm-setting-connection.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-connection.h"
diff --git a/libnm-core/nm-setting-dcb.c b/libnm-core/nm-setting-dcb.c
index 1d5a324e4b..839d914674 100644
--- a/libnm-core/nm-setting-dcb.c
+++ b/libnm-core/nm-setting-dcb.c
@@ -3,7 +3,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-dcb.h"
diff --git a/libnm-core/nm-setting-dummy.c b/libnm-core/nm-setting-dummy.c
index 0a5f57798f..9ba626dc82 100644
--- a/libnm-core/nm-setting-dummy.c
+++ b/libnm-core/nm-setting-dummy.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-dummy.h"
diff --git a/libnm-core/nm-setting-ethtool.c b/libnm-core/nm-setting-ethtool.c
index 7d3f4d96f9..f2c6d15e91 100644
--- a/libnm-core/nm-setting-ethtool.c
+++ b/libnm-core/nm-setting-ethtool.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ethtool.h"
diff --git a/libnm-core/nm-setting-generic.c b/libnm-core/nm-setting-generic.c
index 564b1e5014..07dbd9b8f7 100644
--- a/libnm-core/nm-setting-generic.c
+++ b/libnm-core/nm-setting-generic.c
@@ -3,7 +3,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-generic.h"
diff --git a/libnm-core/nm-setting-gsm.c b/libnm-core/nm-setting-gsm.c
index 143e6ddaaa..c4eda96918 100644
--- a/libnm-core/nm-setting-gsm.c
+++ b/libnm-core/nm-setting-gsm.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-gsm.h"
diff --git a/libnm-core/nm-setting-hostname.c b/libnm-core/nm-setting-hostname.c
index fa781b1fbb..2396b7bdd1 100644
--- a/libnm-core/nm-setting-hostname.c
+++ b/libnm-core/nm-setting-hostname.c
@@ -3,7 +3,7 @@
* Copyright (C) 2020 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-hostname.h"
diff --git a/libnm-core/nm-setting-infiniband.c b/libnm-core/nm-setting-infiniband.c
index 451e2fea2c..c315843c69 100644
--- a/libnm-core/nm-setting-infiniband.c
+++ b/libnm-core/nm-setting-infiniband.c
@@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2013 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-infiniband.h"
diff --git a/libnm-core/nm-setting-ip-config.c b/libnm-core/nm-setting-ip-config.c
index 5b7081961f..45ecbd8868 100644
--- a/libnm-core/nm-setting-ip-config.c
+++ b/libnm-core/nm-setting-ip-config.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ip-config.h"
diff --git a/libnm-core/nm-setting-ip-tunnel.c b/libnm-core/nm-setting-ip-tunnel.c
index efd7cf0989..998b816bd3 100644
--- a/libnm-core/nm-setting-ip-tunnel.c
+++ b/libnm-core/nm-setting-ip-tunnel.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ip-tunnel.h"
diff --git a/libnm-core/nm-setting-ip4-config.c b/libnm-core/nm-setting-ip4-config.c
index 8d9c12d8ce..20fbc017bc 100644
--- a/libnm-core/nm-setting-ip4-config.c
+++ b/libnm-core/nm-setting-ip4-config.c
@@ -3,7 +3,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ip4-config.h"
diff --git a/libnm-core/nm-setting-ip6-config.c b/libnm-core/nm-setting-ip6-config.c
index 2b55b0a53e..06463f82f7 100644
--- a/libnm-core/nm-setting-ip6-config.c
+++ b/libnm-core/nm-setting-ip6-config.c
@@ -3,7 +3,7 @@
* Copyright (C) 2007 - 2014 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ip6-config.h"
diff --git a/libnm-core/nm-setting-macsec.c b/libnm-core/nm-setting-macsec.c
index 2e9aad1f06..d70696d95d 100644
--- a/libnm-core/nm-setting-macsec.c
+++ b/libnm-core/nm-setting-macsec.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-macsec.h"
diff --git a/libnm-core/nm-setting-macvlan.c b/libnm-core/nm-setting-macvlan.c
index e183ca6bc1..8c8c6279be 100644
--- a/libnm-core/nm-setting-macvlan.c
+++ b/libnm-core/nm-setting-macvlan.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-macvlan.h"
diff --git a/libnm-core/nm-setting-match.c b/libnm-core/nm-setting-match.c
index 1a6f86e8d3..108aba95f2 100644
--- a/libnm-core/nm-setting-match.c
+++ b/libnm-core/nm-setting-match.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-match.h"
diff --git a/libnm-core/nm-setting-olpc-mesh.c b/libnm-core/nm-setting-olpc-mesh.c
index 6397759def..ef0b5d603d 100644
--- a/libnm-core/nm-setting-olpc-mesh.c
+++ b/libnm-core/nm-setting-olpc-mesh.c
@@ -5,7 +5,7 @@
* Copyright (C) 2009 One Laptop per Child
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-olpc-mesh.h"
diff --git a/libnm-core/nm-setting-ovs-bridge.c b/libnm-core/nm-setting-ovs-bridge.c
index 1a7c7b7f13..07d24d7bf0 100644
--- a/libnm-core/nm-setting-ovs-bridge.c
+++ b/libnm-core/nm-setting-ovs-bridge.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-bridge.h"
diff --git a/libnm-core/nm-setting-ovs-dpdk.c b/libnm-core/nm-setting-ovs-dpdk.c
index 97d507fe5b..6d27d78c4d 100644
--- a/libnm-core/nm-setting-ovs-dpdk.c
+++ b/libnm-core/nm-setting-ovs-dpdk.c
@@ -3,7 +3,7 @@
* Copyright (C) 2019 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-dpdk.h"
diff --git a/libnm-core/nm-setting-ovs-external-ids.c b/libnm-core/nm-setting-ovs-external-ids.c
index a0b1e6001b..16becb7272 100644
--- a/libnm-core/nm-setting-ovs-external-ids.c
+++ b/libnm-core/nm-setting-ovs-external-ids.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 - 2020 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-external-ids.h"
diff --git a/libnm-core/nm-setting-ovs-interface.c b/libnm-core/nm-setting-ovs-interface.c
index 8bdd174721..0c04a66cbb 100644
--- a/libnm-core/nm-setting-ovs-interface.c
+++ b/libnm-core/nm-setting-ovs-interface.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-interface.h"
diff --git a/libnm-core/nm-setting-ovs-patch.c b/libnm-core/nm-setting-ovs-patch.c
index 0479f395f8..18a62d2eb4 100644
--- a/libnm-core/nm-setting-ovs-patch.c
+++ b/libnm-core/nm-setting-ovs-patch.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-patch.h"
diff --git a/libnm-core/nm-setting-ovs-port.c b/libnm-core/nm-setting-ovs-port.c
index dfe13c4bc5..63da66fca1 100644
--- a/libnm-core/nm-setting-ovs-port.c
+++ b/libnm-core/nm-setting-ovs-port.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ovs-port.h"
diff --git a/libnm-core/nm-setting-ppp.c b/libnm-core/nm-setting-ppp.c
index de0b005c27..36fe84c34b 100644
--- a/libnm-core/nm-setting-ppp.c
+++ b/libnm-core/nm-setting-ppp.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-ppp.h"
diff --git a/libnm-core/nm-setting-pppoe.c b/libnm-core/nm-setting-pppoe.c
index 6e48cde2a5..ef1d9ba1a9 100644
--- a/libnm-core/nm-setting-pppoe.c
+++ b/libnm-core/nm-setting-pppoe.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-pppoe.h"
diff --git a/libnm-core/nm-setting-proxy.c b/libnm-core/nm-setting-proxy.c
index 07eefad81f..10cebc7370 100644
--- a/libnm-core/nm-setting-proxy.c
+++ b/libnm-core/nm-setting-proxy.c
@@ -3,7 +3,7 @@
* Copyright (C) 2016 Atul Anand <atulhjp@gmail.com>.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-proxy.h"
diff --git a/libnm-core/nm-setting-serial.c b/libnm-core/nm-setting-serial.c
index 1758e2aff7..1e5418a149 100644
--- a/libnm-core/nm-setting-serial.c
+++ b/libnm-core/nm-setting-serial.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-serial.h"
diff --git a/libnm-core/nm-setting-sriov.c b/libnm-core/nm-setting-sriov.c
index f2a469754a..47625a4109 100644
--- a/libnm-core/nm-setting-sriov.c
+++ b/libnm-core/nm-setting-sriov.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-sriov.h"
diff --git a/libnm-core/nm-setting-tc-config.c b/libnm-core/nm-setting-tc-config.c
index d85fb264eb..33df6d34e5 100644
--- a/libnm-core/nm-setting-tc-config.c
+++ b/libnm-core/nm-setting-tc-config.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-tc-config.h"
diff --git a/libnm-core/nm-setting-team-port.c b/libnm-core/nm-setting-team-port.c
index 0912d3711d..ea8115a74a 100644
--- a/libnm-core/nm-setting-team-port.c
+++ b/libnm-core/nm-setting-team-port.c
@@ -4,7 +4,7 @@
* Copyright (C) 2013 Jiri Pirko <jiri@resnulli.us>
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-team-port.h"
diff --git a/libnm-core/nm-setting-team.c b/libnm-core/nm-setting-team.c
index 14a116e816..f89a3031f3 100644
--- a/libnm-core/nm-setting-team.c
+++ b/libnm-core/nm-setting-team.c
@@ -4,7 +4,7 @@
* Copyright (C) 2013 Jiri Pirko <jiri@resnulli.us>
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-team.h"
diff --git a/libnm-core/nm-setting-tun.c b/libnm-core/nm-setting-tun.c
index 767a5dfde2..1208a62bad 100644
--- a/libnm-core/nm-setting-tun.c
+++ b/libnm-core/nm-setting-tun.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-tun.h"
diff --git a/libnm-core/nm-setting-user.c b/libnm-core/nm-setting-user.c
index 3164cf47a0..f62b8babbc 100644
--- a/libnm-core/nm-setting-user.c
+++ b/libnm-core/nm-setting-user.c
@@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-user.h"
diff --git a/libnm-core/nm-setting-veth.c b/libnm-core/nm-setting-veth.c
index 7c2e54161e..6270afb38d 100644
--- a/libnm-core/nm-setting-veth.c
+++ b/libnm-core/nm-setting-veth.c
@@ -3,7 +3,7 @@
* Copyright (C) 2020 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-veth.h"
diff --git a/libnm-core/nm-setting-vlan.c b/libnm-core/nm-setting-vlan.c
index 5543485fa2..123c11919c 100644
--- a/libnm-core/nm-setting-vlan.c
+++ b/libnm-core/nm-setting-vlan.c
@@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2014 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-vlan.h"
diff --git a/libnm-core/nm-setting-vpn.c b/libnm-core/nm-setting-vpn.c
index 6cd5203c91..8ee5c2b972 100644
--- a/libnm-core/nm-setting-vpn.c
+++ b/libnm-core/nm-setting-vpn.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-vpn.h"
diff --git a/libnm-core/nm-setting-vrf.c b/libnm-core/nm-setting-vrf.c
index a3ed8db71b..d4198a7b78 100644
--- a/libnm-core/nm-setting-vrf.c
+++ b/libnm-core/nm-setting-vrf.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-vrf.h"
diff --git a/libnm-core/nm-setting-vxlan.c b/libnm-core/nm-setting-vxlan.c
index d6b22b0f2b..ea8d454681 100644
--- a/libnm-core/nm-setting-vxlan.c
+++ b/libnm-core/nm-setting-vxlan.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-vxlan.h"
diff --git a/libnm-core/nm-setting-wifi-p2p.c b/libnm-core/nm-setting-wifi-p2p.c
index 98fadb59b2..e026cb8fbb 100644
--- a/libnm-core/nm-setting-wifi-p2p.c
+++ b/libnm-core/nm-setting-wifi-p2p.c
@@ -3,7 +3,7 @@
* Copyright (C) 2019 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wifi-p2p.h"
diff --git a/libnm-core/nm-setting-wimax.c b/libnm-core/nm-setting-wimax.c
index 04ea4ddd9a..dcb59412f4 100644
--- a/libnm-core/nm-setting-wimax.c
+++ b/libnm-core/nm-setting-wimax.c
@@ -4,7 +4,7 @@
* Copyright (C) 2009 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wimax.h"
diff --git a/libnm-core/nm-setting-wired.c b/libnm-core/nm-setting-wired.c
index 748fd75ca3..857f11b1f9 100644
--- a/libnm-core/nm-setting-wired.c
+++ b/libnm-core/nm-setting-wired.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wired.h"
diff --git a/libnm-core/nm-setting-wireguard.c b/libnm-core/nm-setting-wireguard.c
index 37d3fa1dd6..3a36dabafb 100644
--- a/libnm-core/nm-setting-wireguard.c
+++ b/libnm-core/nm-setting-wireguard.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 - 2019 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wireguard.h"
diff --git a/libnm-core/nm-setting-wireless-security.c b/libnm-core/nm-setting-wireless-security.c
index a966718c48..162f92202c 100644
--- a/libnm-core/nm-setting-wireless-security.c
+++ b/libnm-core/nm-setting-wireless-security.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wireless-security.h"
diff --git a/libnm-core/nm-setting-wireless.c b/libnm-core/nm-setting-wireless.c
index 20e69d66bb..232bc7a05d 100644
--- a/libnm-core/nm-setting-wireless.c
+++ b/libnm-core/nm-setting-wireless.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wireless.h"
diff --git a/libnm-core/nm-setting-wpan.c b/libnm-core/nm-setting-wpan.c
index 29dbdc26dc..13bd368469 100644
--- a/libnm-core/nm-setting-wpan.c
+++ b/libnm-core/nm-setting-wpan.c
@@ -3,7 +3,7 @@
* Copyright (C) 2018 Lubomir Rintel <lkundrak@v3.sk>
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-wpan.h"
diff --git a/libnm-core/nm-setting.c b/libnm-core/nm-setting.c
index 13aa4b1787..45644ac341 100644
--- a/libnm-core/nm-setting.c
+++ b/libnm-core/nm-setting.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting.h"
diff --git a/libnm-core/nm-simple-connection.c b/libnm-core/nm-simple-connection.c
index b4c0b65c2b..6f1e3a9b3f 100644
--- a/libnm-core/nm-simple-connection.c
+++ b/libnm-core/nm-simple-connection.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2014 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-simple-connection.h"
diff --git a/libnm-core/nm-team-utils.c b/libnm-core/nm-team-utils.c
index 8981e86ae2..b7da35aae2 100644
--- a/libnm-core/nm-team-utils.c
+++ b/libnm-core/nm-team-utils.c
@@ -5,7 +5,7 @@
#define NM_VALUE_TYPE_DEFINE_FUNCTIONS
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-team-utils.h"
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index ab5de92a46..e19d5ed5fc 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -3,7 +3,7 @@
* Copyright (C) 2005 - 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-utils.h"
diff --git a/libnm-core/nm-vpn-editor-plugin.c b/libnm-core/nm-vpn-editor-plugin.c
index b5407a7551..e68bdc24ee 100644
--- a/libnm-core/nm-vpn-editor-plugin.c
+++ b/libnm-core/nm-vpn-editor-plugin.c
@@ -5,7 +5,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-vpn-editor-plugin.h"
diff --git a/libnm-core/nm-vpn-plugin-info.c b/libnm-core/nm-vpn-plugin-info.c
index fd48deef69..cb739510f1 100644
--- a/libnm-core/nm-vpn-plugin-info.c
+++ b/libnm-core/nm-vpn-plugin-info.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-vpn-plugin-info.h"
diff --git a/libnm-core/tests/meson.build b/libnm-core/tests/meson.build
index 83ba89c476..1e7a54bb4a 100644
--- a/libnm-core/tests/meson.build
+++ b/libnm-core/tests/meson.build
@@ -4,7 +4,7 @@ enum_sources = gnome.mkenums_simple(
'nm-core-tests-enum-types',
sources: 'test-general-enums.h',
identifier_prefix: nm_id_prefix,
- body_prefix: '#include "nm-default.h"',
+ body_prefix: '#include "libnm-core/nm-default-libnm-core.h"',
)
test_units = [
@@ -28,8 +28,7 @@ foreach test_unit: test_units
libnm_base_dep,
],
c_args: [
- '-DNETWORKMANAGER_COMPILATION_TEST',
- '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE',
+ '-DG_LOG_DOMAIN="test"',
],
link_with: libnm_systemd_logging_stub,
)
diff --git a/libnm-core/tests/test-compare.c b/libnm-core/tests/test-compare.c
index 73cf4a7a7f..27049e875a 100644
--- a/libnm-core/tests/test-compare.c
+++ b/libnm-core/tests/test-compare.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/libnm-core/tests/test-crypto.c b/libnm-core/tests/test-crypto.c
index d62cde0a0c..4e288b7b65 100644
--- a/libnm-core/tests/test-crypto.c
+++ b/libnm-core/tests/test-crypto.c
@@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2011 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c
index abe0218140..69efc3591d 100644
--- a/libnm-core/tests/test-general.c
+++ b/libnm-core/tests/test-general.c
@@ -5,7 +5,7 @@
#define NM_GLIB_COMPAT_H_TEST
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/libnm-core/tests/test-keyfile.c b/libnm-core/tests/test-keyfile.c
index eb41a7959b..04eba05900 100644
--- a/libnm-core/tests/test-keyfile.c
+++ b/libnm-core/tests/test-keyfile.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-glib-aux/nm-json-aux.h"
#include "nm-keyfile/nm-keyfile-utils.h"
diff --git a/libnm-core/tests/test-secrets.c b/libnm-core/tests/test-secrets.c
index 901d2da67e..42f1fd0a32 100644
--- a/libnm-core/tests/test-secrets.c
+++ b/libnm-core/tests/test-secrets.c
@@ -3,7 +3,7 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-setting-8021x.h"
#include "nm-setting-cdma.h"
diff --git a/libnm-core/tests/test-setting.c b/libnm-core/tests/test-setting.c
index b17ba15d51..58fd662238 100644
--- a/libnm-core/tests/test-setting.c
+++ b/libnm-core/tests/test-setting.c
@@ -3,7 +3,7 @@
* Copyright (C) 2008 - 2017 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include <linux/pkt_sched.h>
#include <net/if.h>
diff --git a/libnm-core/tests/test-settings-defaults.c b/libnm-core/tests/test-settings-defaults.c
index d0ec11f4a7..1e6acd3c5f 100644
--- a/libnm-core/tests/test-settings-defaults.c
+++ b/libnm-core/tests/test-settings-defaults.c
@@ -3,7 +3,7 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
#include "nm-utils.h"
#include "nm-setting-8021x.h"
diff --git a/shared/nm-default.h b/shared/nm-default.h
index 269472d9e1..38ce56a1b3 100644
--- a/shared/nm-default.h
+++ b/shared/nm-default.h
@@ -22,7 +22,7 @@
#error Define NETWORKMANAGER_COMPILATION accordingly
#endif
-#if NETWORKMANAGER_COMPILATION < NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE
+#if NETWORKMANAGER_COMPILATION < NM_NETWORKMANAGER_COMPILATION_DAEMON
#error Dont include this header with such NETWORKMANAGER_COMPILATION
#endif
diff --git a/shared/nm-meta-setting.c b/shared/nm-meta-setting.c
index 2f5844ead7..22f577baa1 100644
--- a/shared/nm-meta-setting.c
+++ b/shared/nm-meta-setting.c
@@ -3,10 +3,6 @@
* Copyright (C) 2017 - 2018 Red Hat, Inc.
*/
-#ifdef NETWORKMANAGER_COMPILATION
- #undef NETWORKMANAGER_COMPILATION
-#endif
-
#include "nm-glib-aux/nm-default-glib-i18n-lib.h"
#include "nm-meta-setting.h"