build: cleanup default includes
authorThomas Haller <thaller@redhat.com>
Fri, 12 Feb 2016 13:44:52 +0000 (14:44 +0100)
committerThomas Haller <thaller@redhat.com>
Fri, 12 Feb 2016 14:36:01 +0000 (15:36 +0100)
commit2c2d9d2e4cca422a53968cdcb6def420dd77961e
tree3c05e45abdd2e3442f4b18123a1818b03c999871
parent97be12b6625e738856814403195b60f7ebc13bfe
build: cleanup default includes

- "gsystem-local-alloc.h" and <gio/gio.h> are already included via
  "nm-default.h". No need to include them separately.

- include "nm-macros-internal.h" via "nm-default.h" and drop all
  explict includes.

- in the modified files, ensure that we always include "config.h"
  and "nm-default.h" first. As second, include the header file
  for the current source file (if applicable). Then follow external
  includes and finally internal nm includes.

- include nm headers inside source code files with quotes

- internal header files don't need to include default headers.
  They can savely assume that "nm-default.h" is already included
  and with it glib, nm-glib.h, nm-macros-internal.h, etc.
48 files changed:
callouts/nm-dispatcher.c
clients/cli/settings.c
clients/common/nm-vpn-helpers.c
libnm-core/nm-keyfile-reader.c
libnm-core/nm-keyfile-writer.c
libnm-core/nm-setting-8021x.c
libnm-core/nm-setting-connection.c
libnm-core/nm-setting-ip-tunnel.c
libnm-core/nm-setting-ip6-config.c
libnm-core/nm-setting-vlan.c
libnm-core/nm-setting-wired.c
libnm-core/nm-setting.c
libnm-core/nm-utils.c
libnm-core/nm-vpn-editor-plugin.c
libnm-core/nm-vpn-plugin-info.c
libnm-core/tests/test-keyfile.c
libnm-glib/nm-client.c
libnm-glib/nm-vpn-plugin.c
libnm-util/nm-setting-8021x.c
libnm-util/nm-utils.c
libnm/nm-access-point.c
libnm/nm-dbus-helpers.c
libnm/nm-device-wifi.c
libnm/nm-device.c
libnm/nm-manager.c
libnm/nm-object.c
libnm/nm-remote-settings.c
libnm/nm-vpn-plugin-old.c
libnm/nm-vpn-service-plugin.c
shared/nm-default.h
shared/nm-test-utils.h
src/devices/nm-arping-manager.h
src/devices/nm-lldp-listener.h
src/devices/wwan/nm-modem.c
src/dhcp-manager/nm-dhcp-client.c
src/dhcp-manager/nm-dhcp-dhclient-utils.c
src/dhcp-manager/tests/test-dhcp-dhclient.c
src/nm-audit-manager.c
src/nm-config-data.c
src/nm-firewall-manager.c
src/nm-ip4-config.c
src/nm-ip6-config.c
src/nm-logging.h
src/nm-multi-index.c
src/platform/nmp-object.h
src/platform/tests/test-nmp-object.c
src/settings/plugins/ifcfg-rh/utils.c
src/settings/plugins/ifcfg-rh/writer.c