all: add "libnm/nm-default-libnm.h" as replacement for "nm-default.h"

This commit is contained in:
Thomas Haller 2021-02-04 16:04:15 +01:00
parent 606612ea59
commit a38afcb1d9
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
65 changed files with 96 additions and 71 deletions

View file

@ -1507,6 +1507,7 @@ libnm_lib_h_pub_mkenums = \
libnm_lib_h_priv = \
libnm/nm-dbus-helpers.h \
libnm/nm-default-client.h \
libnm/nm-default-libnm.h \
libnm/nm-device-private.h \
libnm/nm-dhcp4-config.h \
libnm/nm-dhcp6-config.h \
@ -1580,7 +1581,6 @@ libnm_lib_cppflags = \
-I$(builddir)/libnm \
$(dflt_cppflags_libnm_core) \
-DG_LOG_DOMAIN=\""libnm"\" \
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM \
$(NULL)
libnminclude_HEADERS += \
@ -1641,7 +1641,7 @@ nm_enum_types_sources = \
$(libnm_lib_h_pub_mkenums) \
$(libnm_lib_h_pub_real)
nm_enum_types_MKENUMS_H_FLAGS = --identifier-prefix NM --fhead '\#include "nm-core-enum-types.h"\n'
nm_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "nm-default.h"\n'
nm_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "libnm/nm-default-libnm.h"\n'
$(dispatcher_nm_dispatcher_OBJECTS): $(libnm_lib_h_pub_mkenums)
$(dispatcher_libnm_dispatcher_core_la_OBJECTS): $(libnm_lib_h_pub_mkenums)
@ -1695,7 +1695,10 @@ libnm/NM-1.0.gir: libnm/libnm.la
libnm_NM_1_0_gir_INCLUDES = Gio-2.0
libnm_NM_1_0_gir_PACKAGES = gio-2.0
libnm_NM_1_0_gir_EXPORT_PACKAGES = libnm
libnm_NM_1_0_gir_CFLAGS = $(libnm_libnm_la_CPPFLAGS)
libnm_NM_1_0_gir_CFLAGS = \
$(libnm_libnm_la_CPPFLAGS) \
-DNETWORKMANAGER_COMPILATION \
$(NULL)
libnm_NM_1_0_gir_LIBS = libnm/libnm.la
libnm_NM_1_0_gir_FILES = \
$(libnm_core_lib_h_pub_mkenums) \
@ -1794,8 +1797,7 @@ libnm_tests_cppflags = \
-I$(srcdir)/libnm \
-I$(builddir)/libnm \
$(dflt_cppflags_libnm_core) \
-DNETWORKMANAGER_COMPILATION_TEST \
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM \
-DG_LOG_DOMAIN=\""test"\" \
$(SANITIZER_EXEC_CFLAGS) \
$(NULL)

View file

@ -142,8 +142,7 @@ libnm_static = static_library(
libudev_dep,
],
c_args: [
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
'-DG_LOG_DOMAIN="libnm"',
],
link_with: libnm_systemd_logging_stub,
)
@ -206,8 +205,8 @@ if enable_introspection
header: 'NetworkManager.h',
export_packages: libnm_name,
extra_args: [
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
'-DG_LOG_DOMAIN="libnm"',
'-DNETWORKMANAGER_COMPILATION',
],
install: true,
)

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-access-point.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2008 Novell, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-active-connection.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-checkpoint.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-client.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-dbus-helpers.h"

23
libnm/nm-default-libnm.h Normal file
View file

@ -0,0 +1,23 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2015 Red Hat, Inc.
*/
#ifndef __NM_DEFAULT_LIBNM_H__
#define __NM_DEFAULT_LIBNM_H__
/*****************************************************************************/
#include "nm-glib-aux/nm-default-glib-i18n-lib.h"
#undef NETWORKMANAGER_COMPILATION
#define NETWORKMANAGER_COMPILATION NM_NETWORKMANAGER_COMPILATION_LIBNM
/*****************************************************************************/
#include "nm-version.h"
#include "nm-libnm-utils.h"
/*****************************************************************************/
#endif /* __NM_DEFAULT_LIBNM_H__ */

View file

@ -3,7 +3,7 @@
* Copyright (C) 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-6lowpan.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2009 - 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-adsl.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-setting-bond.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-setting-bridge.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-bt.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-dummy.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ethernet.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-generic.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2011 - 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-infiniband.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ip-tunnel.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-macsec.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-setting-macvlan.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2008 Novell, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-modem.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-olpc-mesh.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017, 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ovs-bridge.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ovs-interface.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017, 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ovs-port.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-ppp.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-team.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-tun.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2020 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-veth.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-vlan.h"

View file

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-vrf.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-vxlan.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2018 - 2019 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-wifi-p2p.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-wifi.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2009 Novell, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-wimax.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2018 Javier Arteaga <jarteaga@jbeta.is>
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-wireguard.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2018 Lubomir Rintel <lkundrak@v3.sk>
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device-wpan.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-device.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2008 Novell, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-dhcp-config.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-dhcp4-config.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-dhcp6-config.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2016 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-dns-manager.h"

View file

@ -2,7 +2,8 @@
#include "config.h"
#include "nm-enum-types.h"
#include "nm-default.h"
#
#include "libnm/nm-default-libnm.h"
#include "nm-version-macros.h"
#include "NetworkManager.h"

View file

@ -3,6 +3,7 @@
#define __NM_ENUM_TYPES_H__
#include "nm-core-enum-types.h"
#
#include <glib-object.h>
G_BEGIN_DECLS

View file

@ -4,7 +4,7 @@
* Copyright (C) 2008 - 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-ip-config.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-ip4-config.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-ip6-config.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2018 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-libnm-utils.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-object.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-remote-connection.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2010 - 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-secret-agent-old.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2012 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-vpn-connection.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2008 Novell, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-vpn-editor.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2008 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-vpn-plugin-old.h"

View file

@ -4,7 +4,7 @@
* Copyright (C) 2007 - 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-vpn-service-plugin.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2018 - 2019 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-wifi-p2p-peer.h"

View file

@ -3,7 +3,7 @@
* Copyright (C) 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-wimax-nsp.h"

View file

@ -20,8 +20,7 @@ foreach test_unit: test_units
libnm_nm_default_dep,
],
c_args: [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
'-DG_LOG_DOMAIN="test"',
],
link_with: libnm_static,
)

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#if defined(HAVE_DECL_MEMFD_CREATE) && HAVE_DECL_MEMFD_CREATE
#include <linux/memfd.h>

View file

@ -3,7 +3,7 @@
* Copyright (C) 2010 - 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include <sys/types.h>
#include <signal.h>

View file

@ -3,7 +3,7 @@
* Copyright (C) 2010 - 2011 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include <sys/types.h>
#include <signal.h>

View file

@ -3,7 +3,7 @@
* Copyright (C) 2010 - 2014 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include <sys/types.h>
#include <signal.h>

View file

@ -22,7 +22,7 @@
#error Define NETWORKMANAGER_COMPILATION accordingly
#endif
#if NETWORKMANAGER_COMPILATION < NM_NETWORKMANAGER_COMPILATION_LIBNM
#if NETWORKMANAGER_COMPILATION < NM_NETWORKMANAGER_COMPILATION_LIBNM_CORE
#error Dont include this header with such NETWORKMANAGER_COMPILATION
#endif

View file

@ -3,7 +3,7 @@
* Copyright (C) 2010 - 2015 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include <sys/wait.h>

View file

@ -3,7 +3,7 @@
* Copyright (C) 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "libnm/nm-default-libnm.h"
#include "nm-compat.h"