summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-07-17 14:38:54 +0200
committerThomas Haller <thaller@redhat.com>2015-08-05 15:32:40 +0200
commit19c3ea948a7c74774621baf62d68cb4826e1b97c (patch)
treebb6300533ff66d0864b3e91935e3320786d2850e
parent9ac57182ca2a551f2c7dafa331b8daf74dc78e1c (diff)
downloadNetworkManager-19c3ea948a7c74774621baf62d68cb4826e1b97c.tar.gz
all: make use of new header file "nm-default.h"
-rw-r--r--callouts/nm-dispatcher-utils.c2
-rw-r--r--callouts/nm-dispatcher-utils.h2
-rw-r--r--callouts/nm-dispatcher.c2
-rw-r--r--callouts/tests/test-dispatcher-envp.c2
-rw-r--r--clients/cli/agent.c2
-rw-r--r--clients/cli/common.c2
-rw-r--r--clients/cli/connections.c3
-rw-r--r--clients/cli/devices.c2
-rw-r--r--clients/cli/general.c2
-rw-r--r--clients/cli/nmcli.c2
-rw-r--r--clients/cli/polkit-agent.c4
-rw-r--r--clients/cli/settings.c2
-rw-r--r--clients/cli/utils.c2
-rw-r--r--clients/common/nm-polkit-listener.c2
-rw-r--r--clients/common/nm-polkit-listener.h2
-rw-r--r--clients/common/nm-secret-agent-simple.c1
-rw-r--r--clients/nm-online.c2
-rw-r--r--clients/tui/newt/Makefile.am1
-rw-r--r--clients/tui/newt/nmt-newt-types.h2
-rw-r--r--clients/tui/newt/nmt-newt-utils.c2
-rw-r--r--clients/tui/newt/nmt-newt-utils.h2
-rw-r--r--clients/tui/nm-editor-utils.c1
-rw-r--r--clients/tui/nmt-editor.c2
-rw-r--r--clients/tui/nmt-mac-entry.h2
-rw-r--r--clients/tui/nmt-page-bond.c2
-rw-r--r--clients/tui/nmt-page-bridge-port.c2
-rw-r--r--clients/tui/nmt-page-bridge.c2
-rw-r--r--clients/tui/nmt-page-dsl.c2
-rw-r--r--clients/tui/nmt-page-dsl.h2
-rw-r--r--clients/tui/nmt-page-ethernet.c2
-rw-r--r--clients/tui/nmt-page-infiniband.c2
-rw-r--r--clients/tui/nmt-page-ip4.c2
-rw-r--r--clients/tui/nmt-page-ip6.c2
-rw-r--r--clients/tui/nmt-page-ppp.c2
-rw-r--r--clients/tui/nmt-page-team-port.c2
-rw-r--r--clients/tui/nmt-page-team.c2
-rw-r--r--clients/tui/nmt-page-team.h2
-rw-r--r--clients/tui/nmt-page-vlan.c2
-rw-r--r--clients/tui/nmt-page-wifi.c2
-rw-r--r--clients/tui/nmt-route-editor.c2
-rw-r--r--clients/tui/nmt-utils.h2
-rw-r--r--clients/tui/nmtui.c2
-rw-r--r--clients/tui/vpn-helpers.c2
-rw-r--r--clients/tui/vpn-helpers.h2
-rw-r--r--include/nm-macros-internal.h2
-rw-r--r--include/nm-test-utils.h3
-rw-r--r--libnm-core/crypto.c2
-rw-r--r--libnm-core/crypto.h2
-rw-r--r--libnm-core/crypto_gnutls.c2
-rw-r--r--libnm-core/crypto_nss.c2
-rw-r--r--libnm-core/nm-connection.c3
-rw-r--r--libnm-core/nm-core-internal.h3
-rw-r--r--libnm-core/nm-dbus-utils.c2
-rw-r--r--libnm-core/nm-errors.c2
-rw-r--r--libnm-core/nm-keyfile-internal.h2
-rw-r--r--libnm-core/nm-keyfile-reader.c3
-rw-r--r--libnm-core/nm-keyfile-utils.c3
-rw-r--r--libnm-core/nm-keyfile-writer.c3
-rw-r--r--libnm-core/nm-property-compare.c2
-rw-r--r--libnm-core/nm-property-compare.h2
-rw-r--r--libnm-core/nm-setting-8021x.c2
-rw-r--r--libnm-core/nm-setting-ip-config.c2
-rw-r--r--libnm-core/nm-setting-private.h2
-rw-r--r--libnm-core/nm-setting-serial.c2
-rw-r--r--libnm-core/nm-setting.c2
-rw-r--r--libnm-core/nm-utils.c3
-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.c3
-rw-r--r--libnm-core/tests/test-secrets.c2
-rw-r--r--libnm-core/tests/test-setting-8021x.c2
-rw-r--r--libnm-core/tests/test-setting-dcb.c2
-rw-r--r--libnm-core/tests/test-settings-defaults.c2
-rw-r--r--libnm-glib/libnm-glib-test.c2
-rw-r--r--libnm-glib/libnm_glib.c2
-rw-r--r--libnm-glib/nm-access-point.c2
-rw-r--r--libnm-glib/nm-active-connection.c2
-rw-r--r--libnm-glib/nm-client.c2
-rw-r--r--libnm-glib/nm-dbus-helpers-private.h2
-rw-r--r--libnm-glib/nm-dbus-helpers.c2
-rw-r--r--libnm-glib/nm-device-bond.c2
-rw-r--r--libnm-glib/nm-device-bridge.c2
-rw-r--r--libnm-glib/nm-device-bt.c2
-rw-r--r--libnm-glib/nm-device-ethernet.c2
-rw-r--r--libnm-glib/nm-device-infiniband.c2
-rw-r--r--libnm-glib/nm-device-modem.c2
-rw-r--r--libnm-glib/nm-device-olpc-mesh.c2
-rw-r--r--libnm-glib/nm-device-team.c2
-rw-r--r--libnm-glib/nm-device-vlan.c2
-rw-r--r--libnm-glib/nm-device-wifi.c2
-rw-r--r--libnm-glib/nm-device-wimax.c2
-rw-r--r--libnm-glib/nm-device.c2
-rw-r--r--libnm-glib/nm-object-cache.c2
-rw-r--r--libnm-glib/nm-object-cache.h2
-rw-r--r--libnm-glib/nm-object-private.h2
-rw-r--r--libnm-glib/nm-object.c2
-rw-r--r--libnm-glib/nm-remote-connection.c2
-rw-r--r--libnm-glib/nm-remote-settings.c2
-rw-r--r--libnm-glib/nm-secret-agent.c2
-rw-r--r--libnm-glib/nm-types.c2
-rw-r--r--libnm-glib/nm-vpn-plugin.c2
-rw-r--r--libnm-glib/nm-wimax-nsp.c2
-rw-r--r--libnm-glib/tests/common.c2
-rw-r--r--libnm-glib/tests/common.h2
-rw-r--r--libnm-glib/tests/test-nm-client.c2
-rw-r--r--libnm-glib/tests/test-remote-settings-client.c2
-rw-r--r--libnm-util/crypto.c2
-rw-r--r--libnm-util/crypto.h2
-rw-r--r--libnm-util/crypto_gnutls.c2
-rw-r--r--libnm-util/crypto_nss.c2
-rw-r--r--libnm-util/nm-connection.c2
-rw-r--r--libnm-util/nm-param-spec-specialized.c2
-rw-r--r--libnm-util/nm-param-spec-specialized.h2
-rw-r--r--libnm-util/nm-setting-ip4-config.c2
-rw-r--r--libnm-util/nm-setting-ip6-config.c2
-rw-r--r--libnm-util/nm-setting-private.h2
-rw-r--r--libnm-util/nm-setting-serial.c2
-rw-r--r--libnm-util/nm-utils.c2
-rw-r--r--libnm-util/nm-value-transforms.c2
-rw-r--r--libnm-util/tests/test-crypto.c2
-rw-r--r--libnm-util/tests/test-general.c3
-rw-r--r--libnm-util/tests/test-libnm-linking.c2
-rw-r--r--libnm-util/tests/test-secrets.c2
-rw-r--r--libnm-util/tests/test-setting-8021x.c2
-rw-r--r--libnm-util/tests/test-setting-dcb.c3
-rw-r--r--libnm-util/tests/test-settings-defaults.c2
-rw-r--r--libnm/nm-access-point.c2
-rw-r--r--libnm/nm-active-connection.c2
-rw-r--r--libnm/nm-client.c2
-rw-r--r--libnm/nm-dbus-helpers.c2
-rw-r--r--libnm/nm-dbus-helpers.h2
-rw-r--r--libnm/nm-device-bond.c2
-rw-r--r--libnm/nm-device-bridge.c2
-rw-r--r--libnm/nm-device-bt.c2
-rw-r--r--libnm/nm-device-ethernet.c2
-rw-r--r--libnm/nm-device-infiniband.c2
-rw-r--r--libnm/nm-device-modem.c2
-rw-r--r--libnm/nm-device-olpc-mesh.c2
-rw-r--r--libnm/nm-device-team.c2
-rw-r--r--libnm/nm-device-vlan.c2
-rw-r--r--libnm/nm-device-wifi.c2
-rw-r--r--libnm/nm-device-wimax.c2
-rw-r--r--libnm/nm-device.c2
-rw-r--r--libnm/nm-manager.c2
-rw-r--r--libnm/nm-object-cache.c2
-rw-r--r--libnm/nm-object-cache.h2
-rw-r--r--libnm/nm-object-private.h2
-rw-r--r--libnm/nm-object.c2
-rw-r--r--libnm/nm-remote-connection.c2
-rw-r--r--libnm/nm-remote-settings.c2
-rw-r--r--libnm/nm-secret-agent-old.c2
-rw-r--r--libnm/nm-vpn-plugin-old.c2
-rw-r--r--libnm/nm-wimax-nsp.c2
-rw-r--r--libnm/tests/common.c2
-rw-r--r--libnm/tests/common.h2
-rw-r--r--libnm/tests/test-nm-client.c2
-rw-r--r--libnm/tests/test-remote-settings-client.c2
-rw-r--r--libnm/tests/test-secret-agent.c2
-rw-r--r--src/Makefile.am4
-rw-r--r--src/NetworkManagerUtils.c4
-rw-r--r--src/NetworkManagerUtils.h3
-rw-r--r--src/devices/adsl/nm-atm-manager.c3
-rw-r--r--src/devices/adsl/nm-atm-manager.h2
-rw-r--r--src/devices/adsl/nm-device-adsl.c3
-rw-r--r--src/devices/adsl/nm-device-adsl.h2
-rw-r--r--src/devices/bluetooth/nm-bluez-device.c3
-rw-r--r--src/devices/bluetooth/nm-bluez-device.h2
-rw-r--r--src/devices/bluetooth/nm-bluez-manager.c3
-rw-r--r--src/devices/bluetooth/nm-bluez-manager.h2
-rw-r--r--src/devices/bluetooth/nm-bluez4-adapter.c3
-rw-r--r--src/devices/bluetooth/nm-bluez4-adapter.h2
-rw-r--r--src/devices/bluetooth/nm-bluez4-manager.c2
-rw-r--r--src/devices/bluetooth/nm-bluez4-manager.h2
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.c2
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.h2
-rw-r--r--src/devices/bluetooth/nm-bluez5-manager.c3
-rw-r--r--src/devices/bluetooth/nm-bluez5-manager.h2
-rw-r--r--src/devices/bluetooth/nm-bt-error.c2
-rw-r--r--src/devices/bluetooth/nm-device-bt.c3
-rw-r--r--src/devices/nm-device-bond.c4
-rw-r--r--src/devices/nm-device-bridge.c4
-rw-r--r--src/devices/nm-device-bridge.h2
-rw-r--r--src/devices/nm-device-ethernet-utils.c2
-rw-r--r--src/devices/nm-device-ethernet-utils.h2
-rw-r--r--src/devices/nm-device-ethernet.c4
-rw-r--r--src/devices/nm-device-factory.c2
-rw-r--r--src/devices/nm-device-gre.c2
-rw-r--r--src/devices/nm-device-infiniband.c3
-rw-r--r--src/devices/nm-device-logging.h2
-rw-r--r--src/devices/nm-device-macvlan.c2
-rw-r--r--src/devices/nm-device-private.h2
-rw-r--r--src/devices/nm-device-tun.c2
-rw-r--r--src/devices/nm-device-veth.c2
-rw-r--r--src/devices/nm-device-vlan.c4
-rw-r--r--src/devices/nm-device-vxlan.c2
-rw-r--r--src/devices/nm-device.c4
-rw-r--r--src/devices/nm-device.h2
-rw-r--r--src/devices/team/nm-device-team.c4
-rw-r--r--src/devices/team/nm-team-factory.c2
-rw-r--r--src/devices/team/nm-team-factory.h2
-rw-r--r--src/devices/wifi/nm-device-olpc-mesh.c3
-rw-r--r--src/devices/wifi/nm-device-wifi.c4
-rw-r--r--src/devices/wifi/nm-wifi-ap-utils.c1
-rw-r--r--src/devices/wifi/nm-wifi-ap.c4
-rw-r--r--src/devices/wifi/tests/test-wifi-ap-utils.c3
-rw-r--r--src/devices/wwan/nm-device-modem.c3
-rw-r--r--src/devices/wwan/nm-modem-broadband.c2
-rw-r--r--src/devices/wwan/nm-modem-manager.c2
-rw-r--r--src/devices/wwan/nm-modem.c2
-rw-r--r--src/devices/wwan/nm-modem.h2
-rw-r--r--src/devices/wwan/nm-wwan-factory.c2
-rw-r--r--src/devices/wwan/nm-wwan-factory.h2
-rw-r--r--src/dhcp-manager/Makefile.am1
-rw-r--r--src/dhcp-manager/nm-dhcp-client.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-client.h2
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient-utils.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient-utils.h2
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient.c4
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient.h2
-rw-r--r--src/dhcp-manager/nm-dhcp-dhcpcd.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-helper.c2
-rw-r--r--src/dhcp-manager/nm-dhcp-listener.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-listener.h2
-rw-r--r--src/dhcp-manager/nm-dhcp-manager.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-manager.h2
-rw-r--r--src/dhcp-manager/nm-dhcp-systemd.c4
-rw-r--r--src/dhcp-manager/nm-dhcp-utils.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-utils.h2
-rw-r--r--src/dhcp-manager/tests/test-dhcp-dhclient.c4
-rw-r--r--src/dhcp-manager/tests/test-dhcp-utils.c3
-rw-r--r--src/dns-manager/nm-dns-dnsmasq.c3
-rw-r--r--src/dns-manager/nm-dns-manager.c3
-rw-r--r--src/dns-manager/nm-dns-manager.h2
-rw-r--r--src/dns-manager/nm-dns-plugin.c3
-rw-r--r--src/dns-manager/nm-dns-plugin.h2
-rw-r--r--src/dnsmasq-manager/nm-dnsmasq-manager.c3
-rw-r--r--src/dnsmasq-manager/nm-dnsmasq-manager.h2
-rw-r--r--src/dnsmasq-manager/nm-dnsmasq-utils.h2
-rw-r--r--src/dnsmasq-manager/tests/test-dnsmasq-utils.c3
-rw-r--r--src/main-utils.c4
-rw-r--r--src/main-utils.h2
-rw-r--r--src/main.c4
-rw-r--r--src/nm-activation-request.c3
-rw-r--r--src/nm-activation-request.h3
-rw-r--r--src/nm-active-connection.c5
-rw-r--r--src/nm-auth-manager.c2
-rw-r--r--src/nm-auth-manager.h2
-rw-r--r--src/nm-auth-subject.c3
-rw-r--r--src/nm-auth-subject.h3
-rw-r--r--src/nm-auth-utils.c4
-rw-r--r--src/nm-auth-utils.h3
-rw-r--r--src/nm-bus-manager.c3
-rw-r--r--src/nm-bus-manager.h3
-rw-r--r--src/nm-config-data.c3
-rw-r--r--src/nm-config-data.h3
-rw-r--r--src/nm-config.c4
-rw-r--r--src/nm-config.h3
-rw-r--r--src/nm-connection-provider.h3
-rw-r--r--src/nm-connectivity.c3
-rw-r--r--src/nm-connectivity.h3
-rw-r--r--src/nm-dcb.c3
-rw-r--r--src/nm-dcb.h2
-rw-r--r--src/nm-default-route-manager.c2
-rw-r--r--src/nm-default-route-manager.h3
-rw-r--r--src/nm-dhcp4-config.c2
-rw-r--r--src/nm-dhcp6-config.c2
-rw-r--r--src/nm-dispatcher.c3
-rw-r--r--src/nm-dispatcher.h3
-rw-r--r--src/nm-exported-object.c2
-rw-r--r--src/nm-exported-object.h3
-rw-r--r--src/nm-firewall-manager.c4
-rw-r--r--src/nm-firewall-manager.h2
-rw-r--r--src/nm-iface-helper.c4
-rw-r--r--src/nm-ip4-config.c2
-rw-r--r--src/nm-ip6-config.c2
-rw-r--r--src/nm-logging.c4
-rw-r--r--src/nm-logging.h3
-rw-r--r--src/nm-manager.c4
-rw-r--r--src/nm-multi-index.c2
-rw-r--r--src/nm-multi-index.h2
-rw-r--r--src/nm-policy.c3
-rw-r--r--src/nm-policy.h2
-rw-r--r--src/nm-rfkill-manager.c2
-rw-r--r--src/nm-rfkill-manager.h3
-rw-r--r--src/nm-route-manager.c3
-rw-r--r--src/nm-route-manager.h3
-rw-r--r--src/nm-session-monitor.c3
-rw-r--r--src/nm-session-monitor.h3
-rw-r--r--src/nm-sleep-monitor-systemd.c3
-rw-r--r--src/nm-sleep-monitor-upower.c3
-rw-r--r--src/nm-sleep-monitor.h3
-rw-r--r--src/platform/nm-fake-platform.c3
-rw-r--r--src/platform/nm-linux-platform.c3
-rw-r--r--src/platform/nm-platform-utils.c3
-rw-r--r--src/platform/nm-platform.c3
-rw-r--r--src/platform/nm-platform.h3
-rw-r--r--src/platform/nmp-object.c2
-rw-r--r--src/platform/tests/monitor.c3
-rw-r--r--src/platform/tests/platform.c2
-rw-r--r--src/platform/tests/test-common.h2
-rw-r--r--src/platform/tests/test-general.c2
-rw-r--r--src/platform/tests/test-nmp-object.c2
-rw-r--r--src/platform/wifi/wifi-utils-nl80211.c3
-rw-r--r--src/platform/wifi/wifi-utils-private.h2
-rw-r--r--src/platform/wifi/wifi-utils-wext.c3
-rw-r--r--src/platform/wifi/wifi-utils.c2
-rw-r--r--src/platform/wifi/wifi-utils.h2
-rw-r--r--src/ppp-manager/Makefile.am1
-rw-r--r--src/ppp-manager/nm-ppp-manager.c3
-rw-r--r--src/ppp-manager/nm-pppd-plugin.c2
-rw-r--r--src/rdisc/nm-fake-rdisc.c2
-rw-r--r--src/rdisc/nm-lndp-rdisc.c2
-rw-r--r--src/rdisc/nm-rdisc.c2
-rw-r--r--src/rdisc/nm-rdisc.h2
-rw-r--r--src/rdisc/tests/test-rdisc-fake.c2
-rw-r--r--src/rdisc/tests/test-rdisc-linux.c2
-rw-r--r--src/settings/nm-agent-manager.c3
-rw-r--r--src/settings/nm-inotify-helper.c3
-rw-r--r--src/settings/nm-inotify-helper.h2
-rw-r--r--src/settings/nm-secret-agent.c3
-rw-r--r--src/settings/nm-secret-agent.h3
-rw-r--r--src/settings/nm-settings-connection.c4
-rw-r--r--src/settings/nm-settings-connection.h2
-rw-r--r--src/settings/nm-settings.c3
-rw-r--r--src/settings/nm-system-config-interface.h3
-rw-r--r--src/settings/plugins/ibft/plugin.c3
-rw-r--r--src/settings/plugins/ibft/plugin.h2
-rw-r--r--src/settings/plugins/ibft/reader.c3
-rw-r--r--src/settings/plugins/ibft/reader.h2
-rw-r--r--src/settings/plugins/ibft/tests/test-ibft.c2
-rw-r--r--src/settings/plugins/ifcfg-rh/common.h2
-rw-r--r--src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/plugin.c4
-rw-r--r--src/settings/plugins/ifcfg-rh/reader.c4
-rw-r--r--src/settings/plugins/ifcfg-rh/reader.h2
-rw-r--r--src/settings/plugins/ifcfg-rh/shvar.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/shvar.h2
-rw-r--r--src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c2
-rw-r--r--src/settings/plugins/ifcfg-rh/utils.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/utils.h3
-rw-r--r--src/settings/plugins/ifcfg-rh/writer.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/writer.h2
-rw-r--r--src/settings/plugins/ifnet/connection_parser.c2
-rw-r--r--src/settings/plugins/ifnet/net_parser.c2
-rw-r--r--src/settings/plugins/ifnet/net_parser.h2
-rw-r--r--src/settings/plugins/ifnet/net_utils.c3
-rw-r--r--src/settings/plugins/ifnet/net_utils.h2
-rw-r--r--src/settings/plugins/ifnet/nm-ifnet-connection.c2
-rw-r--r--src/settings/plugins/ifnet/plugin.c3
-rw-r--r--src/settings/plugins/ifnet/plugin.h2
-rw-r--r--src/settings/plugins/ifnet/tests/test-ifnet.c3
-rw-r--r--src/settings/plugins/ifnet/wpa_parser.c2
-rw-r--r--src/settings/plugins/ifnet/wpa_parser.h2
-rw-r--r--src/settings/plugins/ifupdown/interface_parser.c2
-rw-r--r--src/settings/plugins/ifupdown/interface_parser.h2
-rw-r--r--src/settings/plugins/ifupdown/nm-ifupdown-connection.c2
-rw-r--r--src/settings/plugins/ifupdown/nm-ifupdown-connection.h2
-rw-r--r--src/settings/plugins/ifupdown/parser.c2
-rw-r--r--src/settings/plugins/ifupdown/plugin.c3
-rw-r--r--src/settings/plugins/ifupdown/plugin.h2
-rw-r--r--src/settings/plugins/ifupdown/tests/test-ifupdown.c4
-rw-r--r--src/settings/plugins/keyfile/common.h2
-rw-r--r--src/settings/plugins/keyfile/nm-keyfile-connection.c2
-rw-r--r--src/settings/plugins/keyfile/plugin.c4
-rw-r--r--src/settings/plugins/keyfile/plugin.h2
-rw-r--r--src/settings/plugins/keyfile/reader.c2
-rw-r--r--src/settings/plugins/keyfile/reader.h2
-rw-r--r--src/settings/plugins/keyfile/tests/test-keyfile.c2
-rw-r--r--src/settings/plugins/keyfile/utils.c3
-rw-r--r--src/settings/plugins/keyfile/utils.h2
-rw-r--r--src/settings/plugins/keyfile/writer.c4
-rw-r--r--src/settings/plugins/keyfile/writer.h2
-rw-r--r--src/supplicant-manager/nm-supplicant-config.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-config.h2
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.c4
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.h2
-rw-r--r--src/supplicant-manager/nm-supplicant-manager.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-manager.h2
-rw-r--r--src/supplicant-manager/nm-supplicant-settings-verify.c2
-rw-r--r--src/supplicant-manager/tests/test-supplicant-config.c2
-rw-r--r--src/systemd/nm-sd-adapt.h2
-rw-r--r--src/tests/config/test-config.c3
-rw-r--r--src/tests/test-dcb.c3
-rw-r--r--src/tests/test-general-with-expect.c3
-rw-r--r--src/tests/test-general.c3
-rw-r--r--src/tests/test-ip4-config.c3
-rw-r--r--src/tests/test-ip6-config.c3
-rw-r--r--src/tests/test-resolvconf-capture.c3
-rw-r--r--src/tests/test-route-manager.c3
-rw-r--r--src/tests/test-wired-defname.c3
-rw-r--r--src/vpn-manager/nm-vpn-connection.c4
-rw-r--r--src/vpn-manager/nm-vpn-manager.c4
-rw-r--r--src/vpn-manager/nm-vpn-manager.h2
-rw-r--r--src/vpn-manager/nm-vpn-service.c3
-rw-r--r--src/vpn-manager/nm-vpn-service.h2
395 files changed, 400 insertions, 551 deletions
diff --git a/callouts/nm-dispatcher-utils.c b/callouts/nm-dispatcher-utils.c
index b930e269f2..52eddfdab6 100644
--- a/callouts/nm-dispatcher-utils.c
+++ b/callouts/nm-dispatcher-utils.c
@@ -29,7 +29,7 @@
#include <nm-setting-ip6-config.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dispatcher-api.h"
#include "nm-utils.h"
diff --git a/callouts/nm-dispatcher-utils.h b/callouts/nm-dispatcher-utils.h
index be67787d6f..f68b3ea6ae 100644
--- a/callouts/nm-dispatcher-utils.h
+++ b/callouts/nm-dispatcher-utils.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DISPATCHER_UTILS_H__
#define __NETWORKMANAGER_DISPATCHER_UTILS_H__
-#include "nm-glib.h"
+#include "nm-default.h"
char **
nm_dispatcher_utils_construct_envp (const char *action,
diff --git a/callouts/nm-dispatcher.c b/callouts/nm-dispatcher.c
index ef6f2a96bd..32b60e8a29 100644
--- a/callouts/nm-dispatcher.c
+++ b/callouts/nm-dispatcher.c
@@ -34,7 +34,7 @@
#include <glib-unix.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dispatcher-api.h"
#include "nm-dispatcher-utils.h"
diff --git a/callouts/tests/test-dispatcher-envp.c b/callouts/tests/test-dispatcher-envp.c
index c6516b308e..faa6c085a0 100644
--- a/callouts/tests/test-dispatcher-envp.c
+++ b/callouts/tests/test-dispatcher-envp.c
@@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-dispatcher-utils.h"
#include "nm-dispatcher-api.h"
diff --git a/clients/cli/agent.c b/clients/cli/agent.c
index 896e76152a..75422ceae9 100644
--- a/clients/cli/agent.c
+++ b/clients/cli/agent.c
@@ -29,7 +29,7 @@
#include <readline/readline.h>
#include <readline/history.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "utils.h"
#include "nm-secret-agent-simple.h"
diff --git a/clients/cli/common.c b/clients/cli/common.c
index db20372aeb..5a3f796424 100644
--- a/clients/cli/common.c
+++ b/clients/cli/common.c
@@ -29,7 +29,7 @@
#include <readline/readline.h>
#include <readline/history.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "utils.h"
diff --git a/clients/cli/connections.c b/clients/cli/connections.c
index 36780577ea..372f6ad1c7 100644
--- a/clients/cli/connections.c
+++ b/clients/cli/connections.c
@@ -30,8 +30,7 @@
#include <readline/readline.h>
#include <readline/history.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "utils.h"
#include "common.h"
#include "settings.h"
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index 70135e1780..940181384d 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -27,7 +27,7 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-secret-agent-simple.h"
#include "polkit-agent.h"
#include "utils.h"
diff --git a/clients/cli/general.c b/clients/cli/general.c
index b5fd5e1f66..fa493bb849 100644
--- a/clients/cli/general.c
+++ b/clients/cli/general.c
@@ -24,7 +24,7 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "polkit-agent.h"
#include "utils.h"
#include "general.h"
diff --git a/clients/cli/nmcli.c b/clients/cli/nmcli.c
index 2c19e4897b..7ad5fa1b89 100644
--- a/clients/cli/nmcli.c
+++ b/clients/cli/nmcli.c
@@ -35,7 +35,7 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "polkit-agent.h"
#include "nmcli.h"
#include "utils.h"
diff --git a/clients/cli/polkit-agent.c b/clients/cli/polkit-agent.c
index 269fa6df9e..1120b7eb7c 100644
--- a/clients/cli/polkit-agent.c
+++ b/clients/cli/polkit-agent.c
@@ -29,7 +29,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "polkit-agent.h"
#include "nm-polkit-listener.h"
#include "common.h"
@@ -142,7 +142,7 @@ nmc_start_polkit_agent_start_try (NmCli *nmc)
#else
/* polkit agent is not avalable; implement stub functions. */
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmcli.h"
#include "polkit-agent.h"
diff --git a/clients/cli/settings.c b/clients/cli/settings.c
index 42d88322e9..e5e6cd57cc 100644
--- a/clients/cli/settings.c
+++ b/clients/cli/settings.c
@@ -24,7 +24,7 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "utils.h"
#include "common.h"
#include "settings.h"
diff --git a/clients/cli/utils.c b/clients/cli/utils.c
index 6552e15f63..cfc8cd2835 100644
--- a/clients/cli/utils.c
+++ b/clients/cli/utils.c
@@ -31,7 +31,7 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "utils.h"
int
diff --git a/clients/common/nm-polkit-listener.c b/clients/common/nm-polkit-listener.c
index bad5f432dc..5726e6506d 100644
--- a/clients/common/nm-polkit-listener.c
+++ b/clients/common/nm-polkit-listener.c
@@ -38,7 +38,7 @@
#include <stdlib.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-polkit-listener.h"
G_DEFINE_TYPE (NMPolkitListener, nm_polkit_listener, POLKIT_AGENT_TYPE_LISTENER)
diff --git a/clients/common/nm-polkit-listener.h b/clients/common/nm-polkit-listener.h
index ffdc91acf8..22c436c17c 100644
--- a/clients/common/nm-polkit-listener.h
+++ b/clients/common/nm-polkit-listener.h
@@ -22,7 +22,7 @@
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
#include <polkitagent/polkitagent.h>
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c
index 8eddb4400e..00dc965e12 100644
--- a/clients/common/nm-secret-agent-simple.c
+++ b/clients/common/nm-secret-agent-simple.c
@@ -34,6 +34,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
+#include "nm-default.h"
#include "nm-secret-agent-simple.h"
G_DEFINE_TYPE (NMSecretAgentSimple, nm_secret_agent_simple, NM_TYPE_SECRET_AGENT_OLD)
diff --git a/clients/nm-online.c b/clients/nm-online.c
index fc4e86474c..60e1a0a01b 100644
--- a/clients/nm-online.c
+++ b/clients/nm-online.c
@@ -42,7 +42,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#define PROGRESS_STEPS 15
#define WAIT_STARTUP_TAG "wait-startup"
diff --git a/clients/tui/newt/Makefile.am b/clients/tui/newt/Makefile.am
index e572238b2a..dcc02ab726 100644
--- a/clients/tui/newt/Makefile.am
+++ b/clients/tui/newt/Makefile.am
@@ -1,5 +1,6 @@
AM_CPPFLAGS= \
-I$(top_srcdir)/include \
+ -I$(top_srcdir)/libnm-core \
-DG_LOG_DOMAIN=\""nmtui"\" \
$(GLIB_CFLAGS) \
$(NEWT_CFLAGS) \
diff --git a/clients/tui/newt/nmt-newt-types.h b/clients/tui/newt/nmt-newt-types.h
index 775c3bc8ec..4ea0a7b8c7 100644
--- a/clients/tui/newt/nmt-newt-types.h
+++ b/clients/tui/newt/nmt-newt-types.h
@@ -21,7 +21,7 @@
#include <newt.h>
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/clients/tui/newt/nmt-newt-utils.c b/clients/tui/newt/nmt-newt-utils.c
index b405c9dbf9..b796219454 100644
--- a/clients/tui/newt/nmt-newt-utils.c
+++ b/clients/tui/newt/nmt-newt-utils.c
@@ -30,7 +30,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-newt-utils.h"
static void
diff --git a/clients/tui/newt/nmt-newt-utils.h b/clients/tui/newt/nmt-newt-utils.h
index 7a3b677f51..706f10d3e3 100644
--- a/clients/tui/newt/nmt-newt-utils.h
+++ b/clients/tui/newt/nmt-newt-utils.h
@@ -21,7 +21,7 @@
#include <newt.h>
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nm-editor-utils.c b/clients/tui/nm-editor-utils.c
index f936c95943..8f15b734b5 100644
--- a/clients/tui/nm-editor-utils.c
+++ b/clients/tui/nm-editor-utils.c
@@ -30,6 +30,7 @@
#include <glib/gi18n.h>
#include <NetworkManager.h>
+#include "nm-default.h"
#include "nm-editor-utils.h"
#if 0
#include "vpn-helpers.h"
diff --git a/clients/tui/nmt-editor.c b/clients/tui/nmt-editor.c
index a0c15343f3..342da77d90 100644
--- a/clients/tui/nmt-editor.c
+++ b/clients/tui/nmt-editor.c
@@ -30,7 +30,7 @@
#include <glib/gi18n-lib.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmtui.h"
#include "nm-editor-utils.h"
diff --git a/clients/tui/nmt-mac-entry.h b/clients/tui/nmt-mac-entry.h
index 2852de8de1..099bacb71b 100644
--- a/clients/tui/nmt-mac-entry.h
+++ b/clients/tui/nmt-mac-entry.h
@@ -19,7 +19,7 @@
#ifndef NMT_MAC_ENTRY_H
#define NMT_MAC_ENTRY_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nmt-newt.h"
diff --git a/clients/tui/nmt-page-bond.c b/clients/tui/nmt-page-bond.c
index 89e10cf539..ef7a79ae1d 100644
--- a/clients/tui/nmt-page-bond.c
+++ b/clients/tui/nmt-page-bond.c
@@ -29,7 +29,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-bond.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-bridge-port.c b/clients/tui/nmt-page-bridge-port.c
index ee18ba5fdd..c4238fff5c 100644
--- a/clients/tui/nmt-page-bridge-port.c
+++ b/clients/tui/nmt-page-bridge-port.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-bridge-port.h"
G_DEFINE_TYPE (NmtPageBridgePort, nmt_page_bridge_port, NMT_TYPE_EDITOR_PAGE)
diff --git a/clients/tui/nmt-page-bridge.c b/clients/tui/nmt-page-bridge.c
index 84491b6a5f..042a650938 100644
--- a/clients/tui/nmt-page-bridge.c
+++ b/clients/tui/nmt-page-bridge.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-bridge.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-dsl.c b/clients/tui/nmt-page-dsl.c
index 0b0f1b93e6..9916553d0b 100644
--- a/clients/tui/nmt-page-dsl.c
+++ b/clients/tui/nmt-page-dsl.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-dsl.h"
#include "nmt-page-ethernet.h"
#include "nmt-page-ppp.h"
diff --git a/clients/tui/nmt-page-dsl.h b/clients/tui/nmt-page-dsl.h
index 8da0e05e91..dc84ca072c 100644
--- a/clients/tui/nmt-page-dsl.h
+++ b/clients/tui/nmt-page-dsl.h
@@ -19,7 +19,7 @@
#ifndef NMT_PAGE_DSL_H
#define NMT_PAGE_DSL_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-editor-page-device.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmt-page-ethernet.c b/clients/tui/nmt-page-ethernet.c
index cec0491a6d..433710186f 100644
--- a/clients/tui/nmt-page-ethernet.c
+++ b/clients/tui/nmt-page-ethernet.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-ethernet.h"
#include "nmt-mac-entry.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-page-infiniband.c b/clients/tui/nmt-page-infiniband.c
index ecc5dc311a..69ae2818ca 100644
--- a/clients/tui/nmt-page-infiniband.c
+++ b/clients/tui/nmt-page-infiniband.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-infiniband.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-page-ip4.c b/clients/tui/nmt-page-ip4.c
index 366a391973..5ec5736bbb 100644
--- a/clients/tui/nmt-page-ip4.c
+++ b/clients/tui/nmt-page-ip4.c
@@ -27,7 +27,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-ip4.h"
#include "nmt-ip-entry.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-ip6.c b/clients/tui/nmt-page-ip6.c
index ea8314d7f2..ea84af31c5 100644
--- a/clients/tui/nmt-page-ip6.c
+++ b/clients/tui/nmt-page-ip6.c
@@ -27,7 +27,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-ip6.h"
#include "nmt-ip-entry.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-ppp.c b/clients/tui/nmt-page-ppp.c
index 85690e4e67..7c2d940a94 100644
--- a/clients/tui/nmt-page-ppp.c
+++ b/clients/tui/nmt-page-ppp.c
@@ -27,7 +27,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-ppp.h"
#include "nmt-newt-section.h"
#include "nmt-newt-separator.h"
diff --git a/clients/tui/nmt-page-team-port.c b/clients/tui/nmt-page-team-port.c
index a571924ae1..dfcaa15ed4 100644
--- a/clients/tui/nmt-page-team-port.c
+++ b/clients/tui/nmt-page-team-port.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-team-port.h"
G_DEFINE_TYPE (NmtPageTeamPort, nmt_page_team_port, NMT_TYPE_EDITOR_PAGE)
diff --git a/clients/tui/nmt-page-team.c b/clients/tui/nmt-page-team.c
index b7664943fd..d153738ef5 100644
--- a/clients/tui/nmt-page-team.c
+++ b/clients/tui/nmt-page-team.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-team.h"
#include "nmt-slave-list.h"
diff --git a/clients/tui/nmt-page-team.h b/clients/tui/nmt-page-team.h
index 95a0e454d3..994b63d327 100644
--- a/clients/tui/nmt-page-team.h
+++ b/clients/tui/nmt-page-team.h
@@ -19,7 +19,7 @@
#ifndef NMT_PAGE_TEAM_H
#define NMT_PAGE_TEAM_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-editor-page-device.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmt-page-vlan.c b/clients/tui/nmt-page-vlan.c
index fefb244b15..637987c398 100644
--- a/clients/tui/nmt-page-vlan.c
+++ b/clients/tui/nmt-page-vlan.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-editor-bindings.h"
#include "nmt-page-vlan.h"
diff --git a/clients/tui/nmt-page-wifi.c b/clients/tui/nmt-page-wifi.c
index cf593f0108..8a0c671639 100644
--- a/clients/tui/nmt-page-wifi.c
+++ b/clients/tui/nmt-page-wifi.c
@@ -31,7 +31,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-page-wifi.h"
#include "nmt-mac-entry.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-route-editor.c b/clients/tui/nmt-route-editor.c
index 156f7ad085..875c2c99a4 100644
--- a/clients/tui/nmt-route-editor.c
+++ b/clients/tui/nmt-route-editor.c
@@ -29,7 +29,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-route-editor.h"
#include "nmt-route-table.h"
diff --git a/clients/tui/nmt-utils.h b/clients/tui/nmt-utils.h
index cb7e632aae..5531dbeb62 100644
--- a/clients/tui/nmt-utils.h
+++ b/clients/tui/nmt-utils.h
@@ -19,7 +19,7 @@
#ifndef NMT_UTILS_H
#define NMT_UTILS_H
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmtui.c b/clients/tui/nmtui.c
index 3519d5b9e0..d9e5142be7 100644
--- a/clients/tui/nmtui.c
+++ b/clients/tui/nmtui.c
@@ -34,7 +34,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nmt-newt.h"
#include "nm-editor-bindings.h"
diff --git a/clients/tui/vpn-helpers.c b/clients/tui/vpn-helpers.c
index 9cf8ce84c0..5ab22f4ef1 100644
--- a/clients/tui/vpn-helpers.c
+++ b/clients/tui/vpn-helpers.c
@@ -34,7 +34,7 @@
#include <gmodule.h>
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "vpn-helpers.h"
#include "nm-macros-internal.h"
diff --git a/clients/tui/vpn-helpers.h b/clients/tui/vpn-helpers.h
index 4503b8178f..47fc27e39f 100644
--- a/clients/tui/vpn-helpers.h
+++ b/clients/tui/vpn-helpers.h
@@ -21,7 +21,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
GSList *vpn_get_plugins (void);
diff --git a/include/nm-macros-internal.h b/include/nm-macros-internal.h
index 9d1beabb56..a98ced7606 100644
--- a/include/nm-macros-internal.h
+++ b/include/nm-macros-internal.h
@@ -22,7 +22,7 @@
#ifndef __NM_MACROS_INTERNAL_H__
#define __NM_MACROS_INTERNAL_H__
-#include "nm-glib.h"
+#include "nm-default.h"
/********************************************************/
diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h
index 2c60e98f4b..a8f64b437f 100644
--- a/include/nm-test-utils.h
+++ b/include/nm-test-utils.h
@@ -89,10 +89,9 @@
#include <string.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-macros-internal.h"
-#include "gsystem-local-alloc.h"
#ifdef __NETWORKMANAGER_LOGGING_H__
/* We are running tests under src/. Let's include some files by default.
diff --git a/libnm-core/crypto.c b/libnm-core/crypto.c
index c6b6653f92..77bc071ce8 100644
--- a/libnm-core/crypto.c
+++ b/libnm-core/crypto.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#include "nm-errors.h"
diff --git a/libnm-core/crypto.h b/libnm-core/crypto.h
index d4784102e6..c77ada5a7f 100644
--- a/libnm-core/crypto.h
+++ b/libnm-core/crypto.h
@@ -24,7 +24,7 @@
#ifndef __CRYPTO_H__
#define __CRYPTO_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define MD5_HASH_LEN 20
#define CIPHER_DES_EDE3_CBC "DES-EDE3-CBC"
diff --git a/libnm-core/crypto_gnutls.c b/libnm-core/crypto_gnutls.c
index 32692fde9e..6098b86ad1 100644
--- a/libnm-core/crypto_gnutls.c
+++ b/libnm-core/crypto_gnutls.c
@@ -30,7 +30,7 @@
#include <gnutls/x509.h>
#include <gnutls/pkcs12.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#include "nm-errors.h"
diff --git a/libnm-core/crypto_nss.c b/libnm-core/crypto_nss.c
index 0c5905c18c..a1916a22c7 100644
--- a/libnm-core/crypto_nss.c
+++ b/libnm-core/crypto_nss.c
@@ -35,7 +35,7 @@
#include <ciferfam.h>
#include <p12plcy.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#include "nm-errors.h"
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c
index 353421a70d..fd4b57305b 100644
--- a/libnm-core/nm-connection.c
+++ b/libnm-core/nm-connection.c
@@ -24,13 +24,12 @@
#include <glib/gi18n-lib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-connection-private.h"
#include "nm-utils.h"
#include "nm-setting-private.h"
#include "nm-core-internal.h"
-#include "gsystem-local-alloc.h"
/**
* SECTION:nm-connection
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h
index 4081a32990..8028283ead 100644
--- a/libnm-core/nm-core-internal.h
+++ b/libnm-core/nm-core-internal.h
@@ -34,7 +34,7 @@
**/
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-core-enum-types.h"
#include "nm-dbus-interface.h"
@@ -67,7 +67,6 @@
#include "nm-setting.h"
#include "nm-simple-connection.h"
#include "nm-utils.h"
-#include "nm-version.h"
#include "nm-vpn-dbus-interface.h"
#define NM_UTILS_CLEAR_CANCELLABLE(c) \
diff --git a/libnm-core/nm-dbus-utils.c b/libnm-core/nm-dbus-utils.c
index e2e3265c52..6d75176e0e 100644
--- a/libnm-core/nm-dbus-utils.c
+++ b/libnm-core/nm-dbus-utils.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
typedef struct {
diff --git a/libnm-core/nm-errors.c b/libnm-core/nm-errors.c
index b2e95066d6..28e5ca2094 100644
--- a/libnm-core/nm-errors.c
+++ b/libnm-core/nm-errors.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-errors.h"
#include "nm-dbus-interface.h"
#include "nm-vpn-dbus-interface.h"
diff --git a/libnm-core/nm-keyfile-internal.h b/libnm-core/nm-keyfile-internal.h
index 5f4c927f29..7873aa7cdb 100644
--- a/libnm-core/nm-keyfile-internal.h
+++ b/libnm-core/nm-keyfile-internal.h
@@ -24,7 +24,7 @@
#include <sys/types.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-setting-8021x.h"
diff --git a/libnm-core/nm-keyfile-reader.c b/libnm-core/nm-keyfile-reader.c
index dfc3944ccb..22141bd657 100644
--- a/libnm-core/nm-keyfile-reader.c
+++ b/libnm-core/nm-keyfile-reader.c
@@ -30,10 +30,9 @@
#include <string.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-macros-internal.h"
-#include "gsystem-local-alloc.h"
#include "nm-keyfile-internal.h"
#include "nm-keyfile-utils.h"
diff --git a/libnm-core/nm-keyfile-utils.c b/libnm-core/nm-keyfile-utils.c
index 2540afebb1..15b14a3e07 100644
--- a/libnm-core/nm-keyfile-utils.c
+++ b/libnm-core/nm-keyfile-utils.c
@@ -23,8 +23,7 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-keyfile-utils.h"
#include "nm-keyfile-internal.h"
#include "nm-setting-wired.h"
diff --git a/libnm-core/nm-keyfile-writer.c b/libnm-core/nm-keyfile-writer.c
index 9dc9b387ed..a2270882e3 100644
--- a/libnm-core/nm-keyfile-writer.c
+++ b/libnm-core/nm-keyfile-writer.c
@@ -30,7 +30,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting.h"
#include "nm-setting-connection.h"
#include "nm-setting-ip4-config.h"
@@ -43,7 +43,6 @@
#include "nm-setting-8021x.h"
#include "nm-utils.h"
-#include "gsystem-local-alloc.h"
#include "nm-keyfile-internal.h"
#include "nm-keyfile-utils.h"
diff --git a/libnm-core/nm-property-compare.c b/libnm-core/nm-property-compare.c
index a52c3ccee1..d244f74533 100644
--- a/libnm-core/nm-property-compare.c
+++ b/libnm-core/nm-property-compare.c
@@ -27,7 +27,7 @@
#include <netinet/in.h>
#include "nm-property-compare.h"
-#include "nm-glib.h"
+#include "nm-default.h"
static gint
_nm_property_compare_collection (GVariant *value1, GVariant *value2)
diff --git a/libnm-core/nm-property-compare.h b/libnm-core/nm-property-compare.h
index c03d147952..3f10581807 100644
--- a/libnm-core/nm-property-compare.h
+++ b/libnm-core/nm-property-compare.h
@@ -23,7 +23,7 @@
#ifndef __NM_PROPERTY_COMPARE_H__
#define __NM_PROPERTY_COMPARE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
int nm_property_compare (GVariant *value1, GVariant *value2);
diff --git a/libnm-core/nm-setting-8021x.c b/libnm-core/nm-setting-8021x.c
index 235be6af5b..21fa9a4986 100644
--- a/libnm-core/nm-setting-8021x.c
+++ b/libnm-core/nm-setting-8021x.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
+#include "nm-default.h"
#include "nm-setting-8021x.h"
#include "nm-utils.h"
#include "crypto.h"
@@ -32,7 +33,6 @@
#include "nm-setting-private.h"
#include "nm-core-enum-types.h"
#include "nm-macros-internal.h"
-#include "gsystem-local-alloc.h"
/**
* SECTION:nm-setting-8021x
diff --git a/libnm-core/nm-setting-ip-config.c b/libnm-core/nm-setting-ip-config.c
index b4cd213817..6d4441d7a6 100644
--- a/libnm-core/nm-setting-ip-config.c
+++ b/libnm-core/nm-setting-ip-config.c
@@ -26,7 +26,7 @@
#include <arpa/inet.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-ip-config.h"
#include "nm-setting-ip4-config.h"
#include "nm-setting-ip6-config.h"
diff --git a/libnm-core/nm-setting-private.h b/libnm-core/nm-setting-private.h
index ea8194860a..aa90d9c73d 100644
--- a/libnm-core/nm-setting-private.h
+++ b/libnm-core/nm-setting-private.h
@@ -21,7 +21,7 @@
#ifndef __NM_SETTING_PRIVATE_H__
#define __NM_SETTING_PRIVATE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting.h"
#include "nm-connection.h"
#include "nm-core-enum-types.h"
diff --git a/libnm-core/nm-setting-serial.c b/libnm-core/nm-setting-serial.c
index 668565f35c..b8589cd28c 100644
--- a/libnm-core/nm-setting-serial.c
+++ b/libnm-core/nm-setting-serial.c
@@ -24,7 +24,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-serial.h"
#include "nm-setting-private.h"
diff --git a/libnm-core/nm-setting.c b/libnm-core/nm-setting.c
index 07daeacecb..f9dee4730d 100644
--- a/libnm-core/nm-setting.c
+++ b/libnm-core/nm-setting.c
@@ -25,7 +25,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting.h"
#include "nm-setting-private.h"
#include "nm-utils.h"
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 0ed4814619..6b6a35d543 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -32,12 +32,11 @@
#include <glib/gi18n-lib.h>
#include <sys/stat.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-utils-private.h"
#include "nm-setting-private.h"
#include "crypto.h"
-#include "gsystem-local-alloc.h"
#include "nm-macros-internal.h"
#include "nm-setting-bond.h"
diff --git a/libnm-core/tests/test-compare.c b/libnm-core/tests/test-compare.c
index 6e861ffdb7..914330fe41 100644
--- a/libnm-core/tests/test-compare.c
+++ b/libnm-core/tests/test-compare.c
@@ -24,7 +24,7 @@
#include <arpa/inet.h>
#include <netinet/in.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-property-compare.h"
#include "nm-test-utils.h"
diff --git a/libnm-core/tests/test-crypto.c b/libnm-core/tests/test-crypto.c
index 282939f6e9..0d68653fc0 100644
--- a/libnm-core/tests/test-crypto.c
+++ b/libnm-core/tests/test-crypto.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#include "nm-utils.h"
#include "nm-errors.h"
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c
index a033b9cbc2..063bda7dd3 100644
--- a/libnm-core/tests/test-general.c
+++ b/libnm-core/tests/test-general.c
@@ -26,8 +26,7 @@
#include <string.h>
#include <nm-utils.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-setting-private.h"
#include "nm-utils.h"
diff --git a/libnm-core/tests/test-secrets.c b/libnm-core/tests/test-secrets.c
index 6995522f79..4c0c7f5d37 100644
--- a/libnm-core/tests/test-secrets.c
+++ b/libnm-core/tests/test-secrets.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-8021x.h"
#include "nm-setting-cdma.h"
#include "nm-setting-connection.h"
diff --git a/libnm-core/tests/test-setting-8021x.c b/libnm-core/tests/test-setting-8021x.c
index 255448b8bb..49d7448ea3 100644
--- a/libnm-core/tests/test-setting-8021x.c
+++ b/libnm-core/tests/test-setting-8021x.c
@@ -25,7 +25,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-connection.h"
#include "nm-setting-8021x.h"
diff --git a/libnm-core/tests/test-setting-dcb.c b/libnm-core/tests/test-setting-dcb.c
index 2e9fa1a74d..f8b789c182 100644
--- a/libnm-core/tests/test-setting-dcb.c
+++ b/libnm-core/tests/test-setting-dcb.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-dcb.h"
#include "nm-connection.h"
#include "nm-errors.h"
diff --git a/libnm-core/tests/test-settings-defaults.c b/libnm-core/tests/test-settings-defaults.c
index 81d754223d..21e16f3d2e 100644
--- a/libnm-core/tests/test-settings-defaults.c
+++ b/libnm-core/tests/test-settings-defaults.c
@@ -25,7 +25,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-8021x.h"
#include "nm-setting-cdma.h"
#include "nm-setting-connection.h"
diff --git a/libnm-glib/libnm-glib-test.c b/libnm-glib/libnm-glib-test.c
index c8ea9863a8..3b8f6cab14 100644
--- a/libnm-glib/libnm-glib-test.c
+++ b/libnm-glib/libnm-glib-test.c
@@ -31,7 +31,7 @@
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-client.h"
#include "nm-device.h"
#include "nm-device-ethernet.h"
diff --git a/libnm-glib/libnm_glib.c b/libnm-glib/libnm_glib.c
index 7e99db1c1c..09d9bea9b1 100644
--- a/libnm-glib/libnm_glib.c
+++ b/libnm-glib/libnm_glib.c
@@ -28,7 +28,7 @@
#include <string.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "libnm_glib.h"
diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c
index 5c6ba006a7..3a420ea14a 100644
--- a/libnm-glib/nm-access-point.c
+++ b/libnm-glib/nm-access-point.c
@@ -30,7 +30,7 @@
#include <nm-setting-wireless-security.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-access-point.h"
#include "NetworkManager.h"
#include "nm-types-private.h"
diff --git a/libnm-glib/nm-active-connection.c b/libnm-glib/nm-active-connection.c
index 613c3577f1..539eb75f8e 100644
--- a/libnm-glib/nm-active-connection.c
+++ b/libnm-glib/nm-active-connection.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "nm-active-connection.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c
index e47a2751b1..a30b096ed3 100644
--- a/libnm-glib/nm-client.c
+++ b/libnm-glib/nm-client.c
@@ -25,7 +25,7 @@
#include <string.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-client.h"
#include "nm-device-ethernet.h"
#include "nm-device-wifi.h"
diff --git a/libnm-glib/nm-dbus-helpers-private.h b/libnm-glib/nm-dbus-helpers-private.h
index b2c992b6e7..c78bf1dae5 100644
--- a/libnm-glib/nm-dbus-helpers-private.h
+++ b/libnm-glib/nm-dbus-helpers-private.h
@@ -24,7 +24,7 @@
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
DBusGConnection *_nm_dbus_new_connection (GError **error);
diff --git a/libnm-glib/nm-dbus-helpers.c b/libnm-glib/nm-dbus-helpers.c
index 44ae13a804..db75eb24ea 100644
--- a/libnm-glib/nm-dbus-helpers.c
+++ b/libnm-glib/nm-dbus-helpers.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-helpers-private.h"
#include "NetworkManager.h"
diff --git a/libnm-glib/nm-device-bond.c b/libnm-glib/nm-device-bond.c
index b8a253cdf9..12df490f0e 100644
--- a/libnm-glib/nm-device-bond.c
+++ b/libnm-glib/nm-device-bond.c
@@ -27,7 +27,7 @@
#include <nm-setting-bond.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bond.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-bridge.c b/libnm-glib/nm-device-bridge.c
index f80835a85f..d08104d10b 100644
--- a/libnm-glib/nm-device-bridge.c
+++ b/libnm-glib/nm-device-bridge.c
@@ -27,7 +27,7 @@
#include <nm-setting-bridge.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bridge.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-bt.c b/libnm-glib/nm-device-bt.c
index 5b09399953..3d7d183b08 100644
--- a/libnm-glib/nm-device-bt.c
+++ b/libnm-glib/nm-device-bt.c
@@ -27,7 +27,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-bluetooth.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bt.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-ethernet.c b/libnm-glib/nm-device-ethernet.c
index 24e3f36908..b591461636 100644
--- a/libnm-glib/nm-device-ethernet.c
+++ b/libnm-glib/nm-device-ethernet.c
@@ -28,7 +28,7 @@
#include <nm-setting-wired.h>
#include <nm-setting-pppoe.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-ethernet.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-infiniband.c b/libnm-glib/nm-device-infiniband.c
index 10b65aac79..b9af88794a 100644
--- a/libnm-glib/nm-device-infiniband.c
+++ b/libnm-glib/nm-device-infiniband.c
@@ -28,7 +28,7 @@
#include <nm-setting-infiniband.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-infiniband.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-modem.c b/libnm-glib/nm-device-modem.c
index 7ef2926b21..88c15dd798 100644
--- a/libnm-glib/nm-device-modem.c
+++ b/libnm-glib/nm-device-modem.c
@@ -27,7 +27,7 @@
#include <nm-setting-gsm.h>
#include <nm-setting-cdma.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-modem.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-olpc-mesh.c b/libnm-glib/nm-device-olpc-mesh.c
index f33c68e7fc..69acce4578 100644
--- a/libnm-glib/nm-device-olpc-mesh.c
+++ b/libnm-glib/nm-device-olpc-mesh.c
@@ -25,7 +25,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-olpc-mesh.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-olpc-mesh.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-team.c b/libnm-glib/nm-device-team.c
index 6a16846bad..e7622962e4 100644
--- a/libnm-glib/nm-device-team.c
+++ b/libnm-glib/nm-device-team.c
@@ -27,7 +27,7 @@
#include <nm-setting-team.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-team.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-vlan.c b/libnm-glib/nm-device-vlan.c
index 475be6be68..fe3db03a22 100644
--- a/libnm-glib/nm-device-vlan.c
+++ b/libnm-glib/nm-device-vlan.c
@@ -27,7 +27,7 @@
#include <nm-setting-vlan.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-vlan.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-wifi.c b/libnm-glib/nm-device-wifi.c
index 788e66954e..05b47b4da6 100644
--- a/libnm-glib/nm-device-wifi.c
+++ b/libnm-glib/nm-device-wifi.c
@@ -28,7 +28,7 @@
#include <nm-setting-wireless.h>
#include <nm-setting-wireless-security.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-wifi.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-device-wimax.c b/libnm-glib/nm-device-wimax.c
index e94142031f..70c8b14e3c 100644
--- a/libnm-glib/nm-device-wimax.c
+++ b/libnm-glib/nm-device-wimax.c
@@ -27,7 +27,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-wimax.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-wimax.h"
#include "nm-object-private.h"
#include "nm-object-cache.h"
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c
index b511254150..2363167168 100644
--- a/libnm-glib/nm-device.c
+++ b/libnm-glib/nm-device.c
@@ -26,7 +26,7 @@
#include <glib/gi18n-lib.h>
#include <gudev/gudev.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "nm-device-ethernet.h"
#include "nm-device-adsl.h"
diff --git a/libnm-glib/nm-object-cache.c b/libnm-glib/nm-object-cache.c
index 09bf720cec..82af1140f1 100644
--- a/libnm-glib/nm-object-cache.c
+++ b/libnm-glib/nm-object-cache.c
@@ -21,7 +21,7 @@
#include "config.h"
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object-cache.h"
#include "nm-object.h"
diff --git a/libnm-glib/nm-object-cache.h b/libnm-glib/nm-object-cache.h
index 5fcd2ef574..30b62f08ce 100644
--- a/libnm-glib/nm-object-cache.h
+++ b/libnm-glib/nm-object-cache.h
@@ -21,7 +21,7 @@
#ifndef NM_OBJECT_CACHE_H
#define NM_OBJECT_CACHE_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object.h"
G_BEGIN_DECLS
diff --git a/libnm-glib/nm-object-private.h b/libnm-glib/nm-object-private.h
index 519f6776b7..8878354f55 100644
--- a/libnm-glib/nm-object-private.h
+++ b/libnm-glib/nm-object-private.h
@@ -21,7 +21,7 @@
#ifndef NM_OBJECT_PRIVATE_H
#define NM_OBJECT_PRIVATE_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object.h"
void _nm_object_ensure_inited (NMObject *object);
diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c
index b92b0ca61c..44ca947e40 100644
--- a/libnm-glib/nm-object.c
+++ b/libnm-glib/nm-object.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "nm-object.h"
#include "nm-object-cache.h"
diff --git a/libnm-glib/nm-remote-connection.c b/libnm-glib/nm-remote-connection.c
index 1dce200e96..ce750ef3eb 100644
--- a/libnm-glib/nm-remote-connection.c
+++ b/libnm-glib/nm-remote-connection.c
@@ -27,7 +27,7 @@
#include <NetworkManager.h>
#include <nm-utils.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-remote-connection.h"
#include "nm-remote-connection-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c
index d2fa2db73e..421f70305a 100644
--- a/libnm-glib/nm-remote-settings.c
+++ b/libnm-glib/nm-remote-settings.c
@@ -25,7 +25,7 @@
#include <NetworkManager.h>
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-glib-types.h"
#include "nm-remote-settings.h"
#include "nm-remote-connection-private.h"
diff --git a/libnm-glib/nm-secret-agent.c b/libnm-glib/nm-secret-agent.c
index 32b8564f0f..99871ad2d9 100644
--- a/libnm-glib/nm-secret-agent.c
+++ b/libnm-glib/nm-secret-agent.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "nm-secret-agent.h"
#include "nm-glib-enum-types.h"
diff --git a/libnm-glib/nm-types.c b/libnm-glib/nm-types.c
index daafc2bc25..30936f4ee6 100644
--- a/libnm-glib/nm-types.c
+++ b/libnm-glib/nm-types.c
@@ -22,7 +22,7 @@
#include <dbus/dbus-glib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-types.h"
#include "nm-types-private.h"
#include "nm-object-private.h"
diff --git a/libnm-glib/nm-vpn-plugin.c b/libnm-glib/nm-vpn-plugin.c
index 290ecb4738..6a728f9ebf 100644
--- a/libnm-glib/nm-vpn-plugin.c
+++ b/libnm-glib/nm-vpn-plugin.c
@@ -22,7 +22,7 @@
#include "config.h"
#include <signal.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-plugin.h"
#include "nm-vpn-enum-types.h"
#include "nm-utils.h"
diff --git a/libnm-glib/nm-wimax-nsp.c b/libnm-glib/nm-wimax-nsp.c
index e85fb4e370..1c40a2174f 100644
--- a/libnm-glib/nm-wimax-nsp.c
+++ b/libnm-glib/nm-wimax-nsp.c
@@ -26,7 +26,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-wimax.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-wimax-nsp.h"
#include "NetworkManager.h"
#include "nm-types-private.h"
diff --git a/libnm-glib/tests/common.c b/libnm-glib/tests/common.c
index 3989f756f1..f68c4b163e 100644
--- a/libnm-glib/tests/common.c
+++ b/libnm-glib/tests/common.c
@@ -23,7 +23,7 @@
#include <dbus/dbus.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "common.h"
diff --git a/libnm-glib/tests/common.h b/libnm-glib/tests/common.h
index 63dbe4d24f..5ffd955c49 100644
--- a/libnm-glib/tests/common.h
+++ b/libnm-glib/tests/common.h
@@ -18,7 +18,7 @@
* Copyright 2014 Red Hat, Inc.
*/
-#include "nm-glib.h"
+#include "nm-default.h"
typedef struct {
GDBusConnection *bus;
diff --git a/libnm-glib/tests/test-nm-client.c b/libnm-glib/tests/test-nm-client.c
index 067d460c91..f3a581152a 100644
--- a/libnm-glib/tests/test-nm-client.c
+++ b/libnm-glib/tests/test-nm-client.c
@@ -28,7 +28,7 @@
#include <signal.h>
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-client.h"
#include "nm-device-wifi.h"
#include "nm-device-ethernet.h"
diff --git a/libnm-glib/tests/test-remote-settings-client.c b/libnm-glib/tests/test-remote-settings-client.c
index b40a0facd9..831c1beef5 100644
--- a/libnm-glib/tests/test-remote-settings-client.c
+++ b/libnm-glib/tests/test-remote-settings-client.c
@@ -33,7 +33,7 @@
#include <nm-setting-wired.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-remote-settings.h"
#include "common.h"
diff --git a/libnm-util/crypto.c b/libnm-util/crypto.c
index 8b6198c93b..fccf05d1a6 100644
--- a/libnm-util/crypto.c
+++ b/libnm-util/crypto.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
GQuark
diff --git a/libnm-util/crypto.h b/libnm-util/crypto.h
index 36041584cf..74d1adbf6a 100644
--- a/libnm-util/crypto.h
+++ b/libnm-util/crypto.h
@@ -24,7 +24,7 @@
#ifndef __CRYPTO_H__
#define __CRYPTO_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define MD5_HASH_LEN 20
#define CIPHER_DES_EDE3_CBC "DES-EDE3-CBC"
diff --git a/libnm-util/crypto_gnutls.c b/libnm-util/crypto_gnutls.c
index 8b0c9f78cc..1ff55e91b8 100644
--- a/libnm-util/crypto_gnutls.c
+++ b/libnm-util/crypto_gnutls.c
@@ -30,7 +30,7 @@
#include <gnutls/x509.h>
#include <gnutls/pkcs12.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#define SALT_LEN 8
diff --git a/libnm-util/crypto_nss.c b/libnm-util/crypto_nss.c
index 9f60f5cc28..222c55d2dd 100644
--- a/libnm-util/crypto_nss.c
+++ b/libnm-util/crypto_nss.c
@@ -35,7 +35,7 @@
#include <ciferfam.h>
#include <p12plcy.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
static gboolean initialized = FALSE;
diff --git a/libnm-util/nm-connection.c b/libnm-util/nm-connection.c
index 2671ce3c78..0753fd1381 100644
--- a/libnm-util/nm-connection.c
+++ b/libnm-util/nm-connection.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
#include <dbus/dbus-glib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-utils.h"
#include "nm-dbus-glib-types.h"
diff --git a/libnm-util/nm-param-spec-specialized.c b/libnm-util/nm-param-spec-specialized.c
index 456c341773..50903b067d 100644
--- a/libnm-util/nm-param-spec-specialized.c
+++ b/libnm-util/nm-param-spec-specialized.c
@@ -22,7 +22,7 @@
#include "config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-param-spec-specialized.h"
struct _NMParamSpecSpecialized {
diff --git a/libnm-util/nm-param-spec-specialized.h b/libnm-util/nm-param-spec-specialized.h
index 226c301758..0f1228f69b 100644
--- a/libnm-util/nm-param-spec-specialized.h
+++ b/libnm-util/nm-param-spec-specialized.h
@@ -23,7 +23,7 @@
#ifndef NM_PARAM_SPEC_SPECIALIZED_H
#define NM_PARAM_SPEC_SPECIALIZED_H
-#include "nm-glib.h"
+#include "nm-default.h"
typedef struct _NMParamSpecSpecialized NMParamSpecSpecialized;
diff --git a/libnm-util/nm-setting-ip4-config.c b/libnm-util/nm-setting-ip4-config.c
index 838a88e0d0..9c6a76bb06 100644
--- a/libnm-util/nm-setting-ip4-config.c
+++ b/libnm-util/nm-setting-ip4-config.c
@@ -26,7 +26,7 @@
#include <dbus/dbus-glib.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-ip4-config.h"
#include "nm-param-spec-specialized.h"
#include "nm-utils.h"
diff --git a/libnm-util/nm-setting-ip6-config.c b/libnm-util/nm-setting-ip6-config.c
index 8c8055c80f..1d91648348 100644
--- a/libnm-util/nm-setting-ip6-config.c
+++ b/libnm-util/nm-setting-ip6-config.c
@@ -25,7 +25,7 @@
#include <dbus/dbus-glib.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-ip6-config.h"
#include "nm-param-spec-specialized.h"
#include "nm-utils.h"
diff --git a/libnm-util/nm-setting-private.h b/libnm-util/nm-setting-private.h
index 1b6c0377f3..6956463c3f 100644
--- a/libnm-util/nm-setting-private.h
+++ b/libnm-util/nm-setting-private.h
@@ -21,7 +21,7 @@
#ifndef NM_SETTING_PRIVATE_H
#define NM_SETTING_PRIVATE_H
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_SETTING_SECRET_FLAGS_ALL \
(NM_SETTING_SECRET_FLAG_NONE | \
diff --git a/libnm-util/nm-setting-serial.c b/libnm-util/nm-setting-serial.c
index 9524881b01..c60cffb25e 100644
--- a/libnm-util/nm-setting-serial.c
+++ b/libnm-util/nm-setting-serial.c
@@ -24,7 +24,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-serial.h"
#include "nm-setting-private.h"
diff --git a/libnm-util/nm-utils.c b/libnm-util/nm-utils.c
index 23c2cbf446..c4cc4cf212 100644
--- a/libnm-util/nm-utils.c
+++ b/libnm-util/nm-utils.c
@@ -30,7 +30,7 @@
#include <gmodule.h>
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-utils-private.h"
#include "nm-dbus-glib-types.h"
diff --git a/libnm-util/nm-value-transforms.c b/libnm-util/nm-value-transforms.c
index 6a6f5bfc0d..cc7bc50bfa 100644
--- a/libnm-util/nm-value-transforms.c
+++ b/libnm-util/nm-value-transforms.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-utils-private.h"
#include "nm-dbus-glib-types.h"
diff --git a/libnm-util/tests/test-crypto.c b/libnm-util/tests/test-crypto.c
index 290a722452..baf0cf45a8 100644
--- a/libnm-util/tests/test-crypto.c
+++ b/libnm-util/tests/test-crypto.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "crypto.h"
#include "nm-utils.h"
diff --git a/libnm-util/tests/test-general.c b/libnm-util/tests/test-general.c
index 598914d9f7..73c9dd8b5d 100644
--- a/libnm-util/tests/test-general.c
+++ b/libnm-util/tests/test-general.c
@@ -29,8 +29,7 @@
#include <sys/resource.h>
#include <nm-utils.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-setting-private.h"
#include "nm-setting-connection.h"
diff --git a/libnm-util/tests/test-libnm-linking.c b/libnm-util/tests/test-libnm-linking.c
index 66a4831410..a24498f823 100644
--- a/libnm-util/tests/test-libnm-linking.c
+++ b/libnm-util/tests/test-libnm-linking.c
@@ -23,7 +23,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
extern GType nm_state_get_type (void);
diff --git a/libnm-util/tests/test-secrets.c b/libnm-util/tests/test-secrets.c
index cc23813119..f5423d10cc 100644
--- a/libnm-util/tests/test-secrets.c
+++ b/libnm-util/tests/test-secrets.c
@@ -25,7 +25,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-connection.h"
#include "nm-setting-wired.h"
#include "nm-setting-8021x.h"
diff --git a/libnm-util/tests/test-setting-8021x.c b/libnm-util/tests/test-setting-8021x.c
index 9790669869..ad48ac614d 100644
--- a/libnm-util/tests/test-setting-8021x.c
+++ b/libnm-util/tests/test-setting-8021x.c
@@ -25,7 +25,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-connection.h"
#include "nm-setting-8021x.h"
diff --git a/libnm-util/tests/test-setting-dcb.c b/libnm-util/tests/test-setting-dcb.c
index 20a02250bf..26c4f0c6ac 100644
--- a/libnm-util/tests/test-setting-dcb.c
+++ b/libnm-util/tests/test-setting-dcb.c
@@ -23,9 +23,8 @@
#include <string.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-dcb.h"
-#include "gsystem-local-alloc.h"
#define DCB_FLAGS_ALL (NM_SETTING_DCB_FLAG_ENABLE | \
NM_SETTING_DCB_FLAG_ADVERTISE | \
diff --git a/libnm-util/tests/test-settings-defaults.c b/libnm-util/tests/test-settings-defaults.c
index 1f0ba1c294..09f112cf74 100644
--- a/libnm-util/tests/test-settings-defaults.c
+++ b/libnm-util/tests/test-settings-defaults.c
@@ -25,7 +25,7 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-8021x.h"
#include "nm-setting-cdma.h"
#include "nm-setting-connection.h"
diff --git a/libnm/nm-access-point.c b/libnm/nm-access-point.c
index 95c2cf5f5d..bd05134891 100644
--- a/libnm/nm-access-point.c
+++ b/libnm/nm-access-point.c
@@ -29,7 +29,7 @@
#include <nm-setting-wireless-security.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-access-point.h"
#include "nm-dbus-interface.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-active-connection.c b/libnm/nm-active-connection.c
index f2951fbef2..b16080278a 100644
--- a/libnm/nm-active-connection.c
+++ b/libnm/nm-active-connection.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-active-connection.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-client.c b/libnm/nm-client.c
index 5ddb70bea4..85cf4ae25a 100644
--- a/libnm/nm-client.c
+++ b/libnm/nm-client.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-client.h"
#include "nm-manager.h"
#include "nm-remote-settings.h"
diff --git a/libnm/nm-dbus-helpers.c b/libnm/nm-dbus-helpers.c
index 717f7f4602..5d876e0c6a 100644
--- a/libnm/nm-dbus-helpers.c
+++ b/libnm/nm-dbus-helpers.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-helpers.h"
#include "nm-dbus-interface.h"
diff --git a/libnm/nm-dbus-helpers.h b/libnm/nm-dbus-helpers.h
index 2b0809f81b..497739f0ac 100644
--- a/libnm/nm-dbus-helpers.h
+++ b/libnm/nm-dbus-helpers.h
@@ -22,7 +22,7 @@
#define __NM_DBUS_HELPERS_PRIVATE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-compat.h"
GBusType _nm_dbus_bus_type (void);
diff --git a/libnm/nm-device-bond.c b/libnm/nm-device-bond.c
index 8959f1e0e2..f36b761f31 100644
--- a/libnm/nm-device-bond.c
+++ b/libnm/nm-device-bond.c
@@ -27,7 +27,7 @@
#include <nm-setting-bond.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bond.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-bridge.c b/libnm/nm-device-bridge.c
index 2b9efbd0d2..4ebcec3f56 100644
--- a/libnm/nm-device-bridge.c
+++ b/libnm/nm-device-bridge.c
@@ -27,7 +27,7 @@
#include <nm-setting-bridge.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bridge.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-bt.c b/libnm/nm-device-bt.c
index 01566312f9..1a0ecb98fa 100644
--- a/libnm/nm-device-bt.c
+++ b/libnm/nm-device-bt.c
@@ -28,7 +28,7 @@
#include <nm-setting-bluetooth.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-bt.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-ethernet.c b/libnm/nm-device-ethernet.c
index 21bb52be5a..ac18d30ac7 100644
--- a/libnm/nm-device-ethernet.c
+++ b/libnm/nm-device-ethernet.c
@@ -29,7 +29,7 @@
#include <nm-setting-pppoe.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-ethernet.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-infiniband.c b/libnm/nm-device-infiniband.c
index e8436a9294..c59dd0f100 100644
--- a/libnm/nm-device-infiniband.c
+++ b/libnm/nm-device-infiniband.c
@@ -27,7 +27,7 @@
#include <nm-setting-infiniband.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-infiniband.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-modem.c b/libnm/nm-device-modem.c
index 81d7570e2b..e62b10b5f4 100644
--- a/libnm/nm-device-modem.c
+++ b/libnm/nm-device-modem.c
@@ -28,7 +28,7 @@
#include <nm-setting-gsm.h>
#include <nm-setting-cdma.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-modem.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-olpc-mesh.c b/libnm/nm-device-olpc-mesh.c
index 32b40eb01c..1cf3c33ebd 100644
--- a/libnm/nm-device-olpc-mesh.c
+++ b/libnm/nm-device-olpc-mesh.c
@@ -26,7 +26,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-olpc-mesh.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-olpc-mesh.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-team.c b/libnm/nm-device-team.c
index 5fc09cdc05..540786cd96 100644
--- a/libnm/nm-device-team.c
+++ b/libnm/nm-device-team.c
@@ -27,7 +27,7 @@
#include <nm-setting-team.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-team.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-vlan.c b/libnm/nm-device-vlan.c
index d4992426a4..0b95450ad7 100644
--- a/libnm/nm-device-vlan.c
+++ b/libnm/nm-device-vlan.c
@@ -28,7 +28,7 @@
#include <nm-setting-wired.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-vlan.h"
#include "nm-device-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device-wifi.c b/libnm/nm-device-wifi.c
index 94bb5d31ef..a6a717ffd6 100644
--- a/libnm/nm-device-wifi.c
+++ b/libnm/nm-device-wifi.c
@@ -29,7 +29,7 @@
#include <nm-setting-wireless-security.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-wifi.h"
#include "nm-access-point.h"
#include "nm-device-private.h"
diff --git a/libnm/nm-device-wimax.c b/libnm/nm-device-wimax.c
index 61406ff3c1..bc2337a9a6 100644
--- a/libnm/nm-device-wimax.c
+++ b/libnm/nm-device-wimax.c
@@ -28,7 +28,7 @@
#include <nm-setting-wimax.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-wimax.h"
#include "nm-wimax-nsp.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-device.c b/libnm/nm-device.c
index ba9234de81..5a23fab292 100644
--- a/libnm/nm-device.c
+++ b/libnm/nm-device.c
@@ -26,7 +26,7 @@
#include <glib/gi18n-lib.h>
#include <gudev/gudev.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-active-connection.h"
#include "nm-device-ethernet.h"
diff --git a/libnm/nm-manager.c b/libnm/nm-manager.c
index 48e1d83d2b..25ab1f8a24 100644
--- a/libnm/nm-manager.c
+++ b/libnm/nm-manager.c
@@ -25,7 +25,7 @@
#include <glib/gi18n-lib.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-manager.h"
#include "nm-device-ethernet.h"
#include "nm-device-wifi.h"
diff --git a/libnm/nm-object-cache.c b/libnm/nm-object-cache.c
index 09bf720cec..82af1140f1 100644
--- a/libnm/nm-object-cache.c
+++ b/libnm/nm-object-cache.c
@@ -21,7 +21,7 @@
#include "config.h"
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object-cache.h"
#include "nm-object.h"
diff --git a/libnm/nm-object-cache.h b/libnm/nm-object-cache.h
index 5e5eead0ac..c0f70f21cc 100644
--- a/libnm/nm-object-cache.h
+++ b/libnm/nm-object-cache.h
@@ -21,7 +21,7 @@
#ifndef __NM_OBJECT_CACHE_H__
#define __NM_OBJECT_CACHE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object.h"
G_BEGIN_DECLS
diff --git a/libnm/nm-object-private.h b/libnm/nm-object-private.h
index f8fcee9986..7e8066f4ee 100644
--- a/libnm/nm-object-private.h
+++ b/libnm/nm-object-private.h
@@ -21,7 +21,7 @@
#ifndef __NM_OBJECT_PRIVATE_H__
#define __NM_OBJECT_PRIVATE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-object.h"
typedef gboolean (*PropertyMarshalFunc) (NMObject *, GParamSpec *, GVariant *, gpointer);
diff --git a/libnm/nm-object.c b/libnm/nm-object.c
index b86dc7d1ba..9d6bde9d4b 100644
--- a/libnm/nm-object.c
+++ b/libnm/nm-object.c
@@ -26,7 +26,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-object.h"
#include "nm-object-cache.h"
diff --git a/libnm/nm-remote-connection.c b/libnm/nm-remote-connection.c
index a27c0404f0..83da4f9ec6 100644
--- a/libnm/nm-remote-connection.c
+++ b/libnm/nm-remote-connection.c
@@ -27,7 +27,7 @@
#include <nm-dbus-interface.h>
#include <nm-utils.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-remote-connection.h"
#include "nm-remote-connection-private.h"
#include "nm-object-private.h"
diff --git a/libnm/nm-remote-settings.c b/libnm/nm-remote-settings.c
index d6a786a6ac..999859ccbd 100644
--- a/libnm/nm-remote-settings.c
+++ b/libnm/nm-remote-settings.c
@@ -26,7 +26,7 @@
#include <nm-dbus-interface.h>
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-remote-settings.h"
#include "nm-client.h"
#include "nm-remote-connection.h"
diff --git a/libnm/nm-secret-agent-old.c b/libnm/nm-secret-agent-old.c
index 97f3bc8d59..97bb287e8c 100644
--- a/libnm/nm-secret-agent-old.c
+++ b/libnm/nm-secret-agent-old.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-secret-agent-old.h"
#include "nm-enum-types.h"
diff --git a/libnm/nm-vpn-plugin-old.c b/libnm/nm-vpn-plugin-old.c
index ff7ce834a8..a98cd43625 100644
--- a/libnm/nm-vpn-plugin-old.c
+++ b/libnm/nm-vpn-plugin-old.c
@@ -27,7 +27,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-plugin-old.h"
#include "nm-enum-types.h"
#include "nm-utils.h"
diff --git a/libnm/nm-wimax-nsp.c b/libnm/nm-wimax-nsp.c
index 3fa4ddf019..9fbc6ea1d3 100644
--- a/libnm/nm-wimax-nsp.c
+++ b/libnm/nm-wimax-nsp.c
@@ -26,7 +26,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-wimax.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-wimax-nsp.h"
#include "nm-dbus-interface.h"
#include "nm-object-private.h"
diff --git a/libnm/tests/common.c b/libnm/tests/common.c
index 833d7fd004..877488eeee 100644
--- a/libnm/tests/common.c
+++ b/libnm/tests/common.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManager.h"
#include "nm-dbus-compat.h"
diff --git a/libnm/tests/common.h b/libnm/tests/common.h
index 1fd3f464c6..4919d3fda1 100644
--- a/libnm/tests/common.h
+++ b/libnm/tests/common.h
@@ -20,7 +20,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
typedef struct {
GDBusConnection *bus;
diff --git a/libnm/tests/test-nm-client.c b/libnm/tests/test-nm-client.c
index 55b005066e..ccd952c96f 100644
--- a/libnm/tests/test-nm-client.c
+++ b/libnm/tests/test-nm-client.c
@@ -26,7 +26,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "nm-test-utils.h"
diff --git a/libnm/tests/test-remote-settings-client.c b/libnm/tests/test-remote-settings-client.c
index 2f47b53267..66fbf2bfbc 100644
--- a/libnm/tests/test-remote-settings-client.c
+++ b/libnm/tests/test-remote-settings-client.c
@@ -26,7 +26,7 @@
#include <NetworkManager.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "nm-test-utils.h"
diff --git a/libnm/tests/test-secret-agent.c b/libnm/tests/test-secret-agent.c
index 28a6c9920d..ed2e2dcb50 100644
--- a/libnm/tests/test-secret-agent.c
+++ b/libnm/tests/test-secret-agent.c
@@ -27,7 +27,7 @@
#include <NetworkManager.h>
#include <nm-secret-agent-old.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "nm-test-utils.h"
diff --git a/src/Makefile.am b/src/Makefile.am
index 10439446a0..e92d9f7506 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -59,7 +59,9 @@ SYSTEMD_NM_CFLAGS = \
-I$(top_srcdir)/src/systemd/src/libsystemd-network \
-I$(top_srcdir)/src/systemd/src/basic \
-I$(top_srcdir)/src/systemd/src/shared \
- -I$(top_srcdir)/src/systemd
+ -I$(top_srcdir)/src/systemd \
+ -I$(top_srcdir)/libnm-core \
+ -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON
libsystemd_nm_la_SOURCES = \
systemd/src/libsystemd/sd-id128/sd-id128.c \
diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c
index c9a7e13fed..d8e5fed1bd 100644
--- a/src/NetworkManagerUtils.c
+++ b/src/NetworkManagerUtils.c
@@ -33,12 +33,11 @@
#include <linux/if.h>
#include <linux/if_infiniband.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-platform.h"
#include "nm-utils.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
#include "nm-device.h"
#include "nm-setting-connection.h"
#include "nm-setting-ip4-config.h"
@@ -47,7 +46,6 @@
#include "nm-setting-wireless-security.h"
#include "nm-auth-utils.h"
#include "nm-dbus-glib-types.h"
-#include "gsystem-local-alloc.h"
/*
* Some toolchains (E.G. uClibc 0.9.33 and earlier) don't export
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
index 118534b8b3..6a8121718e 100644
--- a/src/NetworkManagerUtils.h
+++ b/src/NetworkManagerUtils.h
@@ -25,9 +25,8 @@
#include <stdio.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
-#include "nm-types.h"
/*****************************************************************************/
diff --git a/src/devices/adsl/nm-atm-manager.c b/src/devices/adsl/nm-atm-manager.c
index 1718cdd8dc..6a33d21b1e 100644
--- a/src/devices/adsl/nm-atm-manager.c
+++ b/src/devices/adsl/nm-atm-manager.c
@@ -24,12 +24,11 @@
#include <gudev/gudev.h>
#include <gmodule.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-atm-manager.h"
#include "nm-setting-adsl.h"
#include "nm-device-adsl.h"
#include "nm-device-factory.h"
-#include "nm-logging.h"
typedef struct {
GUdevClient *client;
diff --git a/src/devices/adsl/nm-atm-manager.h b/src/devices/adsl/nm-atm-manager.h
index 16dc332e14..fe0bc14c4e 100644
--- a/src/devices/adsl/nm-atm-manager.h
+++ b/src/devices/adsl/nm-atm-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_ATM_MANAGER_H__
#define __NETWORKMANAGER_ATM_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/devices/adsl/nm-device-adsl.c b/src/devices/adsl/nm-device-adsl.c
index a557a0c88f..34390282d7 100644
--- a/src/devices/adsl/nm-device-adsl.c
+++ b/src/devices/adsl/nm-device-adsl.c
@@ -33,11 +33,10 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-adsl.h"
#include "nm-device-private.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
#include "nm-enum-types.h"
#include "nm-platform.h"
diff --git a/src/devices/adsl/nm-device-adsl.h b/src/devices/adsl/nm-device-adsl.h
index 74e29d5dd1..3587bfc75f 100644
--- a/src/devices/adsl/nm-device-adsl.h
+++ b/src/devices/adsl/nm-device-adsl.h
@@ -23,7 +23,7 @@
#define __NETWORKMANAGER_DEVICE_ADSL_H__
// Parent class
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device.h"
G_BEGIN_DECLS
diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c
index 39afd091a5..ba021797ea 100644
--- a/src/devices/bluetooth/nm-bluez-device.c
+++ b/src/devices/bluetooth/nm-bluez-device.c
@@ -24,13 +24,12 @@
#include <glib/gi18n.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-bt-error.h"
#include "nm-bluez-common.h"
#include "nm-bluez-device.h"
-#include "nm-logging.h"
#include "nm-settings-connection.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/bluetooth/nm-bluez-device.h b/src/devices/bluetooth/nm-bluez-device.h
index 01052c8d6f..0e54fcb067 100644
--- a/src/devices/bluetooth/nm-bluez-device.h
+++ b/src/devices/bluetooth/nm-bluez-device.h
@@ -23,7 +23,7 @@
#include "config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-connection-provider.h"
diff --git a/src/devices/bluetooth/nm-bluez-manager.c b/src/devices/bluetooth/nm-bluez-manager.c
index ed424bd2f6..7550d4ed86 100644
--- a/src/devices/bluetooth/nm-bluez-manager.c
+++ b/src/devices/bluetooth/nm-bluez-manager.c
@@ -25,8 +25,7 @@
#include <stdlib.h>
#include <gmodule.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-device-factory.h"
#include "nm-setting-bluetooth.h"
diff --git a/src/devices/bluetooth/nm-bluez-manager.h b/src/devices/bluetooth/nm-bluez-manager.h
index 97b9ac66cf..1f5597d831 100644
--- a/src/devices/bluetooth/nm-bluez-manager.h
+++ b/src/devices/bluetooth/nm-bluez-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_BLUEZ_MANAGER_H__
#define __NETWORKMANAGER_BLUEZ_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/devices/bluetooth/nm-bluez4-adapter.c b/src/devices/bluetooth/nm-bluez4-adapter.c
index e02e72095c..04ae833ae9 100644
--- a/src/devices/bluetooth/nm-bluez4-adapter.c
+++ b/src/devices/bluetooth/nm-bluez4-adapter.c
@@ -22,12 +22,11 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-bluez4-adapter.h"
#include "nm-bluez-device.h"
#include "nm-bluez-common.h"
-#include "nm-logging.h"
#include "nm-core-internal.h"
G_DEFINE_TYPE (NMBluez4Adapter, nm_bluez4_adapter, G_TYPE_OBJECT)
diff --git a/src/devices/bluetooth/nm-bluez4-adapter.h b/src/devices/bluetooth/nm-bluez4-adapter.h
index 98d19b22ef..a8a2bfb4d2 100644
--- a/src/devices/bluetooth/nm-bluez4-adapter.h
+++ b/src/devices/bluetooth/nm-bluez4-adapter.h
@@ -22,7 +22,7 @@
#define __NETWORKMANAGER_BLUEZ4_ADAPTER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-bluez-device.h"
#include "nm-connection-provider.h"
diff --git a/src/devices/bluetooth/nm-bluez4-manager.c b/src/devices/bluetooth/nm-bluez4-manager.c
index 9df80bf158..c5ba120c6c 100644
--- a/src/devices/bluetooth/nm-bluez4-manager.c
+++ b/src/devices/bluetooth/nm-bluez4-manager.c
@@ -25,7 +25,7 @@
#include <string.h>
#include <stdlib.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-bluez4-manager.h"
#include "nm-bluez4-adapter.h"
diff --git a/src/devices/bluetooth/nm-bluez4-manager.h b/src/devices/bluetooth/nm-bluez4-manager.h
index e5f526461b..f6bf76586b 100644
--- a/src/devices/bluetooth/nm-bluez4-manager.h
+++ b/src/devices/bluetooth/nm-bluez4-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_BLUEZ4_MANAGER_H__
#define __NETWORKMANAGER_BLUEZ4_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection-provider.h"
G_BEGIN_DECLS
diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c
index a97eaa770f..9ec6a089fc 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.c
+++ b/src/devices/bluetooth/nm-bluez5-dun.c
@@ -32,7 +32,7 @@
#include "nm-bluez5-dun.h"
#include "nm-bt-error.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
struct _NMBluez5DunContext {
diff --git a/src/devices/bluetooth/nm-bluez5-dun.h b/src/devices/bluetooth/nm-bluez5-dun.h
index bc2f6c7aa2..c59cbb80f8 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.h
+++ b/src/devices/bluetooth/nm-bluez5-dun.h
@@ -21,7 +21,7 @@
#ifndef _NM_BLUEZ5_UTILS_H_
#define _NM_BLUEZ5_UTILS_H_
-#include "nm-glib.h"
+#include "nm-default.h"
typedef struct _NMBluez5DunContext NMBluez5DunContext;
diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c
index ceb8d484d6..c9f5828dfb 100644
--- a/src/devices/bluetooth/nm-bluez5-manager.c
+++ b/src/devices/bluetooth/nm-bluez5-manager.c
@@ -26,8 +26,7 @@
#include <string.h>
#include <stdlib.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-bluez5-manager.h"
#include "nm-bluez-device.h"
diff --git a/src/devices/bluetooth/nm-bluez5-manager.h b/src/devices/bluetooth/nm-bluez5-manager.h
index faf6ce6692..ae5512f89e 100644
--- a/src/devices/bluetooth/nm-bluez5-manager.h
+++ b/src/devices/bluetooth/nm-bluez5-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_BLUEZ5_MANAGER_H__
#define __NETWORKMANAGER_BLUEZ5_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection-provider.h"
G_BEGIN_DECLS
diff --git a/src/devices/bluetooth/nm-bt-error.c b/src/devices/bluetooth/nm-bt-error.c
index 11aabbdb57..9c35d8b63b 100644
--- a/src/devices/bluetooth/nm-bt-error.c
+++ b/src/devices/bluetooth/nm-bt-error.c
@@ -20,7 +20,7 @@
#include "config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-bt-error.h"
GQuark
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c
index 55b8d0aef5..f0c94f8fd3 100644
--- a/src/devices/bluetooth/nm-device-bt.c
+++ b/src/devices/bluetooth/nm-device-bt.c
@@ -25,12 +25,11 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-bluez-common.h"
#include "nm-bluez-device.h"
#include "nm-device-bt.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
#include "ppp-manager/nm-ppp-manager.h"
#include "nm-setting-connection.h"
#include "nm-setting-bluetooth.h"
diff --git a/src/devices/nm-device-bond.c b/src/devices/nm-device-bond.c
index b352e513dd..822062ae12 100644
--- a/src/devices/nm-device-bond.c
+++ b/src/devices/nm-device-bond.c
@@ -25,10 +25,8 @@
#include <errno.h>
#include <stdlib.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-device-bond.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-platform.h"
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index b031a43e39..a1fbc60970 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -24,10 +24,8 @@
#include <stdlib.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-device-bridge.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-dbus-glib-types.h"
diff --git a/src/devices/nm-device-bridge.h b/src/devices/nm-device-bridge.h
index e30c48c2dc..1d0bf7ca0c 100644
--- a/src/devices/nm-device-bridge.h
+++ b/src/devices/nm-device-bridge.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DEVICE_BRIDGE_H__
#define __NETWORKMANAGER_DEVICE_BRIDGE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device.h"
G_BEGIN_DECLS
diff --git a/src/devices/nm-device-ethernet-utils.c b/src/devices/nm-device-ethernet-utils.c
index 7c226f065e..886edf4473 100644
--- a/src/devices/nm-device-ethernet-utils.c
+++ b/src/devices/nm-device-ethernet-utils.c
@@ -22,7 +22,7 @@
#include <glib/gi18n.h>
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-ethernet-utils.h"
char *
diff --git a/src/devices/nm-device-ethernet-utils.h b/src/devices/nm-device-ethernet-utils.h
index 1ca181b2b2..31d645d851 100644
--- a/src/devices/nm-device-ethernet-utils.h
+++ b/src/devices/nm-device-ethernet-utils.h
@@ -19,7 +19,7 @@
#ifndef __NETWORKMANAGER_DEVICE_ETHERNET_UTILS_H__
#define __NETWORKMANAGER_DEVICE_ETHERNET_UTILS_H__
-#include "nm-glib.h"
+#include "nm-default.h"
char *nm_device_ethernet_utils_get_default_wired_name (const GSList *connections);
diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c
index 6caea4974c..fc49fd1b69 100644
--- a/src/devices/nm-device-ethernet.c
+++ b/src/devices/nm-device-ethernet.c
@@ -30,7 +30,7 @@
#include <gudev/gudev.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-ethernet.h"
#include "nm-device-private.h"
#include "nm-activation-request.h"
@@ -39,7 +39,6 @@
#include "nm-supplicant-interface.h"
#include "nm-supplicant-config.h"
#include "ppp-manager/nm-ppp-manager.h"
-#include "nm-logging.h"
#include "nm-enum-types.h"
#include "nm-platform.h"
#include "nm-platform-utils.h"
@@ -51,7 +50,6 @@
#include "nm-device-factory.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "nm-device-ethernet-glue.h"
diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c
index 7f2468bd0d..bf3f25c606 100644
--- a/src/devices/nm-device-factory.c
+++ b/src/devices/nm-device-factory.c
@@ -27,7 +27,7 @@
#include <gmodule.h>
#include "nm-device-factory.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
const NMLinkType _nm_device_factory_no_default_links[] = { NM_LINK_TYPE_NONE };
diff --git a/src/devices/nm-device-gre.c b/src/devices/nm-device-gre.c
index 47169897be..c26190ab56 100644
--- a/src/devices/nm-device-gre.c
+++ b/src/devices/nm-device-gre.c
@@ -25,7 +25,7 @@
#include "nm-device-gre.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index ce531655bc..a3fcd75418 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -24,9 +24,8 @@
#include <linux/if_infiniband.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-infiniband.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-enum-types.h"
diff --git a/src/devices/nm-device-logging.h b/src/devices/nm-device-logging.h
index acca32e556..7b8598d82f 100644
--- a/src/devices/nm-device-logging.h
+++ b/src/devices/nm-device-logging.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DEVICE_LOGGING_H__
#define __NETWORKMANAGER_DEVICE_LOGGING_H__
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-device.h"
#define _LOG_DECLARE_SELF(t) \
diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c
index 51d75b5bc9..6f331571ca 100644
--- a/src/devices/nm-device-macvlan.c
+++ b/src/devices/nm-device-macvlan.c
@@ -24,7 +24,7 @@
#include "nm-device-macvlan.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-private.h b/src/devices/nm-device-private.h
index c4e3fe0de3..33f51bfb6e 100644
--- a/src/devices/nm-device-private.h
+++ b/src/devices/nm-device-private.h
@@ -24,7 +24,7 @@
#include "nm-device.h"
-#include "nm-logging.h"
+#include "nm-default.h"
/* This file should only be used by subclasses of NMDevice */
diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c
index e2af6b279f..6c6ed52113 100644
--- a/src/devices/nm-device-tun.c
+++ b/src/devices/nm-device-tun.c
@@ -25,7 +25,7 @@
#include "nm-device-tun.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-veth.c b/src/devices/nm-device-veth.c
index 1a3a65443d..c4666a217e 100644
--- a/src/devices/nm-device-veth.c
+++ b/src/devices/nm-device-veth.c
@@ -29,7 +29,7 @@
#include "nm-device-veth.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c
index d89bf625b5..defa3b81a3 100644
--- a/src/devices/nm-device-vlan.c
+++ b/src/devices/nm-device-vlan.c
@@ -24,10 +24,9 @@
#include <sys/socket.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-vlan.h"
#include "nm-manager.h"
-#include "nm-logging.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
@@ -39,7 +38,6 @@
#include "nm-device-factory.h"
#include "nm-manager.h"
#include "nm-core-internal.h"
-#include "gsystem-local-alloc.h"
#include "nm-device-vlan-glue.h"
diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c
index 4f46f6aa8d..68dbd952a1 100644
--- a/src/devices/nm-device-vxlan.c
+++ b/src/devices/nm-device-vxlan.c
@@ -24,7 +24,7 @@
#include "nm-device-vxlan.h"
#include "nm-device-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-utils.h"
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 46d90cfa7e..c2c8690d53 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -35,8 +35,7 @@
#include <fcntl.h>
#include <netlink/route/addr.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-private.h"
#include "NetworkManagerUtils.h"
@@ -45,7 +44,6 @@
#include "nm-rdisc.h"
#include "nm-lndp-rdisc.h"
#include "nm-dhcp-manager.h"
-#include "nm-logging.h"
#include "nm-activation-request.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h
index 9e0dcac717..8c26d161fb 100644
--- a/src/devices/nm-device.h
+++ b/src/devices/nm-device.h
@@ -27,7 +27,7 @@
#include "nm-exported-object.h"
#include "nm-dbus-interface.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-rfkill-manager.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c
index 145b854f69..5b5b760e00 100644
--- a/src/devices/team/nm-device-team.c
+++ b/src/devices/team/nm-device-team.c
@@ -28,9 +28,8 @@
#include <teamdctl.h>
#include <stdlib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-team.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-platform.h"
@@ -38,7 +37,6 @@
#include "nm-enum-types.h"
#include "nm-team-enum-types.h"
#include "nm-core-internal.h"
-#include "gsystem-local-alloc.h"
#include "nm-device-team-glue.h"
diff --git a/src/devices/team/nm-team-factory.c b/src/devices/team/nm-team-factory.c
index 949e01d15d..8591782495 100644
--- a/src/devices/team/nm-team-factory.c
+++ b/src/devices/team/nm-team-factory.c
@@ -26,7 +26,7 @@
#include "nm-device-factory.h"
#include "nm-team-factory.h"
#include "nm-device-team.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
#include "nm-core-internal.h"
diff --git a/src/devices/team/nm-team-factory.h b/src/devices/team/nm-team-factory.h
index 35cee90e1d..9049478dc1 100644
--- a/src/devices/team/nm-team-factory.h
+++ b/src/devices/team/nm-team-factory.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_TEAM_FACTORY_H__
#define __NETWORKMANAGER_TEAM_FACTORY_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_TYPE_TEAM_FACTORY (nm_team_factory_get_type ())
#define NM_TEAM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_TEAM_FACTORY, NMTeamFactory))
diff --git a/src/devices/wifi/nm-device-olpc-mesh.c b/src/devices/wifi/nm-device-olpc-mesh.c
index f7fffd272e..7e37a2cf81 100644
--- a/src/devices/wifi/nm-device-olpc-mesh.c
+++ b/src/devices/wifi/nm-device-olpc-mesh.c
@@ -37,13 +37,12 @@
#include <sys/ioctl.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-wifi.h"
#include "nm-device-olpc-mesh.h"
#include "nm-device-private.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-activation-request.h"
#include "nm-setting-connection.h"
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index ed7a402463..42326d5192 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -28,13 +28,11 @@
#include <unistd.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-wifi.h"
#include "nm-device-private.h"
#include "nm-utils.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
#include "NetworkManagerUtils.h"
#include "nm-activation-request.h"
#include "nm-supplicant-manager.h"
diff --git a/src/devices/wifi/nm-wifi-ap-utils.c b/src/devices/wifi/nm-wifi-ap-utils.c
index 9ac7052e96..d8b87d2369 100644
--- a/src/devices/wifi/nm-wifi-ap-utils.c
+++ b/src/devices/wifi/nm-wifi-ap-utils.c
@@ -25,6 +25,7 @@
#include <glib/gi18n.h>
+#include "nm-default.h"
#include "nm-wifi-ap-utils.h"
#include "nm-utils.h"
diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c
index 7166e1f8bd..6502e88326 100644
--- a/src/devices/wifi/nm-wifi-ap.c
+++ b/src/devices/wifi/nm-wifi-ap.c
@@ -24,16 +24,14 @@
#include <string.h>
#include <stdlib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-wifi-ap.h"
#include "nm-wifi-ap-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-core-internal.h"
#include "nm-setting-wireless.h"
-#include "gsystem-local-alloc.h"
#include "nm-access-point-glue.h"
diff --git a/src/devices/wifi/tests/test-wifi-ap-utils.c b/src/devices/wifi/tests/test-wifi-ap-utils.c
index b7323b845d..9b0092c3d9 100644
--- a/src/devices/wifi/tests/test-wifi-ap-utils.c
+++ b/src/devices/wifi/tests/test-wifi-ap-utils.c
@@ -22,12 +22,11 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-wifi-ap-utils.h"
#include "nm-dbus-glib-types.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c
index bd115b429a..9fdcef46ea 100644
--- a/src/devices/wwan/nm-device-modem.c
+++ b/src/devices/wwan/nm-device-modem.c
@@ -22,12 +22,11 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-modem.h"
#include "nm-modem.h"
#include "nm-device-private.h"
#include "nm-rfkill-manager.h"
-#include "nm-logging.h"
#include "nm-settings-connection.h"
#include "nm-modem-broadband.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c
index 2c07b36f65..fc782481fd 100644
--- a/src/devices/wwan/nm-modem-broadband.c
+++ b/src/devices/wwan/nm-modem-broadband.c
@@ -27,7 +27,7 @@
#include "nm-modem-broadband.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-platform.h"
diff --git a/src/devices/wwan/nm-modem-manager.c b/src/devices/wwan/nm-modem-manager.c
index 92ac0a189c..c472bc4206 100644
--- a/src/devices/wwan/nm-modem-manager.c
+++ b/src/devices/wwan/nm-modem-manager.c
@@ -27,7 +27,7 @@
#include <libmm-glib.h>
#include "nm-modem-manager.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-modem.h"
#include "nm-modem-broadband.h"
diff --git a/src/devices/wwan/nm-modem.c b/src/devices/wwan/nm-modem.c
index b74d72c0eb..be35ffd31f 100644
--- a/src/devices/wwan/nm-modem.c
+++ b/src/devices/wwan/nm-modem.c
@@ -25,7 +25,7 @@
#include "nm-modem.h"
#include "nm-platform.h"
#include "nm-setting-connection.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-dbus-glib-types.h"
diff --git a/src/devices/wwan/nm-modem.h b/src/devices/wwan/nm-modem.h
index 0889f7231a..35b80ba15b 100644
--- a/src/devices/wwan/nm-modem.h
+++ b/src/devices/wwan/nm-modem.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_MODEM_H__
#define __NETWORKMANAGER_MODEM_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "ppp-manager/nm-ppp-manager.h"
#include "nm-device.h"
diff --git a/src/devices/wwan/nm-wwan-factory.c b/src/devices/wwan/nm-wwan-factory.c
index 863c5828fe..479b5a94cc 100644
--- a/src/devices/wwan/nm-wwan-factory.c
+++ b/src/devices/wwan/nm-wwan-factory.c
@@ -29,7 +29,7 @@
#include "nm-setting-cdma.h"
#include "nm-modem-manager.h"
#include "nm-device-modem.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
static GType nm_wwan_factory_get_type (void);
diff --git a/src/devices/wwan/nm-wwan-factory.h b/src/devices/wwan/nm-wwan-factory.h
index fc85a92ca8..78031e60f6 100644
--- a/src/devices/wwan/nm-wwan-factory.h
+++ b/src/devices/wwan/nm-wwan-factory.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_WWAN_FACTORY_H__
#define __NETWORKMANAGER_WWAN_FACTORY_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_TYPE_WWAN_FACTORY (nm_wwan_factory_get_type ())
#define NM_WWAN_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_WWAN_FACTORY, NMWwanFactory))
diff --git a/src/dhcp-manager/Makefile.am b/src/dhcp-manager/Makefile.am
index b56072409a..332f2d3a40 100644
--- a/src/dhcp-manager/Makefile.am
+++ b/src/dhcp-manager/Makefile.am
@@ -5,6 +5,7 @@ nm_dhcp_helper_SOURCES = nm-dhcp-helper.c
nm_dhcp_helper_CPPFLAGS = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/include \
+ -I$(top_srcdir)/libnm-core \
-DG_LOG_DOMAIN=\""nm-dhcp-helper"\" \
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
-DNMRUNDIR=\"$(nmrundir)\"
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c
index c00782f963..1032812b9f 100644
--- a/src/dhcp-manager/nm-dhcp-client.c
+++ b/src/dhcp-manager/nm-dhcp-client.c
@@ -28,10 +28,9 @@
#include <stdlib.h>
#include <uuid/uuid.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-dbus-glib-types.h"
#include "nm-dhcp-client.h"
#include "nm-dhcp-utils.h"
diff --git a/src/dhcp-manager/nm-dhcp-client.h b/src/dhcp-manager/nm-dhcp-client.h
index b5f30c5ed7..6e6e0fe89d 100644
--- a/src/dhcp-manager/nm-dhcp-client.h
+++ b/src/dhcp-manager/nm-dhcp-client.h
@@ -24,7 +24,7 @@
#include <nm-ip4-config.h>
#include <nm-ip6-config.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_TYPE_DHCP_CLIENT (nm_dhcp_client_get_type ())
#define NM_DHCP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DHCP_CLIENT, NMDhcpClient))
diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
index 4c889e73ac..3456ce7df3 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
@@ -24,14 +24,13 @@
#include <ctype.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-dhclient-utils.h"
#include "nm-dhcp-utils.h"
#include "nm-ip4-config.h"
#include "nm-utils.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "nm-macros-internal.h"
#define CLIENTID_TAG "send dhcp-client-identifier"
diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.h b/src/dhcp-manager/nm-dhcp-dhclient-utils.h
index 70ad7a17f1..970c6bd1af 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.h
+++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.h
@@ -22,7 +22,7 @@
#include <nm-setting-ip4-config.h>
#include <nm-setting-ip6-config.h>
-#include "nm-glib.h"
+#include "nm-default.h"
char *nm_dhcp_dhclient_create_config (const char *interface,
gboolean is_ip6,
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c
index d6dde54cc8..4fcba5ce6a 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c
@@ -34,15 +34,13 @@
#include <arpa/inet.h>
#include <ctype.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-dhclient.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-dhcp-dhclient-utils.h"
#include "nm-dhcp-manager.h"
#include "NetworkManagerUtils.h"
#include "nm-dhcp-listener.h"
-#include "gsystem-local-alloc.h"
G_DEFINE_TYPE (NMDhcpDhclient, nm_dhcp_dhclient, NM_TYPE_DHCP_CLIENT)
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.h b/src/dhcp-manager/nm-dhcp-dhclient.h
index dba9011160..3e8d9c5d8e 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient.h
+++ b/src/dhcp-manager/nm-dhcp-dhclient.h
@@ -19,7 +19,7 @@
#ifndef __NETWORKMANAGER_DHCP_DHCLIENT_H__
#define __NETWORKMANAGER_DHCP_DHCLIENT_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-client.h"
#define NM_TYPE_DHCP_DHCLIENT (nm_dhcp_dhclient_get_type ())
diff --git a/src/dhcp-manager/nm-dhcp-dhcpcd.c b/src/dhcp-manager/nm-dhcp-dhcpcd.c
index 716ec84fc9..955e616061 100644
--- a/src/dhcp-manager/nm-dhcp-dhcpcd.c
+++ b/src/dhcp-manager/nm-dhcp-dhcpcd.c
@@ -32,11 +32,10 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-dhcpcd.h"
#include "nm-dhcp-manager.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-dhcp-listener.h"
diff --git a/src/dhcp-manager/nm-dhcp-helper.c b/src/dhcp-manager/nm-dhcp-helper.c
index dde95aa086..4086094c90 100644
--- a/src/dhcp-manager/nm-dhcp-helper.c
+++ b/src/dhcp-manager/nm-dhcp-helper.c
@@ -25,7 +25,7 @@
#include <string.h>
#include <signal.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_DHCP_CLIENT_DBUS_IFACE "org.freedesktop.nm_dhcp_client"
diff --git a/src/dhcp-manager/nm-dhcp-listener.c b/src/dhcp-manager/nm-dhcp-listener.c
index d675dcfcd4..1fb8e361c8 100644
--- a/src/dhcp-manager/nm-dhcp-listener.c
+++ b/src/dhcp-manager/nm-dhcp-listener.c
@@ -29,10 +29,9 @@
#include <errno.h>
#include <unistd.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-listener.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
#include "nm-bus-manager.h"
#include "nm-dbus-glib-types.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dhcp-manager/nm-dhcp-listener.h b/src/dhcp-manager/nm-dhcp-listener.h
index 015c8eb53d..b2631acc5e 100644
--- a/src/dhcp-manager/nm-dhcp-listener.h
+++ b/src/dhcp-manager/nm-dhcp-listener.h
@@ -19,7 +19,7 @@
#ifndef __NETWORKMANAGER_DHCP_LISTENER_H__
#define __NETWORKMANAGER_DHCP_LISTENER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_TYPE_DHCP_LISTENER (nm_dhcp_listener_get_type ())
#define NM_DHCP_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DHCP_LISTENER, NMDhcpListener))
diff --git a/src/dhcp-manager/nm-dhcp-manager.c b/src/dhcp-manager/nm-dhcp-manager.c
index 0f2b8faeb3..f7ccc01c4c 100644
--- a/src/dhcp-manager/nm-dhcp-manager.c
+++ b/src/dhcp-manager/nm-dhcp-manager.c
@@ -33,12 +33,11 @@
#include <fcntl.h>
#include <stdio.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-manager.h"
#include "nm-dhcp-dhclient.h"
#include "nm-dhcp-dhcpcd.h"
#include "nm-dhcp-systemd.h"
-#include "nm-logging.h"
#include "nm-config.h"
#include "nm-dbus-glib-types.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dhcp-manager/nm-dhcp-manager.h b/src/dhcp-manager/nm-dhcp-manager.h
index 4286d9f905..8a298f046d 100644
--- a/src/dhcp-manager/nm-dhcp-manager.h
+++ b/src/dhcp-manager/nm-dhcp-manager.h
@@ -23,7 +23,7 @@
#define __NETWORKMANAGER_DHCP_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-client.h"
#include "nm-ip4-config.h"
#include "nm-dhcp4-config.h"
diff --git a/src/dhcp-manager/nm-dhcp-systemd.c b/src/dhcp-manager/nm-dhcp-systemd.c
index 1ad68a5a36..6fc8b6ef1c 100644
--- a/src/dhcp-manager/nm-dhcp-systemd.c
+++ b/src/dhcp-manager/nm-dhcp-systemd.c
@@ -29,13 +29,11 @@
#include <ctype.h>
#include <net/if_arp.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-systemd.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-dhcp-utils.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "nm-platform.h"
#include "nm-sd-adapt.h"
diff --git a/src/dhcp-manager/nm-dhcp-utils.c b/src/dhcp-manager/nm-dhcp-utils.c
index 85fd25746b..cdf26fcae9 100644
--- a/src/dhcp-manager/nm-dhcp-utils.c
+++ b/src/dhcp-manager/nm-dhcp-utils.c
@@ -24,8 +24,7 @@
#include <unistd.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-dhcp-utils.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dhcp-manager/nm-dhcp-utils.h b/src/dhcp-manager/nm-dhcp-utils.h
index fd9e8e24df..056982c382 100644
--- a/src/dhcp-manager/nm-dhcp-utils.h
+++ b/src/dhcp-manager/nm-dhcp-utils.h
@@ -24,7 +24,7 @@
#include <nm-ip4-config.h>
#include <nm-ip6-config.h>
-#include "nm-glib.h"
+#include "nm-default.h"
NMIP4Config *nm_dhcp_utils_ip4_config_from_options (int ifindex,
const char *iface,
diff --git a/src/dhcp-manager/tests/test-dhcp-dhclient.c b/src/dhcp-manager/tests/test-dhcp-dhclient.c
index 14fbe4fead..15817addb4 100644
--- a/src/dhcp-manager/tests/test-dhcp-dhclient.c
+++ b/src/dhcp-manager/tests/test-dhcp-dhclient.c
@@ -24,8 +24,7 @@
#include <unistd.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-dhcp-dhclient-utils.h"
#include "nm-dhcp-utils.h"
@@ -33,7 +32,6 @@
#include "nm-ip4-config.h"
#include "nm-platform.h"
#include "nm-macros-internal.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/dhcp-manager/tests/test-dhcp-utils.c b/src/dhcp-manager/tests/test-dhcp-utils.c
index 3bc879812f..0ec105257c 100644
--- a/src/dhcp-manager/tests/test-dhcp-utils.c
+++ b/src/dhcp-manager/tests/test-dhcp-utils.c
@@ -25,9 +25,8 @@
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dhcp-utils.h"
-#include "nm-logging.h"
#include "nm-platform.h"
#include "nm-test-utils.h"
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index d71a0eb389..62c581e1a4 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -29,10 +29,9 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dns-dnsmasq.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
#include "nm-dns-utils.h"
diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c
index 59cddb9a6a..13b41856f1 100644
--- a/src/dns-manager/nm-dns-manager.c
+++ b/src/dns-manager/nm-dns-manager.c
@@ -37,13 +37,12 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-core-internal.h"
#include "nm-dns-manager.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-config.h"
diff --git a/src/dns-manager/nm-dns-manager.h b/src/dns-manager/nm-dns-manager.h
index ef1272b985..937238f579 100644
--- a/src/dns-manager/nm-dns-manager.h
+++ b/src/dns-manager/nm-dns-manager.h
@@ -24,7 +24,7 @@
#ifndef __NETWORKMANAGER_DNS_MANAGER_H__
#define __NETWORKMANAGER_DNS_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
diff --git a/src/dns-manager/nm-dns-plugin.c b/src/dns-manager/nm-dns-plugin.c
index c384c66342..a53a7fca0a 100644
--- a/src/dns-manager/nm-dns-plugin.c
+++ b/src/dns-manager/nm-dns-plugin.c
@@ -25,9 +25,8 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dns-plugin.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
typedef struct {
diff --git a/src/dns-manager/nm-dns-plugin.h b/src/dns-manager/nm-dns-plugin.h
index 3e7ce5b174..0a46759850 100644
--- a/src/dns-manager/nm-dns-plugin.h
+++ b/src/dns-manager/nm-dns-plugin.h
@@ -19,7 +19,7 @@
#ifndef __NETWORKMANAGER_DNS_PLUGIN_H__
#define __NETWORKMANAGER_DNS_PLUGIN_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define NM_TYPE_DNS_PLUGIN (nm_dns_plugin_get_type ())
#define NM_DNS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DNS_PLUGIN, NMDnsPlugin))
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.c b/src/dnsmasq-manager/nm-dnsmasq-manager.c
index ea4a2b258e..b53d37ec4c 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-manager.c
+++ b/src/dnsmasq-manager/nm-dnsmasq-manager.c
@@ -28,10 +28,9 @@
#include <arpa/inet.h>
#include <stdlib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dnsmasq-manager.h"
#include "nm-dnsmasq-utils.h"
-#include "nm-logging.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.h b/src/dnsmasq-manager/nm-dnsmasq-manager.h
index 4b43658bef..f7d951b446 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-manager.h
+++ b/src/dnsmasq-manager/nm-dnsmasq-manager.h
@@ -22,7 +22,7 @@
#define __NETWORKMANAGER_DNSMASQ_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-ip4-config.h"
#define NM_TYPE_DNSMASQ_MANAGER (nm_dnsmasq_manager_get_type ())
diff --git a/src/dnsmasq-manager/nm-dnsmasq-utils.h b/src/dnsmasq-manager/nm-dnsmasq-utils.h
index ed0b9ebc81..43d0b9a30b 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-utils.h
+++ b/src/dnsmasq-manager/nm-dnsmasq-utils.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DNSMASQ_UTILS_H__
#define __NETWORKMANAGER_DNSMASQ_UTILS_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-platform.h"
gboolean nm_dnsmasq_utils_get_range (const NMPlatformIP4Address *addr,
diff --git a/src/dnsmasq-manager/tests/test-dnsmasq-utils.c b/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
index e36500d2d4..8cc5fa9751 100644
--- a/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
+++ b/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
@@ -22,9 +22,8 @@
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dnsmasq-utils.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/main-utils.c b/src/main-utils.c
index 94437b8b63..1c24f405ab 100644
--- a/src/main-utils.c
+++ b/src/main-utils.c
@@ -33,11 +33,9 @@
#include <glib-unix.h>
#include <gmodule.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "main-utils.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
static gboolean
sighup_handler (gpointer user_data)
diff --git a/src/main-utils.h b/src/main-utils.h
index af68568027..cae97b57a5 100644
--- a/src/main-utils.h
+++ b/src/main-utils.h
@@ -21,7 +21,7 @@
#ifndef __MAIN_UTILS_H__
#define __MAIN_UTILS_H__
-#include "nm-glib.h"
+#include "nm-default.h"
void nm_main_utils_ensure_root (void);
diff --git a/src/main.c b/src/main.c
index 9f6ebdf3d2..14a9c46757 100644
--- a/src/main.c
+++ b/src/main.c
@@ -39,8 +39,7 @@
#include <string.h>
#include <sys/resource.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "NetworkManagerUtils.h"
#include "main-utils.h"
@@ -49,7 +48,6 @@
#include "nm-bus-manager.h"
#include "nm-device.h"
#include "nm-dhcp-manager.h"
-#include "nm-logging.h"
#include "nm-config.h"
#include "nm-session-monitor.h"
#include "nm-dispatcher.h"
diff --git a/src/nm-activation-request.c b/src/nm-activation-request.c
index 2c084b874e..e10182c823 100644
--- a/src/nm-activation-request.c
+++ b/src/nm-activation-request.c
@@ -26,10 +26,9 @@
#include <sys/wait.h>
#include <unistd.h>
-#include "gsystem-local-alloc.h"
#include "nm-activation-request.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-setting-wireless-security.h"
#include "nm-setting-8021x.h"
#include "nm-device.h"
diff --git a/src/nm-activation-request.h b/src/nm-activation-request.h
index 62b4f62846..b93fff5b72 100644
--- a/src/nm-activation-request.h
+++ b/src/nm-activation-request.h
@@ -22,8 +22,7 @@
#define __NETWORKMANAGER_ACTIVATION_REQUEST_H__
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "nm-connection.h"
#include "nm-active-connection.h"
diff --git a/src/nm-active-connection.c b/src/nm-active-connection.c
index e52b467136..aeb5bd7835 100644
--- a/src/nm-active-connection.c
+++ b/src/nm-active-connection.c
@@ -21,18 +21,15 @@
#include "config.h"
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "nm-active-connection.h"
#include "nm-dbus-interface.h"
-#include "nm-logging.h"
#include "nm-dbus-glib-types.h"
#include "nm-device.h"
#include "nm-settings-connection.h"
#include "nm-auth-utils.h"
#include "nm-auth-subject.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "nm-active-connection-glue.h"
/* Base class for anything implementing the Connection.Active D-Bus interface */
diff --git a/src/nm-auth-manager.c b/src/nm-auth-manager.c
index 998ffb1ec7..d429f43077 100644
--- a/src/nm-auth-manager.c
+++ b/src/nm-auth-manager.c
@@ -22,7 +22,7 @@
#include "nm-auth-manager.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-errors.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-auth-manager.h b/src/nm-auth-manager.h
index 4589651a09..2875cccbaa 100644
--- a/src/nm-auth-manager.h
+++ b/src/nm-auth-manager.h
@@ -22,7 +22,7 @@
#define NM_AUTH_MANAGER_H
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-auth-subject.h"
G_BEGIN_DECLS
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c
index 7570b3cf58..5e2eaa7250 100644
--- a/src/nm-auth-subject.c
+++ b/src/nm-auth-subject.c
@@ -33,11 +33,10 @@
#include <string.h>
#include <stdlib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-bus-manager.h"
#include "nm-enum-types.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
G_DEFINE_TYPE (NMAuthSubject, nm_auth_subject, G_TYPE_OBJECT)
diff --git a/src/nm-auth-subject.h b/src/nm-auth-subject.h
index 73013d8622..3205ced720 100644
--- a/src/nm-auth-subject.h
+++ b/src/nm-auth-subject.h
@@ -25,8 +25,7 @@
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#define NM_TYPE_AUTH_SUBJECT (nm_auth_subject_get_type ())
#define NM_AUTH_SUBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_AUTH_SUBJECT, NMAuthSubject))
diff --git a/src/nm-auth-utils.c b/src/nm-auth-utils.c
index e0f770e712..969accb7ba 100644
--- a/src/nm-auth-utils.c
+++ b/src/nm-auth-utils.c
@@ -22,11 +22,9 @@
#include <string.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-setting-connection.h"
#include "nm-auth-utils.h"
-#include "nm-logging.h"
#include "nm-auth-subject.h"
#include "nm-auth-manager.h"
#include "nm-session-monitor.h"
diff --git a/src/nm-auth-utils.h b/src/nm-auth-utils.h
index f96fbeabe6..4071b12154 100644
--- a/src/nm-auth-utils.h
+++ b/src/nm-auth-utils.h
@@ -24,8 +24,7 @@
#include <dbus/dbus-glib.h>
#include <nm-connection.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_NETWORK "org.freedesktop.NetworkManager.enable-disable-network"
#define NM_AUTH_PERMISSION_SLEEP_WAKE "org.freedesktop.NetworkManager.sleep-wake"
diff --git a/src/nm-bus-manager.c b/src/nm-bus-manager.c
index 66c117ef21..4ebc1666c5 100644
--- a/src/nm-bus-manager.c
+++ b/src/nm-bus-manager.c
@@ -26,7 +26,7 @@
#include <sys/types.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-bus-manager.h"
@@ -34,7 +34,6 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <string.h>
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#define PRIV_SOCK_PATH NMRUNDIR "/private"
diff --git a/src/nm-bus-manager.h b/src/nm-bus-manager.h
index 55919cf831..53dbe4498a 100644
--- a/src/nm-bus-manager.h
+++ b/src/nm-bus-manager.h
@@ -26,8 +26,7 @@
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/nm-config-data.c b/src/nm-config-data.c
index 5e015f016e..a804e61a93 100644
--- a/src/nm-config-data.c
+++ b/src/nm-config-data.c
@@ -24,12 +24,11 @@
#include <string.h>
#include "nm-config.h"
-#include "gsystem-local-alloc.h"
#include "nm-device.h"
#include "nm-core-internal.h"
#include "nm-keyfile-internal.h"
#include "nm-macros-internal.h"
-#include "nm-logging.h"
+#include "nm-default.h"
typedef struct {
char *group_name;
diff --git a/src/nm-config-data.h b/src/nm-config-data.h
index 052a6b265b..8b745f2eb0 100644
--- a/src/nm-config-data.h
+++ b/src/nm-config-data.h
@@ -22,8 +22,7 @@
#define NM_CONFIG_DATA_H
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/nm-config.c b/src/nm-config.c
index be04f163c6..24cca2b7fe 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -26,13 +26,11 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-config.h"
-#include "nm-logging.h"
#include "nm-utils.h"
#include "nm-device.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "nm-enum-types.h"
#include "nm-core-internal.h"
#include "nm-keyfile-internal.h"
diff --git a/src/nm-config.h b/src/nm-config.h
index e492999f99..e2365ab165 100644
--- a/src/nm-config.h
+++ b/src/nm-config.h
@@ -23,8 +23,7 @@
#define __NETWORKMANAGER_CONFIG_H__
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "nm-config-data.h"
G_BEGIN_DECLS
diff --git a/src/nm-connection-provider.h b/src/nm-connection-provider.h
index 31b654f3eb..1f15216447 100644
--- a/src/nm-connection-provider.h
+++ b/src/nm-connection-provider.h
@@ -18,8 +18,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#define NM_TYPE_CONNECTION_PROVIDER (nm_connection_provider_get_type ())
#define NM_CONNECTION_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_CONNECTION_PROVIDER, NMConnectionProvider))
diff --git a/src/nm-connectivity.c b/src/nm-connectivity.c
index e8b854cdd6..5cfc8d615e 100644
--- a/src/nm-connectivity.c
+++ b/src/nm-connectivity.c
@@ -27,10 +27,9 @@
#endif
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connectivity.h"
#include "nm-config.h"
-#include "nm-logging.h"
G_DEFINE_TYPE (NMConnectivity, nm_connectivity, G_TYPE_OBJECT)
diff --git a/src/nm-connectivity.h b/src/nm-connectivity.h
index 66e943cd48..f037403ce8 100644
--- a/src/nm-connectivity.h
+++ b/src/nm-connectivity.h
@@ -22,9 +22,8 @@
#define __NETWORKMANAGER_CONNECTIVITY_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
-#include "nm-types.h"
#define NM_TYPE_CONNECTIVITY (nm_connectivity_get_type ())
#define NM_CONNECTIVITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_CONNECTIVITY, NMConnectivity))
diff --git a/src/nm-dcb.c b/src/nm-dcb.c
index b5a1346274..109e56e549 100644
--- a/src/nm-dcb.c
+++ b/src/nm-dcb.c
@@ -23,11 +23,10 @@
#include <sys/wait.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dcb.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
static const char *helper_names[] = { "dcbtool", "fcoeadm" };
diff --git a/src/nm-dcb.h b/src/nm-dcb.h
index e12fa18030..86e6153d67 100644
--- a/src/nm-dcb.h
+++ b/src/nm-dcb.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DCB_H__
#define __NETWORKMANAGER_DCB_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-setting-dcb.h"
gboolean nm_dcb_enable (const char *iface, gboolean enable, GError **error);
diff --git a/src/nm-default-route-manager.c b/src/nm-default-route-manager.c
index b36dd44f3a..12399eafed 100644
--- a/src/nm-default-route-manager.c
+++ b/src/nm-default-route-manager.c
@@ -25,7 +25,7 @@
#include "string.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-device.h"
#include "nm-vpn-connection.h"
#include "nm-platform.h"
diff --git a/src/nm-default-route-manager.h b/src/nm-default-route-manager.h
index 4c1b032859..2ee4b6d6f4 100644
--- a/src/nm-default-route-manager.h
+++ b/src/nm-default-route-manager.h
@@ -19,9 +19,8 @@
*/
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-connection.h"
-#include "nm-types.h"
#ifndef __NETWORKMANAGER_DEFAULT_ROUTE_MANAGER_H__
#define __NETWORKMANAGER_DEFAULT_ROUTE_MANAGER_H__
diff --git a/src/nm-dhcp4-config.c b/src/nm-dhcp4-config.c
index d2d93d31fd..5b1345ceee 100644
--- a/src/nm-dhcp4-config.c
+++ b/src/nm-dhcp4-config.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-dhcp4-config.h"
#include "nm-dhcp4-config-glue.h"
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c
index 6b27c532bd..db7147a6a4 100644
--- a/src/nm-dhcp6-config.c
+++ b/src/nm-dhcp6-config.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-dhcp6-config.h"
#include "nm-dhcp6-config-glue.h"
diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c
index d8e6be2f7b..57fb0249c1 100644
--- a/src/nm-dispatcher.c
+++ b/src/nm-dispatcher.c
@@ -24,12 +24,11 @@
#include <string.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dispatcher.h"
#include "nm-dispatcher-api.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-logging.h"
#include "nm-device.h"
#include "nm-dhcp4-config.h"
#include "nm-dhcp6-config.h"
diff --git a/src/nm-dispatcher.h b/src/nm-dispatcher.h
index d4ea329d34..94f48ab168 100644
--- a/src/nm-dispatcher.h
+++ b/src/nm-dispatcher.h
@@ -24,8 +24,7 @@
#include <stdio.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "nm-connection.h"
typedef enum {
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c
index 1023842332..9ad734d8af 100644
--- a/src/nm-exported-object.c
+++ b/src/nm-exported-object.c
@@ -25,7 +25,7 @@
#include "nm-exported-object.h"
#include "nm-dbus-glib-types.h"
#include "nm-bus-manager.h"
-#include "nm-logging.h"
+#include "nm-default.h"
static GHashTable *prefix_counters;
diff --git a/src/nm-exported-object.h b/src/nm-exported-object.h
index ed67a6dbc8..e0ffd9e06b 100644
--- a/src/nm-exported-object.h
+++ b/src/nm-exported-object.h
@@ -23,8 +23,7 @@
#include <dbus/dbus-glib.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/nm-firewall-manager.c b/src/nm-firewall-manager.c
index 304ee7e932..93792b8799 100644
--- a/src/nm-firewall-manager.c
+++ b/src/nm-firewall-manager.c
@@ -22,10 +22,8 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-firewall-manager.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
#include "NetworkManagerUtils.h"
#define NM_FIREWALL_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
diff --git a/src/nm-firewall-manager.h b/src/nm-firewall-manager.h
index 6423cbbb18..19d9689788 100644
--- a/src/nm-firewall-manager.h
+++ b/src/nm-firewall-manager.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_FIREWALL_MANAGER_H__
#define __NETWORKMANAGER_FIREWALL_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define FIREWALL_DBUS_SERVICE "org.fedoraproject.FirewallD1"
#define FIREWALL_DBUS_PATH "/org/fedoraproject/FirewallD1"
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c
index a35d0d7c04..07b3d34855 100644
--- a/src/nm-iface-helper.c
+++ b/src/nm-iface-helper.c
@@ -37,12 +37,10 @@
* Forward declare if_nametoindex. */
extern unsigned int if_nametoindex (const char *__ifname);
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-linux-platform.h"
#include "nm-dhcp-manager.h"
-#include "nm-logging.h"
#include "main-utils.h"
#include "nm-rdisc.h"
#include "nm-lndp-rdisc.h"
diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c
index 389e99c662..f365fd065c 100644
--- a/src/nm-ip4-config.c
+++ b/src/nm-ip4-config.c
@@ -26,6 +26,7 @@
#include "nm-ip4-config.h"
+#include "nm-default.h"
#include "nm-utils.h"
#include "nm-platform.h"
#include "nm-dbus-glib-types.h"
@@ -34,7 +35,6 @@
#include "nm-core-internal.h"
#include "nm-route-manager.h"
#include "nm-core-internal.h"
-#include "gsystem-local-alloc.h"
G_DEFINE_TYPE (NMIP4Config, nm_ip4_config, NM_TYPE_EXPORTED_OBJECT)
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c
index 1206da87c5..b4b5b3e19c 100644
--- a/src/nm-ip6-config.c
+++ b/src/nm-ip6-config.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-ip6-config.h"
#include "nm-utils.h"
diff --git a/src/nm-logging.c b/src/nm-logging.c
index 6ee09fbf3d..b74f1a0ee9 100644
--- a/src/nm-logging.c
+++ b/src/nm-logging.c
@@ -39,10 +39,8 @@
#include <systemd/sd-journal.h>
#endif
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-errors.h"
-#include "gsystem-local-alloc.h"
#include "NetworkManagerUtils.h"
static void
diff --git a/src/nm-logging.h b/src/nm-logging.h
index a346a7a657..b334075d37 100644
--- a/src/nm-logging.h
+++ b/src/nm-logging.h
@@ -26,8 +26,9 @@
#error nm-test-utils.h must be included as last header
#endif
+#include "nm-logging.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-macros-internal.h"
/* Log domains */
diff --git a/src/nm-manager.c b/src/nm-manager.c
index b14c26267f..224f084649 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -30,10 +30,8 @@
#include <dbus/dbus-glib.h>
#include <glib/gi18n.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-manager.h"
-#include "nm-logging.h"
#include "nm-bus-manager.h"
#include "nm-vpn-manager.h"
#include "nm-device.h"
diff --git a/src/nm-multi-index.c b/src/nm-multi-index.c
index 8a7e4d1dac..da3507d0b3 100644
--- a/src/nm-multi-index.c
+++ b/src/nm-multi-index.c
@@ -20,7 +20,7 @@
#include "config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-multi-index.h"
#include <string.h>
diff --git a/src/nm-multi-index.h b/src/nm-multi-index.h
index 3438d1cf60..046e2431b8 100644
--- a/src/nm-multi-index.h
+++ b/src/nm-multi-index.h
@@ -21,7 +21,7 @@
#ifndef __NM_MULTI_INDEX__
#define __NM_MULTI_INDEX__
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 2f924ee664..939ddfeeb1 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -27,11 +27,10 @@
#include <netdb.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-policy.h"
#include "NetworkManagerUtils.h"
#include "nm-activation-request.h"
-#include "nm-logging.h"
#include "nm-device.h"
#include "nm-default-route-manager.h"
#include "nm-setting-ip4-config.h"
diff --git a/src/nm-policy.h b/src/nm-policy.h
index 76653529ea..7824f3ea72 100644
--- a/src/nm-policy.h
+++ b/src/nm-policy.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_POLICY_H__
#define __NETWORKMANAGER_POLICY_H__
-#include "nm-types.h"
+#include "nm-default.h"
#define NM_TYPE_POLICY (nm_policy_get_type ())
#define NM_POLICY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_POLICY, NMPolicy))
diff --git a/src/nm-rfkill-manager.c b/src/nm-rfkill-manager.c
index 27f3ca0124..c1f288a0c6 100644
--- a/src/nm-rfkill-manager.c
+++ b/src/nm-rfkill-manager.c
@@ -24,7 +24,7 @@
#include <gudev/gudev.h>
#include "nm-rfkill-manager.h"
-#include "nm-logging.h"
+#include "nm-default.h"
typedef struct {
GUdevClient *client;
diff --git a/src/nm-rfkill-manager.h b/src/nm-rfkill-manager.h
index cea6c7aee1..9b8e23df5f 100644
--- a/src/nm-rfkill-manager.h
+++ b/src/nm-rfkill-manager.h
@@ -20,8 +20,7 @@
*/
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#ifndef __NETWORKMANAGER_RFKILL_MANAGER_H__
#define __NETWORKMANAGER_RFKILL_MANAGER_H__
diff --git a/src/nm-route-manager.c b/src/nm-route-manager.c
index 5ee6c8654f..9c5d9be2b3 100644
--- a/src/nm-route-manager.c
+++ b/src/nm-route-manager.c
@@ -26,8 +26,7 @@
#include "nm-platform.h"
#include "nmp-object.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
/* if within half a second after adding an IP address a matching device-route shows
diff --git a/src/nm-route-manager.h b/src/nm-route-manager.h
index e72bce735c..9a08496f1d 100644
--- a/src/nm-route-manager.h
+++ b/src/nm-route-manager.h
@@ -19,8 +19,7 @@
*/
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#ifndef __NETWORKMANAGER_ROUTE_MANAGER_H__
#define __NETWORKMANAGER_ROUTE_MANAGER_H__
diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c
index 8a12552945..fb8b7e1cbd 100644
--- a/src/nm-session-monitor.c
+++ b/src/nm-session-monitor.c
@@ -26,9 +26,8 @@
#include <string.h>
#include <sys/stat.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-session-monitor.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#ifdef SESSION_TRACKING_SYSTEMD
diff --git a/src/nm-session-monitor.h b/src/nm-session-monitor.h
index ef7bd5161f..dfc86a85b1 100644
--- a/src/nm-session-monitor.h
+++ b/src/nm-session-monitor.h
@@ -22,8 +22,7 @@
#define __NETWORKMANAGER_SESSION_MONITOR_H__
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/nm-sleep-monitor-systemd.c b/src/nm-sleep-monitor-systemd.c
index 175c0c1233..620cf93524 100644
--- a/src/nm-sleep-monitor-systemd.c
+++ b/src/nm-sleep-monitor-systemd.c
@@ -25,8 +25,7 @@
#include <glib/gi18n.h>
#include <gio/gunixfdlist.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-sleep-monitor-upower.c b/src/nm-sleep-monitor-upower.c
index e3599a2fc5..c65609cf40 100644
--- a/src/nm-sleep-monitor-upower.c
+++ b/src/nm-sleep-monitor-upower.c
@@ -22,8 +22,7 @@
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-sleep-monitor.h"
diff --git a/src/nm-sleep-monitor.h b/src/nm-sleep-monitor.h
index 3f13d3256f..21e6b844c8 100644
--- a/src/nm-sleep-monitor.h
+++ b/src/nm-sleep-monitor.h
@@ -21,8 +21,7 @@
#define __NETWORKMANAGER_SLEEP_MONITOR_H__
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/platform/nm-fake-platform.c b/src/platform/nm-fake-platform.c
index d5aeb0301f..03ff8a5bdd 100644
--- a/src/platform/nm-fake-platform.c
+++ b/src/platform/nm-fake-platform.c
@@ -26,11 +26,10 @@
#include <netinet/in.h>
#include <linux/rtnetlink.h>
-#include "gsystem-local-alloc.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-fake-platform.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index f3a9254531..60fe737a9c 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -50,14 +50,13 @@
#endif
#endif
-#include "gsystem-local-alloc.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
#include "nm-linux-platform.h"
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "wifi/wifi-utils.h"
#include "wifi/wifi-utils-wext.h"
#include "nmp-object.h"
diff --git a/src/platform/nm-platform-utils.c b/src/platform/nm-platform-utils.c
index 73506c7659..c551201e67 100644
--- a/src/platform/nm-platform-utils.c
+++ b/src/platform/nm-platform-utils.c
@@ -29,10 +29,9 @@
#include <linux/mii.h>
#include <linux/version.h>
-#include "gsystem-local-alloc.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-setting-wired.h"
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 5e9f969737..bd8ab8b262 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -29,13 +29,12 @@
#include <netlink/route/addr.h>
#include <netlink/route/rtnl.h>
-#include "gsystem-local-alloc.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
#include "nm-platform.h"
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-enum-types.h"
#include "nm-core-internal.h"
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index 448101da4c..59e8901140 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -26,8 +26,7 @@
#include <linux/if_addr.h>
#include <nm-dbus-interface.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#define NM_TYPE_PLATFORM (nm_platform_get_type ())
diff --git a/src/platform/nmp-object.c b/src/platform/nmp-object.c
index 51684b93c7..05f63b2792 100644
--- a/src/platform/nmp-object.c
+++ b/src/platform/nmp-object.c
@@ -25,7 +25,7 @@
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
/*********************************************************************************************/
diff --git a/src/platform/tests/monitor.c b/src/platform/tests/monitor.c
index 933e124ffd..6c95830678 100644
--- a/src/platform/tests/monitor.c
+++ b/src/platform/tests/monitor.c
@@ -3,10 +3,9 @@
#include <stdlib.h>
#include <syslog.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-fake-platform.h"
#include "nm-linux-platform.h"
-#include "nm-logging.h"
int
main (int argc, char **argv)
diff --git a/src/platform/tests/platform.c b/src/platform/tests/platform.c
index ebf162a98a..31f36351f1 100644
--- a/src/platform/tests/platform.c
+++ b/src/platform/tests/platform.c
@@ -26,7 +26,7 @@
#include <arpa/inet.h>
#include <netlink/route/addr.h>
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "nm-platform.h"
#include "nm-linux-platform.h"
#include "nm-fake-platform.h"
diff --git a/src/platform/tests/test-common.h b/src/platform/tests/test-common.h
index 3d6475433e..e69f956f5a 100644
--- a/src/platform/tests/test-common.h
+++ b/src/platform/tests/test-common.h
@@ -4,7 +4,7 @@
#include <string.h>
#include <arpa/inet.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
#include "nm-fake-platform.h"
#include "nm-linux-platform.h"
diff --git a/src/platform/tests/test-general.c b/src/platform/tests/test-general.c
index 94d9650365..b1dd454e28 100644
--- a/src/platform/tests/test-general.c
+++ b/src/platform/tests/test-general.c
@@ -23,7 +23,7 @@
#include <linux/rtnetlink.h>
#include "nm-linux-platform.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/platform/tests/test-nmp-object.c b/src/platform/tests/test-nmp-object.c
index 88bb070784..836353bb2d 100644
--- a/src/platform/tests/test-nmp-object.c
+++ b/src/platform/tests/test-nmp-object.c
@@ -20,7 +20,7 @@
#include "nmp-object.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/platform/wifi/wifi-utils-nl80211.c b/src/platform/wifi/wifi-utils-nl80211.c
index e427f3368a..a4d4017bc2 100644
--- a/src/platform/wifi/wifi-utils-nl80211.c
+++ b/src/platform/wifi/wifi-utils-nl80211.c
@@ -36,11 +36,10 @@
#include <linux/nl80211.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "wifi-utils-private.h"
#include "wifi-utils-nl80211.h"
#include "nm-platform.h"
-#include "nm-logging.h"
#include "nm-utils.h"
typedef struct {
diff --git a/src/platform/wifi/wifi-utils-private.h b/src/platform/wifi/wifi-utils-private.h
index 9e5b206891..21a4c57b62 100644
--- a/src/platform/wifi/wifi-utils-private.h
+++ b/src/platform/wifi/wifi-utils-private.h
@@ -22,7 +22,7 @@
#define __WIFI_UTILS_PRIVATE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "wifi-utils.h"
diff --git a/src/platform/wifi/wifi-utils-wext.c b/src/platform/wifi/wifi-utils-wext.c
index 52d1e49b1c..0d7488b3ed 100644
--- a/src/platform/wifi/wifi-utils-wext.c
+++ b/src/platform/wifi/wifi-utils-wext.c
@@ -29,10 +29,9 @@
#include <math.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "wifi-utils-private.h"
#include "wifi-utils-wext.h"
-#include "nm-logging.h"
#include "nm-utils.h"
/* Hacks necessary to #include wireless.h; yay for WEXT */
diff --git a/src/platform/wifi/wifi-utils.c b/src/platform/wifi/wifi-utils.c
index eab99bf860..5f2f61b0d0 100644
--- a/src/platform/wifi/wifi-utils.c
+++ b/src/platform/wifi/wifi-utils.c
@@ -25,7 +25,7 @@
#include <stdio.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "wifi-utils.h"
#include "wifi-utils-private.h"
#include "wifi-utils-nl80211.h"
diff --git a/src/platform/wifi/wifi-utils.h b/src/platform/wifi/wifi-utils.h
index a5c9feaf49..21dac9e9cc 100644
--- a/src/platform/wifi/wifi-utils.h
+++ b/src/platform/wifi/wifi-utils.h
@@ -24,7 +24,7 @@
#include <net/ethernet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
typedef struct WifiData WifiData;
diff --git a/src/ppp-manager/Makefile.am b/src/ppp-manager/Makefile.am
index 15a738c921..ee5788f7c2 100644
--- a/src/ppp-manager/Makefile.am
+++ b/src/ppp-manager/Makefile.am
@@ -3,6 +3,7 @@ if WITH_PPP
AM_CPPFLAGS = \
-I${top_srcdir}/include \
-I${top_srcdir}/libnm-core \
+ -I${top_srcdir}/src \
-I${top_builddir}/libnm-core \
-DG_LOG_DOMAIN=\""nm-pppd-plugin"\" \
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c
index f767c29e31..e3739d95d5 100644
--- a/src/ppp-manager/nm-ppp-manager.c
+++ b/src/ppp-manager/nm-ppp-manager.c
@@ -42,10 +42,9 @@
#include <linux/if.h>
#include <linux/if_ppp.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-ppp-manager.h"
-#include "nm-logging.h"
#include "nm-platform.h"
#include "nm-core-internal.h"
diff --git a/src/ppp-manager/nm-pppd-plugin.c b/src/ppp-manager/nm-pppd-plugin.c
index 9b07519b01..1f1016ae8a 100644
--- a/src/ppp-manager/nm-pppd-plugin.c
+++ b/src/ppp-manager/nm-pppd-plugin.c
@@ -34,7 +34,7 @@
#include <pppd/eui64.h>
#include <pppd/ipv6cp.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-pppd-plugin.h"
#include "nm-ppp-status.h"
diff --git a/src/rdisc/nm-fake-rdisc.c b/src/rdisc/nm-fake-rdisc.c
index 68f43c0e52..25ba3f7fb7 100644
--- a/src/rdisc/nm-fake-rdisc.c
+++ b/src/rdisc/nm-fake-rdisc.c
@@ -26,7 +26,7 @@
#include "nm-fake-rdisc.h"
#include "nm-rdisc-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#define debug(...) nm_log_dbg (LOGD_IP6, __VA_ARGS__)
#define warning(...) nm_log_warn (LOGD_IP6, __VA_ARGS__)
diff --git a/src/rdisc/nm-lndp-rdisc.c b/src/rdisc/nm-lndp-rdisc.c
index 46f814767f..f31a13b2a1 100644
--- a/src/rdisc/nm-lndp-rdisc.c
+++ b/src/rdisc/nm-lndp-rdisc.c
@@ -30,7 +30,7 @@
#include "nm-rdisc-private.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-platform.h"
#define debug(...) nm_log_dbg (LOGD_IP6, __VA_ARGS__)
diff --git a/src/rdisc/nm-rdisc.c b/src/rdisc/nm-rdisc.c
index 09d1f5fb16..35436e9d11 100644
--- a/src/rdisc/nm-rdisc.c
+++ b/src/rdisc/nm-rdisc.c
@@ -27,7 +27,7 @@
#include "nm-rdisc.h"
#include "nm-rdisc-private.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-utils.h"
#define debug(...) nm_log_dbg (LOGD_IP6, __VA_ARGS__)
diff --git a/src/rdisc/nm-rdisc.h b/src/rdisc/nm-rdisc.h
index 4c83fb4e36..def63ee6fc 100644
--- a/src/rdisc/nm-rdisc.h
+++ b/src/rdisc/nm-rdisc.h
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <netinet/in.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#define NM_TYPE_RDISC (nm_rdisc_get_type ())
diff --git a/src/rdisc/tests/test-rdisc-fake.c b/src/rdisc/tests/test-rdisc-fake.c
index 33672637d0..3b248dc69b 100644
--- a/src/rdisc/tests/test-rdisc-fake.c
+++ b/src/rdisc/tests/test-rdisc-fake.c
@@ -25,7 +25,7 @@
#include "nm-rdisc.h"
#include "nm-fake-rdisc.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-fake-platform.h"
diff --git a/src/rdisc/tests/test-rdisc-linux.c b/src/rdisc/tests/test-rdisc-linux.c
index eddb3b0eb4..184573bc2e 100644
--- a/src/rdisc/tests/test-rdisc-linux.c
+++ b/src/rdisc/tests/test-rdisc-linux.c
@@ -25,7 +25,7 @@
#include "nm-rdisc.h"
#include "nm-lndp-rdisc.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-linux-platform.h"
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index eaf5ff3f2b..e1333bab53 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -26,9 +26,8 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
-#include "nm-logging.h"
#include "nm-agent-manager.h"
#include "nm-secret-agent.h"
#include "nm-auth-utils.h"
diff --git a/src/settings/nm-inotify-helper.c b/src/settings/nm-inotify-helper.c
index 2c4fe9e6d8..681933cd29 100644
--- a/src/settings/nm-inotify-helper.c
+++ b/src/settings/nm-inotify-helper.c
@@ -25,9 +25,8 @@
#include <sys/inotify.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-inotify-helper.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
/* NOTE: this code should be killed once we depend on a new enough glib to
diff --git a/src/settings/nm-inotify-helper.h b/src/settings/nm-inotify-helper.h
index 1dd73a5aca..b4e2c61225 100644
--- a/src/settings/nm-inotify-helper.h
+++ b/src/settings/nm-inotify-helper.h
@@ -23,7 +23,7 @@
#include <sys/inotify.h>
-#include "nm-glib.h"
+#include "nm-default.h"
/* NOTE: this code should be killed once we depend on a new enough glib to
* include the patches from https://bugzilla.gnome.org/show_bug.cgi?id=532815
diff --git a/src/settings/nm-secret-agent.c b/src/settings/nm-secret-agent.c
index 5f659d23e7..43885fee41 100644
--- a/src/settings/nm-secret-agent.c
+++ b/src/settings/nm-secret-agent.c
@@ -26,12 +26,11 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-secret-agent.h"
#include "nm-bus-manager.h"
#include "nm-dbus-glib-types.h"
-#include "nm-logging.h"
#include "nm-auth-subject.h"
#include "nm-simple-connection.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/nm-secret-agent.h b/src/settings/nm-secret-agent.h
index d8712c59ed..aedc3d21f9 100644
--- a/src/settings/nm-secret-agent.h
+++ b/src/settings/nm-secret-agent.h
@@ -23,8 +23,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
#define NM_TYPE_SECRET_AGENT (nm_secret_agent_get_type ())
#define NM_SECRET_AGENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SECRET_AGENT, NMSecretAgent))
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c
index ec0d6c230e..b4300e02c5 100644
--- a/src/settings/nm-settings-connection.c
+++ b/src/settings/nm-settings-connection.c
@@ -26,18 +26,16 @@
#include <nm-dbus-interface.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-settings-connection.h"
#include "nm-session-monitor.h"
#include "nm-dbus-glib-types.h"
-#include "nm-logging.h"
#include "nm-auth-utils.h"
#include "nm-auth-subject.h"
#include "nm-agent-manager.h"
#include "NetworkManagerUtils.h"
#include "nm-core-internal.h"
#include "nm-audit-manager.h"
-#include "gsystem-local-alloc.h"
#define SETTINGS_TIMESTAMPS_FILE NMSTATEDIR "/timestamps"
#define SETTINGS_SEEN_BSSIDS_FILE NMSTATEDIR "/seen-bssids"
diff --git a/src/settings/nm-settings-connection.h b/src/settings/nm-settings-connection.h
index 734d917877..b4b48271ba 100644
--- a/src/settings/nm-settings-connection.h
+++ b/src/settings/nm-settings-connection.h
@@ -26,7 +26,7 @@
#include "nm-exported-object.h"
#include <nm-connection.h>
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index e0e3af64ce..d7b76c9cf6 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -38,7 +38,6 @@
#include <selinux/selinux.h>
#endif
-#include "gsystem-local-alloc.h"
#include <nm-dbus-interface.h>
#include <nm-connection.h>
#include <nm-setting-8021x.h>
@@ -66,7 +65,7 @@
#include "nm-settings.h"
#include "nm-settings-connection.h"
#include "nm-system-config-interface.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-bus-manager.h"
#include "nm-auth-utils.h"
#include "nm-auth-subject.h"
diff --git a/src/settings/nm-system-config-interface.h b/src/settings/nm-system-config-interface.h
index 1dce93189e..81a422d671 100644
--- a/src/settings/nm-system-config-interface.h
+++ b/src/settings/nm-system-config-interface.h
@@ -24,8 +24,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
-#include "nm-types.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/settings/plugins/ibft/plugin.c b/src/settings/plugins/ibft/plugin.c
index 2c3504f309..feb02dde1e 100644
--- a/src/settings/plugins/ibft/plugin.c
+++ b/src/settings/plugins/ibft/plugin.c
@@ -29,10 +29,9 @@
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-glib-types.h"
#include "nm-system-config-interface.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "plugin.h"
diff --git a/src/settings/plugins/ibft/plugin.h b/src/settings/plugins/ibft/plugin.h
index f9426fcb04..d86b018466 100644
--- a/src/settings/plugins/ibft/plugin.h
+++ b/src/settings/plugins/ibft/plugin.h
@@ -21,7 +21,7 @@
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
-#include "nm-glib.h"
+#include "nm-default.h"
#define SC_TYPE_PLUGIN_IBFT (sc_plugin_ibft_get_type ())
#define SC_PLUGIN_IBFT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SC_TYPE_PLUGIN_IBFT, SCPluginIbft))
diff --git a/src/settings/plugins/ibft/reader.c b/src/settings/plugins/ibft/reader.c
index 45006f7f1a..81c83a6f6a 100644
--- a/src/settings/plugins/ibft/reader.c
+++ b/src/settings/plugins/ibft/reader.c
@@ -33,11 +33,10 @@
#include <glib/gi18n.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
#include "reader.h"
diff --git a/src/settings/plugins/ibft/reader.h b/src/settings/plugins/ibft/reader.h
index bea32e2497..42969ae0f3 100644
--- a/src/settings/plugins/ibft/reader.h
+++ b/src/settings/plugins/ibft/reader.h
@@ -23,7 +23,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
gboolean read_ibft_blocks (const char *iscsiadm_path,
GSList **out_blocks,
diff --git a/src/settings/plugins/ibft/tests/test-ibft.c b/src/settings/plugins/ibft/tests/test-ibft.c
index 980a9ceed1..c7aef050db 100644
--- a/src/settings/plugins/ibft/tests/test-ibft.c
+++ b/src/settings/plugins/ibft/tests/test-ibft.c
@@ -33,7 +33,7 @@
#include "NetworkManagerUtils.h"
#include "reader.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/settings/plugins/ifcfg-rh/common.h b/src/settings/plugins/ifcfg-rh/common.h
index 168177ff9a..5d6ebe6d65 100644
--- a/src/settings/plugins/ifcfg-rh/common.h
+++ b/src/settings/plugins/ifcfg-rh/common.h
@@ -21,7 +21,7 @@
#ifndef __COMMON_H__
#define __COMMON_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define IFCFG_TAG "ifcfg-"
#define KEYS_TAG "keys-"
diff --git a/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c b/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
index 026ce59565..acb5b1ece2 100644
--- a/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
+++ b/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
@@ -34,7 +34,8 @@
#include <nm-setting-wireless-security.h>
#include <nm-setting-8021x.h>
#include "nm-platform.h"
-#include "nm-logging.h"
+
+#include "nm-default.h"
#include "common.h"
#include "nm-config.h"
diff --git a/src/settings/plugins/ifcfg-rh/plugin.c b/src/settings/plugins/ifcfg-rh/plugin.c
index 4b968aa08d..c35192492d 100644
--- a/src/settings/plugins/ifcfg-rh/plugin.c
+++ b/src/settings/plugins/ifcfg-rh/plugin.c
@@ -42,13 +42,12 @@
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "common.h"
#include "nm-dbus-glib-types.h"
#include "plugin.h"
#include "nm-system-config-interface.h"
#include "nm-config.h"
-#include "nm-logging.h"
#include "NetworkManagerUtils.h"
#include "nm-ifcfg-connection.h"
@@ -56,7 +55,6 @@
#include "reader.h"
#include "writer.h"
#include "utils.h"
-#include "gsystem-local-alloc.h"
#define IFCFGRH1_DBUS_SERVICE_NAME "com.redhat.ifcfgrh1"
#define IFCFGRH1_DBUS_OBJECT_PATH "/com/redhat/ifcfgrh1"
diff --git a/src/settings/plugins/ifcfg-rh/reader.c b/src/settings/plugins/ifcfg-rh/reader.c
index 69f08ebffd..41fe18d052 100644
--- a/src/settings/plugins/ifcfg-rh/reader.c
+++ b/src/settings/plugins/ifcfg-rh/reader.c
@@ -48,14 +48,12 @@
#include <nm-setting-bridge-port.h>
#include <nm-setting-dcb.h>
#include <nm-setting-generic.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include <nm-utils.h>
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
#include "common.h"
#include "shvar.h"
diff --git a/src/settings/plugins/ifcfg-rh/reader.h b/src/settings/plugins/ifcfg-rh/reader.h
index a9f830f119..88f9a72007 100644
--- a/src/settings/plugins/ifcfg-rh/reader.h
+++ b/src/settings/plugins/ifcfg-rh/reader.h
@@ -23,7 +23,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "shvar.h"
NMConnection *connection_from_file (const char *filename,
diff --git a/src/settings/plugins/ifcfg-rh/shvar.c b/src/settings/plugins/ifcfg-rh/shvar.c
index 283aa82611..fad1478521 100644
--- a/src/settings/plugins/ifcfg-rh/shvar.c
+++ b/src/settings/plugins/ifcfg-rh/shvar.c
@@ -36,9 +36,8 @@
#include "shvar.h"
-#include "gsystem-local-alloc.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#define PARSE_WARNING(msg...) nm_log_warn (LOGD_SETTINGS, " " msg)
diff --git a/src/settings/plugins/ifcfg-rh/shvar.h b/src/settings/plugins/ifcfg-rh/shvar.h
index 1778206577..876be3ade0 100644
--- a/src/settings/plugins/ifcfg-rh/shvar.h
+++ b/src/settings/plugins/ifcfg-rh/shvar.h
@@ -31,7 +31,7 @@
#ifndef _SHVAR_H
#define _SHVAR_H
-#include "nm-glib.h"
+#include "nm-default.h"
G_BEGIN_DECLS
diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
index 14473ffbc5..16bc14d6b0 100644
--- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
+++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
@@ -54,7 +54,7 @@
#include "reader.h"
#include "writer.h"
#include "utils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/settings/plugins/ifcfg-rh/utils.c b/src/settings/plugins/ifcfg-rh/utils.c
index 4d38c9b1c0..599e3a49f0 100644
--- a/src/settings/plugins/ifcfg-rh/utils.c
+++ b/src/settings/plugins/ifcfg-rh/utils.c
@@ -23,11 +23,10 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-macros-internal.h"
#include "NetworkManagerUtils.h"
-#include "gsystem-local-alloc.h"
#include "utils.h"
#include "shvar.h"
diff --git a/src/settings/plugins/ifcfg-rh/utils.h b/src/settings/plugins/ifcfg-rh/utils.h
index d8b4784cea..329f4547ca 100644
--- a/src/settings/plugins/ifcfg-rh/utils.h
+++ b/src/settings/plugins/ifcfg-rh/utils.h
@@ -22,10 +22,9 @@
#define _UTILS_H_
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "shvar.h"
#include "common.h"
-#include "nm-logging.h"
#define NM_IFCFG_CONNECTION_LOG_PATH(path) str_if_set (path,"in-memory")
#define NM_IFCFG_CONNECTION_LOG_FMT "%s (%s,\"%s\")"
diff --git a/src/settings/plugins/ifcfg-rh/writer.c b/src/settings/plugins/ifcfg-rh/writer.c
index d95915f4f2..35c1518c2b 100644
--- a/src/settings/plugins/ifcfg-rh/writer.c
+++ b/src/settings/plugins/ifcfg-rh/writer.c
@@ -45,8 +45,7 @@
#include "nm-core-internal.h"
#include "nm-macros-internal.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "common.h"
#include "shvar.h"
#include "reader.h"
diff --git a/src/settings/plugins/ifcfg-rh/writer.h b/src/settings/plugins/ifcfg-rh/writer.h
index 2c7168d330..69389361c9 100644
--- a/src/settings/plugins/ifcfg-rh/writer.h
+++ b/src/settings/plugins/ifcfg-rh/writer.h
@@ -25,7 +25,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
gboolean writer_can_write_connection (NMConnection *connection,
GError **error);
diff --git a/src/settings/plugins/ifnet/connection_parser.c b/src/settings/plugins/ifnet/connection_parser.c
index 888ee589ad..619eb3e5de 100644
--- a/src/settings/plugins/ifnet/connection_parser.c
+++ b/src/settings/plugins/ifnet/connection_parser.c
@@ -28,7 +28,7 @@
#include <glib/gi18n.h>
#include "nm-system-config-interface.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/ifnet/net_parser.c b/src/settings/plugins/ifnet/net_parser.c
index 637533517b..81ea04314e 100644
--- a/src/settings/plugins/ifnet/net_parser.c
+++ b/src/settings/plugins/ifnet/net_parser.c
@@ -27,7 +27,7 @@
#include <unistd.h>
#include <nm-system-config-interface.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "plugin.h"
#include "nm-platform.h"
diff --git a/src/settings/plugins/ifnet/net_parser.h b/src/settings/plugins/ifnet/net_parser.h
index c6966248ea..968feaf508 100644
--- a/src/settings/plugins/ifnet/net_parser.h
+++ b/src/settings/plugins/ifnet/net_parser.h
@@ -22,7 +22,7 @@
#ifndef _NET_PARSER_H
#define _NET_PARSER_H
-#include "nm-glib.h"
+#include "nm-default.h"
#define CONF_NET_FILE SYSCONFDIR "/conf.d/net"
diff --git a/src/settings/plugins/ifnet/net_utils.c b/src/settings/plugins/ifnet/net_utils.c
index 7d0f778b18..c653dd0f10 100644
--- a/src/settings/plugins/ifnet/net_utils.c
+++ b/src/settings/plugins/ifnet/net_utils.c
@@ -28,9 +28,8 @@
#include <nm-utils.h>
#include "NetworkManagerUtils.h"
#include <nm-system-config-interface.h>
-#include "nm-logging.h"
#include "nm-config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "net_utils.h"
#include "wpa_parser.h"
#include "net_parser.h"
diff --git a/src/settings/plugins/ifnet/net_utils.h b/src/settings/plugins/ifnet/net_utils.h
index bcb265dbd4..c1422f6505 100644
--- a/src/settings/plugins/ifnet/net_utils.h
+++ b/src/settings/plugins/ifnet/net_utils.h
@@ -25,7 +25,7 @@
#include <arpa/inet.h>
#include <nm-setting-ip6-config.h>
#include <nm-setting-ip4-config.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "net_parser.h"
#define has_default_ip4_route(conn_name) has_default_route((conn_name), &is_ip4_address)
#define has_default_ip6_route(conn_name) has_default_route((conn_name), &is_ip6_address)
diff --git a/src/settings/plugins/ifnet/nm-ifnet-connection.c b/src/settings/plugins/ifnet/nm-ifnet-connection.c
index df1598ee5f..7edb03256b 100644
--- a/src/settings/plugins/ifnet/nm-ifnet-connection.c
+++ b/src/settings/plugins/ifnet/nm-ifnet-connection.c
@@ -28,7 +28,7 @@
#include <nm-setting-wireless-security.h>
#include <nm-settings-connection.h>
#include <nm-system-config-interface.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-ifnet-connection.h"
#include "connection_parser.h"
#include "net_parser.h"
diff --git a/src/settings/plugins/ifnet/plugin.c b/src/settings/plugins/ifnet/plugin.c
index b82a9d07cb..d11bf9a660 100644
--- a/src/settings/plugins/ifnet/plugin.c
+++ b/src/settings/plugins/ifnet/plugin.c
@@ -29,10 +29,9 @@
#include <nm-utils.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-system-config-interface.h"
-#include "nm-logging.h"
#include "nm-ifnet-connection.h"
#include "nm-config.h"
diff --git a/src/settings/plugins/ifnet/plugin.h b/src/settings/plugins/ifnet/plugin.h
index 89e0fa3b86..cb8767bd96 100644
--- a/src/settings/plugins/ifnet/plugin.h
+++ b/src/settings/plugins/ifnet/plugin.h
@@ -23,7 +23,7 @@
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
-#include "nm-glib.h"
+#include "nm-default.h"
#define SC_TYPE_PLUGIN_IFNET (sc_plugin_ifnet_get_type ())
#define SC_PLUGIN_IFNET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SC_TYPE_PLUGIN_IFNET, SCPluginIfnet))
diff --git a/src/settings/plugins/ifnet/tests/test-ifnet.c b/src/settings/plugins/ifnet/tests/test-ifnet.c
index 18876e62c6..96fb5dd378 100644
--- a/src/settings/plugins/ifnet/tests/test-ifnet.c
+++ b/src/settings/plugins/ifnet/tests/test-ifnet.c
@@ -29,9 +29,8 @@
#include <unistd.h>
#include <nm-utils.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-linux-platform.h"
-#include "nm-logging.h"
#include "net_parser.h"
#include "net_utils.h"
diff --git a/src/settings/plugins/ifnet/wpa_parser.c b/src/settings/plugins/ifnet/wpa_parser.c
index 5338e789f8..51474ee433 100644
--- a/src/settings/plugins/ifnet/wpa_parser.c
+++ b/src/settings/plugins/ifnet/wpa_parser.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <stdlib.h>
#include <nm-system-config-interface.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "wpa_parser.h"
#include "net_parser.h"
#include "net_utils.h"
diff --git a/src/settings/plugins/ifnet/wpa_parser.h b/src/settings/plugins/ifnet/wpa_parser.h
index 9f2cf6054d..8099d19c62 100644
--- a/src/settings/plugins/ifnet/wpa_parser.h
+++ b/src/settings/plugins/ifnet/wpa_parser.h
@@ -22,7 +22,7 @@
#ifndef _WPA_PARSER_H
#define _WPA_PARSER_H
-#include "nm-glib.h"
+#include "nm-default.h"
#define WPA_SUPPLICANT_CONF SYSCONFDIR "/wpa_supplicant/wpa_supplicant.conf"
diff --git a/src/settings/plugins/ifupdown/interface_parser.c b/src/settings/plugins/ifupdown/interface_parser.c
index 32d27c57b5..4606f5ab63 100644
--- a/src/settings/plugins/ifupdown/interface_parser.c
+++ b/src/settings/plugins/ifupdown/interface_parser.c
@@ -29,7 +29,7 @@
#include <wordexp.h>
#include <libgen.h>
#include "nm-utils.h"
-#include "nm-logging.h"
+#include "nm-default.h"
if_block* first;
if_block* last;
diff --git a/src/settings/plugins/ifupdown/interface_parser.h b/src/settings/plugins/ifupdown/interface_parser.h
index 0b6c8c9f21..4034d44c5c 100644
--- a/src/settings/plugins/ifupdown/interface_parser.h
+++ b/src/settings/plugins/ifupdown/interface_parser.h
@@ -24,7 +24,7 @@
#ifndef _INTERFACE_PARSER_H
#define _INTERFACE_PARSER_H
-#include "nm-glib.h"
+#include "nm-default.h"
typedef struct _if_data
{
diff --git a/src/settings/plugins/ifupdown/nm-ifupdown-connection.c b/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
index 49c2328a09..d66789abca 100644
--- a/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
+++ b/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
@@ -30,7 +30,7 @@
#include <nm-setting-wireless-security.h>
#include <nm-settings-connection.h>
#include <nm-system-config-interface.h>
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-ifupdown-connection.h"
#include "parser.h"
diff --git a/src/settings/plugins/ifupdown/nm-ifupdown-connection.h b/src/settings/plugins/ifupdown/nm-ifupdown-connection.h
index bc2df73123..54c219f4e7 100644
--- a/src/settings/plugins/ifupdown/nm-ifupdown-connection.h
+++ b/src/settings/plugins/ifupdown/nm-ifupdown-connection.h
@@ -25,7 +25,7 @@
#define __NETWORKMANAGER_IFUPDOWN_CONNECTION_H__
#include <nm-settings-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "interface_parser.h"
G_BEGIN_DECLS
diff --git a/src/settings/plugins/ifupdown/parser.c b/src/settings/plugins/ifupdown/parser.c
index 15081a4c59..1f9553def8 100644
--- a/src/settings/plugins/ifupdown/parser.c
+++ b/src/settings/plugins/ifupdown/parser.c
@@ -31,7 +31,7 @@
#include "nm-core-internal.h"
#include "nm-system-config-interface.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "parser.h"
#include "plugin.h"
diff --git a/src/settings/plugins/ifupdown/plugin.c b/src/settings/plugins/ifupdown/plugin.c
index f2a700c190..6e676cac2b 100644
--- a/src/settings/plugins/ifupdown/plugin.c
+++ b/src/settings/plugins/ifupdown/plugin.c
@@ -30,7 +30,7 @@
#include <glib/gi18n.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "interface_parser.h"
#include "nm-dbus-interface.h"
@@ -46,7 +46,6 @@
#include "plugin.h"
#include "parser.h"
-#include "nm-logging.h"
#include "nm-config.h"
#include <arpa/inet.h>
diff --git a/src/settings/plugins/ifupdown/plugin.h b/src/settings/plugins/ifupdown/plugin.h
index a9aa56f45a..8eab4f2ffa 100644
--- a/src/settings/plugins/ifupdown/plugin.h
+++ b/src/settings/plugins/ifupdown/plugin.h
@@ -24,7 +24,7 @@
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
-#include "nm-glib.h"
+#include "nm-default.h"
#define PLUGIN_NAME "ifupdown"
diff --git a/src/settings/plugins/ifupdown/tests/test-ifupdown.c b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
index edadd283e3..24e8afdc8b 100644
--- a/src/settings/plugins/ifupdown/tests/test-ifupdown.c
+++ b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
@@ -22,12 +22,10 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
-#include "nm-logging.h"
#include "interface_parser.h"
#include "parser.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/settings/plugins/keyfile/common.h b/src/settings/plugins/keyfile/common.h
index 871a745923..19fa18c997 100644
--- a/src/settings/plugins/keyfile/common.h
+++ b/src/settings/plugins/keyfile/common.h
@@ -21,7 +21,7 @@
#ifndef __COMMON_H__
#define __COMMON_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#define KEYFILE_PLUGIN_NAME "keyfile"
#define KEYFILE_PLUGIN_INFO "(c) 2007 - 2015 Red Hat, Inc. To report bugs please use the NetworkManager mailing list."
diff --git a/src/settings/plugins/keyfile/nm-keyfile-connection.c b/src/settings/plugins/keyfile/nm-keyfile-connection.c
index 744ae9ccf3..06504a99b6 100644
--- a/src/settings/plugins/keyfile/nm-keyfile-connection.c
+++ b/src/settings/plugins/keyfile/nm-keyfile-connection.c
@@ -27,6 +27,7 @@
#include <nm-setting-connection.h>
#include <nm-utils.h>
+#include "nm-default.h"
#include "nm-system-config-interface.h"
#include "nm-dbus-glib-types.h"
#include "nm-keyfile-connection.h"
@@ -34,7 +35,6 @@
#include "writer.h"
#include "common.h"
#include "utils.h"
-#include "gsystem-local-alloc.h"
#include "nm-logging.h"
G_DEFINE_TYPE (NMKeyfileConnection, nm_keyfile_connection, NM_TYPE_SETTINGS_CONNECTION)
diff --git a/src/settings/plugins/keyfile/plugin.c b/src/settings/plugins/keyfile/plugin.c
index 98c4fc513d..467cbdbf0e 100644
--- a/src/settings/plugins/keyfile/plugin.c
+++ b/src/settings/plugins/keyfile/plugin.c
@@ -34,8 +34,7 @@
#include <nm-setting-connection.h>
#include <nm-utils.h>
#include "nm-config.h"
-#include "nm-logging.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-core-internal.h"
#include "plugin.h"
@@ -44,7 +43,6 @@
#include "writer.h"
#include "common.h"
#include "utils.h"
-#include "gsystem-local-alloc.h"
static void system_config_interface_init (NMSystemConfigInterface *system_config_interface_class);
diff --git a/src/settings/plugins/keyfile/plugin.h b/src/settings/plugins/keyfile/plugin.h
index 4d77a92596..143fead522 100644
--- a/src/settings/plugins/keyfile/plugin.h
+++ b/src/settings/plugins/keyfile/plugin.h
@@ -22,7 +22,7 @@
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
-#include "nm-glib.h"
+#include "nm-default.h"
#define SC_TYPE_PLUGIN_KEYFILE (sc_plugin_keyfile_get_type ())
#define SC_PLUGIN_KEYFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SC_TYPE_PLUGIN_KEYFILE, SCPluginKeyfile))
diff --git a/src/settings/plugins/keyfile/reader.c b/src/settings/plugins/keyfile/reader.c
index bd08c17d04..1c984a16d4 100644
--- a/src/settings/plugins/keyfile/reader.c
+++ b/src/settings/plugins/keyfile/reader.c
@@ -25,7 +25,7 @@
#include "reader.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-keyfile-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/keyfile/reader.h b/src/settings/plugins/keyfile/reader.h
index 44bf55cb2d..a8021cb744 100644
--- a/src/settings/plugins/keyfile/reader.h
+++ b/src/settings/plugins/keyfile/reader.h
@@ -24,7 +24,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
NMConnection *nm_keyfile_plugin_connection_from_file (const char *filename, GError **error);
diff --git a/src/settings/plugins/keyfile/tests/test-keyfile.c b/src/settings/plugins/keyfile/tests/test-keyfile.c
index 28e9eb447f..375f0d8383 100644
--- a/src/settings/plugins/keyfile/tests/test-keyfile.c
+++ b/src/settings/plugins/keyfile/tests/test-keyfile.c
@@ -29,7 +29,7 @@
#include <sys/socket.h>
#include "nm-core-internal.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "reader.h"
#include "writer.h"
diff --git a/src/settings/plugins/keyfile/utils.c b/src/settings/plugins/keyfile/utils.c
index 1685e22b53..4300b0dcb4 100644
--- a/src/settings/plugins/keyfile/utils.c
+++ b/src/settings/plugins/keyfile/utils.c
@@ -22,8 +22,7 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-glib.h"
-#include "gsystem-local-alloc.h"
+#include "nm-default.h"
#include "utils.h"
#include <nm-setting-wired.h>
#include <nm-setting-wireless.h>
diff --git a/src/settings/plugins/keyfile/utils.h b/src/settings/plugins/keyfile/utils.h
index a4c136500b..427cd5f64d 100644
--- a/src/settings/plugins/keyfile/utils.h
+++ b/src/settings/plugins/keyfile/utils.h
@@ -21,7 +21,7 @@
#ifndef _UTILS_H_
#define _UTILS_H_
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#define NM_KEYFILE_CONNECTION_LOG_PATH(path) str_if_set (path,"in-memory")
diff --git a/src/settings/plugins/keyfile/writer.c b/src/settings/plugins/keyfile/writer.c
index d5c087d2f7..d3c292bdcf 100644
--- a/src/settings/plugins/keyfile/writer.c
+++ b/src/settings/plugins/keyfile/writer.c
@@ -27,13 +27,11 @@
#include <errno.h>
#include <string.h>
-#include "nm-glib.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "writer.h"
#include "common.h"
#include "utils.h"
#include "nm-keyfile-internal.h"
-#include "gsystem-local-alloc.h"
typedef struct {
const char *keyfile_dir;
diff --git a/src/settings/plugins/keyfile/writer.h b/src/settings/plugins/keyfile/writer.h
index e7bb346c20..25f44e941e 100644
--- a/src/settings/plugins/keyfile/writer.h
+++ b/src/settings/plugins/keyfile/writer.h
@@ -24,7 +24,7 @@
#include <nm-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
gboolean nm_keyfile_plugin_write_connection (NMConnection *connection,
const char *existing_path,
diff --git a/src/supplicant-manager/nm-supplicant-config.c b/src/supplicant-manager/nm-supplicant-config.c
index 62fc8e0a43..722645dd9c 100644
--- a/src/supplicant-manager/nm-supplicant-config.c
+++ b/src/supplicant-manager/nm-supplicant-config.c
@@ -25,10 +25,9 @@
#include <stdlib.h>
#include <dbus/dbus-glib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-config.h"
#include "nm-supplicant-settings-verify.h"
-#include "nm-logging.h"
#include "nm-setting.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
diff --git a/src/supplicant-manager/nm-supplicant-config.h b/src/supplicant-manager/nm-supplicant-config.h
index 5b5356cd48..76a404ddd7 100644
--- a/src/supplicant-manager/nm-supplicant-config.h
+++ b/src/supplicant-manager/nm-supplicant-config.h
@@ -25,7 +25,7 @@
#include <nm-setting-wireless.h>
#include <nm-setting-wireless-security.h>
#include <nm-setting-8021x.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-types.h"
G_BEGIN_DECLS
diff --git a/src/supplicant-manager/nm-supplicant-interface.c b/src/supplicant-manager/nm-supplicant-interface.c
index 56bd5dc46a..854a774a47 100644
--- a/src/supplicant-manager/nm-supplicant-interface.c
+++ b/src/supplicant-manager/nm-supplicant-interface.c
@@ -24,12 +24,10 @@
#include <stdio.h>
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-supplicant-interface.h"
-#include "nm-logging.h"
#include "nm-supplicant-config.h"
-#include "gsystem-local-alloc.h"
#include "nm-core-internal.h"
#include "nm-dbus-compat.h"
diff --git a/src/supplicant-manager/nm-supplicant-interface.h b/src/supplicant-manager/nm-supplicant-interface.h
index 9d930f2f8b..79c88dabaa 100644
--- a/src/supplicant-manager/nm-supplicant-interface.h
+++ b/src/supplicant-manager/nm-supplicant-interface.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_SUPPLICANT_INTERFACE_H__
#define __NETWORKMANAGER_SUPPLICANT_INTERFACE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-types.h"
/*
diff --git a/src/supplicant-manager/nm-supplicant-manager.c b/src/supplicant-manager/nm-supplicant-manager.c
index fff5c079ee..e0b132e8bd 100644
--- a/src/supplicant-manager/nm-supplicant-manager.c
+++ b/src/supplicant-manager/nm-supplicant-manager.c
@@ -24,10 +24,9 @@
#include <string.h>
#include <dbus/dbus.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-manager.h"
#include "nm-supplicant-interface.h"
-#include "nm-logging.h"
#include "nm-core-internal.h"
#define NM_SUPPLICANT_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
diff --git a/src/supplicant-manager/nm-supplicant-manager.h b/src/supplicant-manager/nm-supplicant-manager.h
index 0378a4e0e8..d7456467de 100644
--- a/src/supplicant-manager/nm-supplicant-manager.h
+++ b/src/supplicant-manager/nm-supplicant-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_SUPPLICANT_MANAGER_H__
#define __NETWORKMANAGER_SUPPLICANT_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-types.h"
#include "nm-device.h"
diff --git a/src/supplicant-manager/nm-supplicant-settings-verify.c b/src/supplicant-manager/nm-supplicant-settings-verify.c
index 1114befedc..f2d5654053 100644
--- a/src/supplicant-manager/nm-supplicant-settings-verify.c
+++ b/src/supplicant-manager/nm-supplicant-settings-verify.c
@@ -25,7 +25,7 @@
#include <string.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-supplicant-settings-verify.h"
struct Opt {
diff --git a/src/supplicant-manager/tests/test-supplicant-config.c b/src/supplicant-manager/tests/test-supplicant-config.c
index db4342fec7..9e163606ce 100644
--- a/src/supplicant-manager/tests/test-supplicant-config.c
+++ b/src/supplicant-manager/tests/test-supplicant-config.c
@@ -36,7 +36,7 @@
#include "nm-supplicant-config.h"
#include "nm-supplicant-settings-verify.h"
-#include "nm-logging.h"
+#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h
index 10592fdbce..d140b9c260 100644
--- a/src/systemd/nm-sd-adapt.h
+++ b/src/systemd/nm-sd-adapt.h
@@ -39,7 +39,7 @@
#include <net/if_arp.h>
#include <sys/resource.h>
-#include "nm-logging.h"
+#include "nm-default.h"
/* Missing in Linux 3.2.0, in Ubuntu 12.04 */
#ifndef BPF_XOR
diff --git a/src/tests/config/test-config.c b/src/tests/config/test-config.c
index beb2a29115..281a5143f4 100644
--- a/src/tests/config/test-config.c
+++ b/src/tests/config/test-config.c
@@ -24,10 +24,9 @@
#include "nm-config.h"
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-test-device.h"
#include "nm-fake-platform.h"
-#include "nm-logging.h"
#include "nm-bus-manager.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-dcb.c b/src/tests/test-dcb.c
index b6ca0b76ad..35f1ed0fad 100644
--- a/src/tests/test-dcb.c
+++ b/src/tests/test-dcb.c
@@ -22,9 +22,8 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-dcb.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c
index e652abe342..b56b067195 100644
--- a/src/tests/test-general-with-expect.c
+++ b/src/tests/test-general-with-expect.c
@@ -26,9 +26,8 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
#include "nm-multi-index.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-general.c b/src/tests/test-general.c
index 129802db75..ba3d958fb3 100644
--- a/src/tests/test-general.c
+++ b/src/tests/test-general.c
@@ -23,9 +23,8 @@
#include <string.h>
#include <errno.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
-#include "nm-logging.h"
#include "nm-core-internal.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-ip4-config.c b/src/tests/test-ip4-config.c
index 0bf050663b..828bb3417a 100644
--- a/src/tests/test-ip4-config.c
+++ b/src/tests/test-ip4-config.c
@@ -23,10 +23,9 @@
#include <string.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-ip4-config.h"
#include "nm-platform.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-ip6-config.c b/src/tests/test-ip6-config.c
index 1bac506827..8b59f6c477 100644
--- a/src/tests/test-ip6-config.c
+++ b/src/tests/test-ip6-config.c
@@ -23,10 +23,9 @@
#include <string.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-ip6-config.h"
-#include "nm-logging.h"
#include "nm-platform.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-resolvconf-capture.c b/src/tests/test-resolvconf-capture.c
index f8d3e9d450..db7006ba66 100644
--- a/src/tests/test-resolvconf-capture.c
+++ b/src/tests/test-resolvconf-capture.c
@@ -23,12 +23,11 @@
#include <string.h>
#include <arpa/inet.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
#include "nm-platform.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-route-manager.c b/src/tests/test-route-manager.c
index 6b31fe1959..fd9af1bb20 100644
--- a/src/tests/test-route-manager.c
+++ b/src/tests/test-route-manager.c
@@ -23,12 +23,11 @@
#include <arpa/inet.h>
#include <linux/rtnetlink.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "test-common.h"
#include "nm-platform.h"
#include "nm-route-manager.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-wired-defname.c b/src/tests/test-wired-defname.c
index da693c9a3a..989345d805 100644
--- a/src/tests/test-wired-defname.c
+++ b/src/tests/test-wired-defname.c
@@ -23,9 +23,8 @@
#include <nm-simple-connection.h>
#include <nm-setting-connection.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device-ethernet-utils.h"
-#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c
index 680fccbd46..3d14fb2db2 100644
--- a/src/vpn-manager/nm-vpn-connection.c
+++ b/src/vpn-manager/nm-vpn-connection.c
@@ -28,12 +28,11 @@
#include <errno.h>
#include <stdlib.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-connection.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
#include "nm-platform.h"
-#include "nm-logging.h"
#include "nm-active-connection.h"
#include "nm-dbus-glib-types.h"
#include "NetworkManagerUtils.h"
@@ -44,7 +43,6 @@
#include "nm-default-route-manager.h"
#include "nm-route-manager.h"
#include "nm-firewall-manager.h"
-#include "gsystem-local-alloc.h"
#include "nm-vpn-connection-glue.h"
diff --git a/src/vpn-manager/nm-vpn-manager.c b/src/vpn-manager/nm-vpn-manager.c
index 8dc46c41bf..d7947b4621 100644
--- a/src/vpn-manager/nm-vpn-manager.c
+++ b/src/vpn-manager/nm-vpn-manager.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-manager.h"
#include "nm-vpn-service.h"
#include "nm-vpn-connection.h"
@@ -31,8 +31,6 @@
#include "nm-vpn-dbus-interface.h"
#include "nm-core-internal.h"
#include "nm-enum-types.h"
-#include "nm-logging.h"
-#include "gsystem-local-alloc.h"
G_DEFINE_TYPE (NMVpnManager, nm_vpn_manager, G_TYPE_OBJECT)
diff --git a/src/vpn-manager/nm-vpn-manager.h b/src/vpn-manager/nm-vpn-manager.h
index c7fe2b1f80..2034e077ad 100644
--- a/src/vpn-manager/nm-vpn-manager.h
+++ b/src/vpn-manager/nm-vpn-manager.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_VPN_MANAGER_H__
#define __NETWORKMANAGER_VPN_MANAGER_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-connection.h"
#define NM_TYPE_VPN_MANAGER (nm_vpn_manager_get_type ())
diff --git a/src/vpn-manager/nm-vpn-service.c b/src/vpn-manager/nm-vpn-service.c
index 4661ab4223..c96242c940 100644
--- a/src/vpn-manager/nm-vpn-service.c
+++ b/src/vpn-manager/nm-vpn-service.c
@@ -27,9 +27,8 @@
#include <signal.h>
#include <unistd.h>
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-vpn-service.h"
-#include "nm-logging.h"
#include "nm-vpn-manager.h"
G_DEFINE_TYPE (NMVpnService, nm_vpn_service, G_TYPE_OBJECT)
diff --git a/src/vpn-manager/nm-vpn-service.h b/src/vpn-manager/nm-vpn-service.h
index a748d32f39..c43d7cd428 100644
--- a/src/vpn-manager/nm-vpn-service.h
+++ b/src/vpn-manager/nm-vpn-service.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_VPN_SERVICE_H__
#define __NETWORKMANAGER_VPN_SERVICE_H__
-#include "nm-glib.h"
+#include "nm-default.h"
#include "nm-device.h"
#include "nm-vpn-connection.h"
#include "nm-vpn-plugin-info.h"