summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-11-21 00:43:52 +0100
committerThomas Haller <thaller@redhat.com>2016-11-21 14:26:37 +0100
commit44ecb41593bc627d8f4529e74de4a549cf24a695 (patch)
treedbaecdedb38a3a533a0a05a19fcc208dfb2b3b7a /src/devices
parenta65762ca332ee9ba5b80e66c901e5e82bc90f135 (diff)
downloadNetworkManager-44ecb41593bc627d8f4529e74de4a549cf24a695.tar.gz
build: don't add subdirectories to include search path but require qualified include
Keep the include paths clean and separate. We use directories to group source files together. That makes sense (I guess), but then we should use this grouping also when including files. Thus require to #include files with their path relative to "src/". Also, we build various artifacts from the "src/" tree. Instead of having individual CFLAGS for each artifact in Makefile.am, the CFLAGS should be unified. Previously, the CFLAGS for each artifact differ and are inconsistent in which paths they add to the search path. Fix the inconsistency by just don't add the paths at all.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/adsl/nm-atm-manager.c4
-rw-r--r--src/devices/adsl/nm-device-adsl.c6
-rw-r--r--src/devices/adsl/nm-device-adsl.h2
-rw-r--r--src/devices/bluetooth/nm-bluez-device.c4
-rw-r--r--src/devices/bluetooth/nm-bluez-manager.c6
-rw-r--r--src/devices/bluetooth/nm-bluez4-adapter.c2
-rw-r--r--src/devices/bluetooth/nm-bluez4-manager.c2
-rw-r--r--src/devices/bluetooth/nm-bluez5-manager.c2
-rw-r--r--src/devices/bluetooth/nm-device-bt.c6
-rw-r--r--src/devices/bluetooth/nm-device-bt.h5
-rw-r--r--src/devices/nm-arping-manager.c2
-rw-r--r--src/devices/nm-device-bond.c2
-rw-r--r--src/devices/nm-device-bridge.c2
-rw-r--r--src/devices/nm-device-ethernet.c14
-rw-r--r--src/devices/nm-device-factory.c2
-rw-r--r--src/devices/nm-device-generic.c2
-rw-r--r--src/devices/nm-device-infiniband.c2
-rw-r--r--src/devices/nm-device-ip-tunnel.c4
-rw-r--r--src/devices/nm-device-macvlan.c4
-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.c6
-rw-r--r--src/devices/nm-device-vxlan.c4
-rw-r--r--src/devices/nm-device.c16
-rw-r--r--src/devices/nm-lldp-listener.c2
-rw-r--r--src/devices/team/nm-device-team.c6
-rw-r--r--src/devices/team/nm-device-team.h2
-rw-r--r--src/devices/team/nm-team-factory.c4
-rw-r--r--src/devices/tests/test-arping.c4
-rw-r--r--src/devices/tests/test-lldp.c4
-rw-r--r--src/devices/wifi/nm-device-olpc-mesh.c8
-rw-r--r--src/devices/wifi/nm-device-olpc-mesh.h2
-rw-r--r--src/devices/wifi/nm-device-wifi.c18
-rw-r--r--src/devices/wifi/nm-device-wifi.h2
-rw-r--r--src/devices/wifi/nm-wifi-factory.c6
-rw-r--r--src/devices/wifi/tests/test-general.c2
-rw-r--r--src/devices/wwan/nm-device-modem.c6
-rw-r--r--src/devices/wwan/nm-device-modem.h2
-rw-r--r--src/devices/wwan/nm-modem-broadband.c4
-rw-r--r--src/devices/wwan/nm-modem-ofono.c4
-rw-r--r--src/devices/wwan/nm-modem.c4
-rw-r--r--src/devices/wwan/nm-modem.h2
-rw-r--r--src/devices/wwan/nm-wwan-factory.c4
43 files changed, 95 insertions, 94 deletions
diff --git a/src/devices/adsl/nm-atm-manager.c b/src/devices/adsl/nm-atm-manager.c
index c70a6601b1..2ff2fc1840 100644
--- a/src/devices/adsl/nm-atm-manager.c
+++ b/src/devices/adsl/nm-atm-manager.c
@@ -26,8 +26,8 @@
#include "nm-setting-adsl.h"
#include "nm-device-adsl.h"
-#include "nm-device-factory.h"
-#include "nm-platform.h"
+#include "devices/nm-device-factory.h"
+#include "platform/nm-platform.h"
/*****************************************************************************/
diff --git a/src/devices/adsl/nm-device-adsl.c b/src/devices/adsl/nm-device-adsl.c
index 07eb7a2e7f..be398923d1 100644
--- a/src/devices/adsl/nm-device-adsl.c
+++ b/src/devices/adsl/nm-device-adsl.c
@@ -32,8 +32,8 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "devices/nm-device-private.h"
+#include "platform/nm-platform.h"
#include "ppp/nm-ppp-manager.h"
#include "ppp/nm-ppp-status.h"
#include "nm-setting-adsl.h"
@@ -41,7 +41,7 @@
#include "nmdbus-device-adsl.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF (NMDeviceAdsl);
/*****************************************************************************/
diff --git a/src/devices/adsl/nm-device-adsl.h b/src/devices/adsl/nm-device-adsl.h
index ff8d1f999d..351c8e7ae1 100644
--- a/src/devices/adsl/nm-device-adsl.h
+++ b/src/devices/adsl/nm-device-adsl.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_DEVICE_ADSL_H__
#define __NETWORKMANAGER_DEVICE_ADSL_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#define NM_TYPE_DEVICE_ADSL (nm_device_adsl_get_type ())
#define NM_DEVICE_ADSL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_ADSL, NMDeviceAdsl))
diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c
index 6e705f93da..4d2e9b1d7e 100644
--- a/src/devices/bluetooth/nm-bluez-device.c
+++ b/src/devices/bluetooth/nm-bluez-device.c
@@ -28,8 +28,8 @@
#include "nm-core-internal.h"
#include "nm-bt-error.h"
#include "nm-bluez-common.h"
-#include "nm-settings.h"
-#include "nm-settings-connection.h"
+#include "settings/nm-settings.h"
+#include "settings/nm-settings-connection.h"
#include "NetworkManagerUtils.h"
#if WITH_BLUEZ5_DUN
diff --git a/src/devices/bluetooth/nm-bluez-manager.c b/src/devices/bluetooth/nm-bluez-manager.c
index 7a7093ce2a..58fa9b016d 100644
--- a/src/devices/bluetooth/nm-bluez-manager.c
+++ b/src/devices/bluetooth/nm-bluez-manager.c
@@ -25,16 +25,16 @@
#include <stdlib.h>
#include <gmodule.h>
-#include "nm-device-factory.h"
+#include "devices/nm-device-factory.h"
#include "nm-setting-bluetooth.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-bluez4-manager.h"
#include "nm-bluez5-manager.h"
#include "nm-bluez-device.h"
#include "nm-bluez-common.h"
#include "nm-device-bt.h"
#include "nm-core-internal.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-dbus-compat.h"
/*****************************************************************************/
diff --git a/src/devices/bluetooth/nm-bluez4-adapter.c b/src/devices/bluetooth/nm-bluez4-adapter.c
index dd684f29c2..b781def3a7 100644
--- a/src/devices/bluetooth/nm-bluez4-adapter.c
+++ b/src/devices/bluetooth/nm-bluez4-adapter.c
@@ -28,7 +28,7 @@
#include "nm-bluez-device.h"
#include "nm-bluez-common.h"
#include "nm-core-internal.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
/*****************************************************************************/
diff --git a/src/devices/bluetooth/nm-bluez4-manager.c b/src/devices/bluetooth/nm-bluez4-manager.c
index 78e892e40a..a9079a2fc0 100644
--- a/src/devices/bluetooth/nm-bluez4-manager.c
+++ b/src/devices/bluetooth/nm-bluez4-manager.c
@@ -30,7 +30,7 @@
#include "nm-bluez4-adapter.h"
#include "nm-bluez-common.h"
#include "nm-core-internal.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
/*****************************************************************************/
diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c
index 9859f74bad..88759301d5 100644
--- a/src/devices/bluetooth/nm-bluez5-manager.c
+++ b/src/devices/bluetooth/nm-bluez5-manager.c
@@ -32,7 +32,7 @@
#include "nm-bluez-device.h"
#include "nm-bluez-common.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
/*****************************************************************************/
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c
index d5ae399470..982936dab0 100644
--- a/src/devices/bluetooth/nm-device-bt.c
+++ b/src/devices/bluetooth/nm-device-bt.c
@@ -27,7 +27,7 @@
#include "nm-bluez-common.h"
#include "nm-bluez-device.h"
-#include "nm-device-private.h"
+#include "devices/nm-device-private.h"
#include "ppp/nm-ppp-manager.h"
#include "nm-setting-connection.h"
#include "nm-setting-bluetooth.h"
@@ -38,11 +38,11 @@
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
#include "nm-bt-error.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nmdbus-device-bt.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF(NMDeviceBt);
#define MM_DBUS_SERVICE "org.freedesktop.ModemManager1"
diff --git a/src/devices/bluetooth/nm-device-bt.h b/src/devices/bluetooth/nm-device-bt.h
index 2308f0e8a3..43bd42576b 100644
--- a/src/devices/bluetooth/nm-device-bt.h
+++ b/src/devices/bluetooth/nm-device-bt.h
@@ -21,9 +21,10 @@
#ifndef __NETWORKMANAGER_DEVICE_BT_H__
#define __NETWORKMANAGER_DEVICE_BT_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#include "nm-bluez-device.h"
-#include "nm-modem.h"
+
+#include "devices/wwan/nm-modem.h"
#define NM_TYPE_DEVICE_BT (nm_device_bt_get_type ())
#define NM_DEVICE_BT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_BT, NMDeviceBt))
diff --git a/src/devices/nm-arping-manager.c b/src/devices/nm-arping-manager.c
index e4cbb39e9e..7b765844ad 100644
--- a/src/devices/nm-arping-manager.c
+++ b/src/devices/nm-arping-manager.c
@@ -22,7 +22,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/nm-device-bond.c b/src/devices/nm-device-bond.c
index 853158d483..1abe60b9fa 100644
--- a/src/devices/nm-device-bond.c
+++ b/src/devices/nm-device-bond.c
@@ -27,7 +27,7 @@
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-core-internal.h"
#include "nm-ip4-config.h"
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index 8bef03be9a..72986f9396 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -26,7 +26,7 @@
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-core-internal.h"
diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c
index c1c63f1608..c3baf79510 100644
--- a/src/devices/nm-device-ethernet.c
+++ b/src/devices/nm-device-ethernet.c
@@ -35,18 +35,18 @@
#include "nm-act-request.h"
#include "nm-ip4-config.h"
#include "NetworkManagerUtils.h"
-#include "nm-supplicant-manager.h"
-#include "nm-supplicant-interface.h"
-#include "nm-supplicant-config.h"
+#include "supplicant/nm-supplicant-manager.h"
+#include "supplicant/nm-supplicant-interface.h"
+#include "supplicant/nm-supplicant-config.h"
#include "ppp/nm-ppp-manager.h"
#include "ppp/nm-ppp-status.h"
-#include "nm-platform.h"
-#include "nm-platform-utils.h"
+#include "platform/nm-platform.h"
+#include "platform/nm-platform-utils.h"
#include "nm-dcb.h"
-#include "nm-settings-connection.h"
+#include "settings/nm-settings-connection.h"
#include "nm-config.h"
#include "nm-device-ethernet-utils.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-device-factory.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c
index 87f60a716a..7049c698f8 100644
--- a/src/devices/nm-device-factory.c
+++ b/src/devices/nm-device-factory.c
@@ -28,7 +28,7 @@
#include <string.h>
#include <gmodule.h>
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-utils.h"
/*****************************************************************************/
diff --git a/src/devices/nm-device-generic.c b/src/devices/nm-device-generic.c
index 8116d9edd7..3666ad1cc2 100644
--- a/src/devices/nm-device-generic.c
+++ b/src/devices/nm-device-generic.c
@@ -23,7 +23,7 @@
#include "nm-device-generic.h"
#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-core-internal.h"
#include "nmdbus-device-generic.h"
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index 88bd7c0aef..a5b2fc97ce 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -28,7 +28,7 @@
#include "nm-device-private.h"
#include "nm-act-request.h"
#include "nm-ip4-config.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-core-internal.h"
diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c
index ee3725434e..1ab885e022 100644
--- a/src/devices/nm-device-ip-tunnel.c
+++ b/src/devices/nm-device-ip-tunnel.c
@@ -30,10 +30,10 @@
#include "nm-device-private.h"
#include "nm-manager.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-core-internal.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-act-request.h"
#include "nm-ip4-config.h"
diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c
index 7b240ec6ae..3ca3f9cd73 100644
--- a/src/devices/nm-device-macvlan.c
+++ b/src/devices/nm-device-macvlan.c
@@ -25,10 +25,10 @@
#include <string.h>
#include "nm-device-private.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-act-request.h"
#include "nm-manager.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-setting-macvlan.h"
#include "nm-setting-wired.h"
diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c
index d32caa402d..4746a3957e 100644
--- a/src/devices/nm-device-tun.c
+++ b/src/devices/nm-device-tun.c
@@ -29,7 +29,7 @@
#include "nm-act-request.h"
#include "nm-device-private.h"
#include "nm-ip4-config.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-setting-tun.h"
#include "nm-core-internal.h"
diff --git a/src/devices/nm-device-veth.c b/src/devices/nm-device-veth.c
index bb23fdaa6c..2a9e9d5fe6 100644
--- a/src/devices/nm-device-veth.c
+++ b/src/devices/nm-device-veth.c
@@ -30,7 +30,7 @@
#include "nm-device-veth.h"
#include "nm-device-private.h"
#include "nm-manager.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nmdbus-device-veth.h"
diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c
index f80f8efff1..2dcbe8a851 100644
--- a/src/devices/nm-device-vlan.c
+++ b/src/devices/nm-device-vlan.c
@@ -28,14 +28,14 @@
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-act-request.h"
#include "nm-ip4-config.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-device-factory.h"
#include "nm-manager.h"
#include "nm-core-internal.h"
-#include "nmp-object.h"
+#include "platform/nmp-object.h"
#include "nmdbus-device-vlan.h"
diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c
index a49e64c6af..4fb985f16f 100644
--- a/src/devices/nm-device-vxlan.c
+++ b/src/devices/nm-device-vxlan.c
@@ -26,12 +26,12 @@
#include "nm-device-private.h"
#include "nm-manager.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-utils.h"
#include "nm-device-factory.h"
#include "nm-setting-vxlan.h"
#include "nm-setting-wired.h"
-#include "nm-settings.h"
+#include "settings/nm-settings.h"
#include "nm-act-request.h"
#include "nm-ip4-config.h"
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 358d1c9f1f..5ddc390393 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -39,26 +39,26 @@
#include "nm-device-private.h"
#include "NetworkManagerUtils.h"
#include "nm-manager.h"
-#include "nm-platform.h"
-#include "nm-ndisc.h"
-#include "nm-lndp-ndisc.h"
-#include "nm-dhcp-manager.h"
+#include "platform/nm-platform.h"
+#include "ndisc/nm-ndisc.h"
+#include "ndisc/nm-lndp-ndisc.h"
+#include "dhcp/nm-dhcp-manager.h"
#include "nm-act-request.h"
#include "nm-proxy-config.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
#include "nm-pacrunner-manager.h"
-#include "nm-dnsmasq-manager.h"
+#include "dnsmasq/nm-dnsmasq-manager.h"
#include "nm-dhcp4-config.h"
#include "nm-dhcp6-config.h"
#include "nm-rfkill-manager.h"
#include "nm-firewall-manager.h"
-#include "nm-settings-connection.h"
-#include "nm-settings.h"
+#include "settings/nm-settings-connection.h"
+#include "settings/nm-settings.h"
#include "nm-auth-utils.h"
#include "nm-dispatcher.h"
#include "nm-config.h"
-#include "nm-dns-manager.h"
+#include "dns/nm-dns-manager.h"
#include "nm-core-internal.h"
#include "nm-default-route-manager.h"
#include "nm-route-manager.h"
diff --git a/src/devices/nm-lldp-listener.c b/src/devices/nm-lldp-listener.c
index 0c295cac92..ceec6063b0 100644
--- a/src/devices/nm-lldp-listener.c
+++ b/src/devices/nm-lldp-listener.c
@@ -25,7 +25,7 @@
#include <net/ethernet.h>
#include <errno.h>
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-utils.h"
#include "systemd/nm-sd.h"
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c
index ab195c886a..1addd2cc60 100644
--- a/src/devices/team/nm-device-team.c
+++ b/src/devices/team/nm-device-team.c
@@ -30,15 +30,15 @@
#include <stdlib.h>
#include "NetworkManagerUtils.h"
-#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "devices/nm-device-private.h"
+#include "platform/nm-platform.h"
#include "nm-core-internal.h"
#include "nm-ip4-config.h"
#include "nm-dbus-compat.h"
#include "nmdbus-device-team.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF(NMDeviceTeam);
/*****************************************************************************/
diff --git a/src/devices/team/nm-device-team.h b/src/devices/team/nm-device-team.h
index 90af2e87c5..bbb1417f0e 100644
--- a/src/devices/team/nm-device-team.h
+++ b/src/devices/team/nm-device-team.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DEVICE_TEAM_H__
#define __NETWORKMANAGER_DEVICE_TEAM_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#define NM_TYPE_DEVICE_TEAM (nm_device_team_get_type ())
#define NM_DEVICE_TEAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_TEAM, NMDeviceTeam))
diff --git a/src/devices/team/nm-team-factory.c b/src/devices/team/nm-team-factory.c
index 4a6f7b54c1..d062429f26 100644
--- a/src/devices/team/nm-team-factory.c
+++ b/src/devices/team/nm-team-factory.c
@@ -24,9 +24,9 @@
#include <gmodule.h>
#include "nm-manager.h"
-#include "nm-device-factory.h"
+#include "devices/nm-device-factory.h"
#include "nm-device-team.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-core-internal.h"
/*****************************************************************************/
diff --git a/src/devices/tests/test-arping.c b/src/devices/tests/test-arping.c
index 35bf749342..59223f11fd 100644
--- a/src/devices/tests/test-arping.c
+++ b/src/devices/tests/test-arping.c
@@ -20,8 +20,8 @@
#include "nm-default.h"
-#include "nm-arping-manager.h"
-#include "test-common.h"
+#include "devices/nm-arping-manager.h"
+#include "platform/tests/test-common.h"
#define IFACE_VETH0 "nm-test-veth0"
#define IFACE_VETH1 "nm-test-veth1"
diff --git a/src/devices/tests/test-lldp.c b/src/devices/tests/test-lldp.c
index 1fbab316e3..5d28d461df 100644
--- a/src/devices/tests/test-lldp.c
+++ b/src/devices/tests/test-lldp.c
@@ -26,10 +26,10 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include "nm-lldp-listener.h"
+#include "devices/nm-lldp-listener.h"
#include "systemd/nm-sd.h"
-#include "test-common.h"
+#include "platform/tests/test-common.h"
#include "nm-test-utils-core.h"
diff --git a/src/devices/wifi/nm-device-olpc-mesh.c b/src/devices/wifi/nm-device-olpc-mesh.c
index 78bb4ca678..456b2f114a 100644
--- a/src/devices/wifi/nm-device-olpc-mesh.c
+++ b/src/devices/wifi/nm-device-olpc-mesh.c
@@ -37,23 +37,23 @@
#include <sys/ioctl.h>
#include <errno.h>
-#include "nm-device.h"
+#include "devices/nm-device.h"
#include "nm-device-wifi.h"
-#include "nm-device-private.h"
+#include "devices/nm-device-private.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-act-request.h"
#include "nm-setting-connection.h"
#include "nm-setting-olpc-mesh.h"
#include "nm-manager.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
/* This is a bug; but we can't really change API now... */
#include "nm-vpn-dbus-interface.h"
#include "nmdbus-device-olpc-mesh.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF(NMDeviceOlpcMesh);
/*****************************************************************************/
diff --git a/src/devices/wifi/nm-device-olpc-mesh.h b/src/devices/wifi/nm-device-olpc-mesh.h
index b58dfdf7be..bf0e4da9e1 100644
--- a/src/devices/wifi/nm-device-olpc-mesh.h
+++ b/src/devices/wifi/nm-device-olpc-mesh.h
@@ -28,7 +28,7 @@
#ifndef __NETWORKMANAGER_DEVICE_OLPC_MESH_H__
#define __NETWORKMANAGER_DEVICE_OLPC_MESH_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#define NM_TYPE_DEVICE_OLPC_MESH (nm_device_olpc_mesh_get_type ())
#define NM_DEVICE_OLPC_MESH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_OLPC_MESH, NMDeviceOlpcMesh))
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index 44267125b0..997808bd6f 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -29,14 +29,14 @@
#include <errno.h>
#include "nm-common-macros.h"
-#include "nm-device.h"
-#include "nm-device-private.h"
+#include "devices/nm-device.h"
+#include "devices/nm-device-private.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-act-request.h"
-#include "nm-supplicant-manager.h"
-#include "nm-supplicant-interface.h"
-#include "nm-supplicant-config.h"
+#include "supplicant/nm-supplicant-manager.h"
+#include "supplicant/nm-supplicant-interface.h"
+#include "supplicant/nm-supplicant-config.h"
#include "nm-setting-connection.h"
#include "nm-setting-wireless.h"
#include "nm-setting-wireless-security.h"
@@ -44,16 +44,16 @@
#include "nm-setting-ip4-config.h"
#include "nm-ip4-config.h"
#include "nm-setting-ip6-config.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-auth-utils.h"
-#include "nm-settings-connection.h"
-#include "nm-settings.h"
+#include "settings/nm-settings-connection.h"
+#include "settings/nm-settings.h"
#include "nm-core-internal.h"
#include "nm-config.h"
#include "nmdbus-device-wifi.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF(NMDeviceWifi);
/* All of these are in seconds */
diff --git a/src/devices/wifi/nm-device-wifi.h b/src/devices/wifi/nm-device-wifi.h
index d2914fa21a..024fe0efe8 100644
--- a/src/devices/wifi/nm-device-wifi.h
+++ b/src/devices/wifi/nm-device-wifi.h
@@ -22,7 +22,7 @@
#ifndef __NETWORKMANAGER_DEVICE_WIFI_H__
#define __NETWORKMANAGER_DEVICE_WIFI_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#include "nm-wifi-ap.h"
#define NM_TYPE_DEVICE_WIFI (nm_device_wifi_get_type ())
diff --git a/src/devices/wifi/nm-wifi-factory.c b/src/devices/wifi/nm-wifi-factory.c
index 64ecca0827..a1752634bc 100644
--- a/src/devices/wifi/nm-wifi-factory.c
+++ b/src/devices/wifi/nm-wifi-factory.c
@@ -22,13 +22,13 @@
#include <gmodule.h>
-#include "nm-device-factory.h"
+#include "devices/nm-device-factory.h"
#include "nm-setting-wireless.h"
#include "nm-setting-olpc-mesh.h"
#include "nm-device-wifi.h"
#include "nm-device-olpc-mesh.h"
-#include "nm-settings-connection.h"
-#include "nm-platform.h"
+#include "settings/nm-settings-connection.h"
+#include "platform/nm-platform.h"
/*****************************************************************************/
diff --git a/src/devices/wifi/tests/test-general.c b/src/devices/wifi/tests/test-general.c
index 227ff5b7eb..3e61c5f0ac 100644
--- a/src/devices/wifi/tests/test-general.c
+++ b/src/devices/wifi/tests/test-general.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "nm-wifi-utils.h"
+#include "devices/wifi/nm-wifi-utils.h"
#include "nm-core-internal.h"
diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c
index 3f28581b3f..ad730ba5da 100644
--- a/src/devices/wwan/nm-device-modem.c
+++ b/src/devices/wwan/nm-device-modem.c
@@ -25,16 +25,16 @@
#include <string.h>
#include "nm-modem.h"
-#include "nm-device-private.h"
+#include "devices/nm-device-private.h"
#include "nm-rfkill-manager.h"
-#include "nm-settings-connection.h"
+#include "settings/nm-settings-connection.h"
#include "nm-modem-broadband.h"
#include "NetworkManagerUtils.h"
#include "nm-core-internal.h"
#include "nmdbus-device-modem.h"
-#include "nm-device-logging.h"
+#include "devices/nm-device-logging.h"
_LOG_DECLARE_SELF(NMDeviceModem);
/*****************************************************************************/
diff --git a/src/devices/wwan/nm-device-modem.h b/src/devices/wwan/nm-device-modem.h
index fe53de62c4..65bda8b6ef 100644
--- a/src/devices/wwan/nm-device-modem.h
+++ b/src/devices/wwan/nm-device-modem.h
@@ -21,7 +21,7 @@
#ifndef __NETWORKMANAGER_DEVICE_MODEM_H__
#define __NETWORKMANAGER_DEVICE_MODEM_H__
-#include "nm-device.h"
+#include "devices/nm-device.h"
#include "nm-modem.h"
#define NM_TYPE_DEVICE_MODEM (nm_device_modem_get_type ())
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c
index e3f097977a..e1fc45467c 100644
--- a/src/devices/wwan/nm-modem-broadband.c
+++ b/src/devices/wwan/nm-modem-broadband.c
@@ -28,8 +28,8 @@
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
-#include "nm-device-private.h"
-#include "nm-platform.h"
+#include "devices/nm-device-private.h"
+#include "platform/nm-platform.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
diff --git a/src/devices/wwan/nm-modem-ofono.c b/src/devices/wwan/nm-modem-ofono.c
index c7796e5126..41d422aab4 100644
--- a/src/devices/wwan/nm-modem-ofono.c
+++ b/src/devices/wwan/nm-modem-ofono.c
@@ -25,9 +25,9 @@
#include <string.h>
#include "nm-core-internal.h"
-#include "nm-device-private.h"
+#include "devices/nm-device-private.h"
#include "nm-modem.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-ip4-config.h"
#define VARIANT_IS_OF_TYPE_BOOLEAN(v) ((v) != NULL && ( g_variant_is_of_type ((v), G_VARIANT_TYPE_BOOLEAN) ))
diff --git a/src/devices/wwan/nm-modem.c b/src/devices/wwan/nm-modem.c
index be35eee39c..6c137c0cd1 100644
--- a/src/devices/wwan/nm-modem.c
+++ b/src/devices/wwan/nm-modem.c
@@ -28,10 +28,10 @@
#include <termios.h>
#include "nm-core-internal.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
#include "nm-setting-connection.h"
#include "NetworkManagerUtils.h"
-#include "nm-device-private.h"
+#include "devices/nm-device-private.h"
#include "nm-route-manager.h"
#include "nm-act-request.h"
#include "nm-ip4-config.h"
diff --git a/src/devices/wwan/nm-modem.h b/src/devices/wwan/nm-modem.h
index 97c4e4cc73..c590b9e440 100644
--- a/src/devices/wwan/nm-modem.h
+++ b/src/devices/wwan/nm-modem.h
@@ -23,7 +23,7 @@
#define __NETWORKMANAGER_MODEM_H__
#include "ppp/nm-ppp-manager.h"
-#include "nm-device.h"
+#include "devices/nm-device.h"
#define NM_TYPE_MODEM (nm_modem_get_type ())
#define NM_MODEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_MODEM, NMModem))
diff --git a/src/devices/wwan/nm-wwan-factory.c b/src/devices/wwan/nm-wwan-factory.c
index 458ab2e17a..fa4c8dbbf6 100644
--- a/src/devices/wwan/nm-wwan-factory.c
+++ b/src/devices/wwan/nm-wwan-factory.c
@@ -23,12 +23,12 @@
#include <string.h>
#include <gmodule.h>
-#include "nm-device-factory.h"
+#include "devices/nm-device-factory.h"
#include "nm-setting-gsm.h"
#include "nm-setting-cdma.h"
#include "nm-modem-manager.h"
#include "nm-device-modem.h"
-#include "nm-platform.h"
+#include "platform/nm-platform.h"
/*****************************************************************************/