libnm: add NetworkManager.h, disallow including individual headers
authorDan Winship <danw@gnome.org>
Sun, 6 Jul 2014 20:53:02 +0000 (16:53 -0400)
committerDan Winship <danw@gnome.org>
Fri, 1 Aug 2014 18:34:40 +0000 (14:34 -0400)
Add NetworkManager.h, which includes all of the other NM header, and
require all external users of libnm to use that rather than the
individual headers.

(An exception is made for nm-dbus-interface.h,
nm-vpn-dbus-interface.h, and nm-version.h, which can be included
separately.)

162 files changed:
callouts/Makefile.am
callouts/tests/Makefile.am
callouts/tests/test-dispatcher-envp.c
clients/cli/common.h
clients/cli/connections.c
clients/cli/devices.c
clients/cli/network-manager.c
clients/cli/nmcli.c
clients/cli/nmcli.h
clients/cli/settings.c
clients/cli/settings.h
clients/cli/utils.h
clients/nm-online.c
clients/tui/nm-editor-bindings.h
clients/tui/nm-editor-utils.c
clients/tui/nm-editor-utils.h
clients/tui/nmt-connect-connection-list.c
clients/tui/nmt-device-entry.c
clients/tui/nmt-device-entry.h
clients/tui/nmt-edit-connection-list.h
clients/tui/nmt-editor-page.h
clients/tui/nmt-editor.h
clients/tui/nmt-mac-entry.c
clients/tui/nmt-page-main.c
clients/tui/nmt-page-vlan.c
clients/tui/nmt-page-wifi.c
clients/tui/nmt-route-editor.h
clients/tui/nmt-route-entry.c
clients/tui/nmt-route-table.c
clients/tui/nmt-secret-agent.c
clients/tui/nmt-secret-agent.h
clients/tui/nmt-slave-list.c
clients/tui/nmtui-connect.c
clients/tui/nmtui-edit.c
clients/tui/nmtui.c
clients/tui/nmtui.h
examples/C/glib/add-connection-dbus-glib.c
examples/C/glib/add-connection-libnm.c
examples/C/glib/get-active-connections-dbus-glib.c
examples/C/glib/get-ap-info-libnm.c
examples/C/glib/list-connections-dbus-glib.c
examples/C/glib/list-connections-libnm.c
libnm-core/Makefile.am
libnm-core/nm-connection.c
libnm-core/nm-connection.h
libnm-core/nm-setting-8021x.c
libnm-core/nm-setting-8021x.h
libnm-core/nm-setting-adsl.c
libnm-core/nm-setting-adsl.h
libnm-core/nm-setting-bluetooth.c
libnm-core/nm-setting-bluetooth.h
libnm-core/nm-setting-bond.c
libnm-core/nm-setting-bond.h
libnm-core/nm-setting-bridge-port.c
libnm-core/nm-setting-bridge-port.h
libnm-core/nm-setting-bridge.c
libnm-core/nm-setting-bridge.h
libnm-core/nm-setting-cdma.c
libnm-core/nm-setting-cdma.h
libnm-core/nm-setting-connection.c
libnm-core/nm-setting-connection.h
libnm-core/nm-setting-dcb.c
libnm-core/nm-setting-dcb.h
libnm-core/nm-setting-generic.c
libnm-core/nm-setting-generic.h
libnm-core/nm-setting-gsm.c
libnm-core/nm-setting-gsm.h
libnm-core/nm-setting-infiniband.c
libnm-core/nm-setting-infiniband.h
libnm-core/nm-setting-ip4-config.c
libnm-core/nm-setting-ip4-config.h
libnm-core/nm-setting-ip6-config.c
libnm-core/nm-setting-ip6-config.h
libnm-core/nm-setting-olpc-mesh.h
libnm-core/nm-setting-ppp.c
libnm-core/nm-setting-ppp.h
libnm-core/nm-setting-pppoe.c
libnm-core/nm-setting-pppoe.h
libnm-core/nm-setting-serial.c
libnm-core/nm-setting-serial.h
libnm-core/nm-setting-team-port.c
libnm-core/nm-setting-team-port.h
libnm-core/nm-setting-team.c
libnm-core/nm-setting-team.h
libnm-core/nm-setting-vlan.c
libnm-core/nm-setting-vlan.h
libnm-core/nm-setting-vpn.c
libnm-core/nm-setting-vpn.h
libnm-core/nm-setting-wimax.c
libnm-core/nm-setting-wimax.h
libnm-core/nm-setting-wired.c
libnm-core/nm-setting-wired.h
libnm-core/nm-setting-wireless-security.c
libnm-core/nm-setting-wireless-security.h
libnm-core/nm-setting-wireless.c
libnm-core/nm-setting-wireless.h
libnm-core/nm-setting.c
libnm-core/nm-setting.h
libnm-core/nm-utils.c
libnm-core/nm-utils.h
libnm-core/tests/Makefile.am
libnm/Makefile.am
libnm/NetworkManager.h [new file with mode: 0644]
libnm/nm-access-point.h
libnm/nm-active-connection.h
libnm/nm-client.h
libnm/nm-device-adsl.h
libnm/nm-device-bond.h
libnm/nm-device-bridge.h
libnm/nm-device-bt.h
libnm/nm-device-ethernet.h
libnm/nm-device-generic.h
libnm/nm-device-infiniband.h
libnm/nm-device-modem.h
libnm/nm-device-olpc-mesh.h
libnm/nm-device-team.h
libnm/nm-device-vlan.h
libnm/nm-device-wifi.h
libnm/nm-device-wimax.h
libnm/nm-device.h
libnm/nm-dhcp4-config.h
libnm/nm-dhcp6-config.h
libnm/nm-ip4-config.h
libnm/nm-ip6-config.h
libnm/nm-object.h
libnm/nm-remote-connection.h
libnm/nm-remote-settings.h
libnm/nm-secret-agent.h
libnm/nm-types.h
libnm/nm-vpn-connection.h
libnm/nm-vpn-plugin-ui-interface.h
libnm/nm-vpn-plugin-utils.h
libnm/nm-vpn-plugin.h
libnm/nm-wimax-nsp.h
libnm/tests/Makefile.am
src/Makefile.am
src/devices/adsl/Makefile.am
src/devices/bluetooth/Makefile.am
src/devices/team/Makefile.am
src/devices/wifi/Makefile.am
src/devices/wifi/tests/Makefile.am
src/devices/wimax/Makefile.am
src/devices/wwan/Makefile.am
src/dhcp-manager/tests/Makefile.am
src/dnsmasq-manager/tests/Makefile.am
src/platform/tests/Makefile.am
src/ppp-manager/Makefile.am
src/rdisc/tests/Makefile.am
src/settings/plugins/example/Makefile.am
src/settings/plugins/ifcfg-rh/Makefile.am
src/settings/plugins/ifcfg-rh/tests/Makefile.am
src/settings/plugins/ifcfg-suse/Makefile.am
src/settings/plugins/ifnet/Makefile.am
src/settings/plugins/ifnet/tests/Makefile.am
src/settings/plugins/ifupdown/Makefile.am
src/settings/plugins/ifupdown/tests/Makefile.am
src/settings/plugins/keyfile/Makefile.am
src/settings/plugins/keyfile/tests/Makefile.am
src/settings/tests/Makefile.am
src/supplicant-manager/tests/Makefile.am
src/tests/Makefile.am
src/tests/config/Makefile.am

index fc8e94f..1e7001c 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        -DNMCONFDIR=\"$(nmconfdir)\" \
        -DSYSCONFDIR=\"$(sysconfdir)\" \
index c0d6187..c06178b 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -I$(top_srcdir)/callouts \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS)
index a91ae2b..97b839b 100644 (file)
@@ -31,6 +31,7 @@
 #include "nm-dbus-glib-types.h"
 #include "nm-dispatcher-api.h"
 #include "nm-utils.h"
+#include "nm-utils-private.h"
 
 /*******************************************/
 
index 1397194..a1a45e3 100644 (file)
 #ifndef NMC_COMMON_H
 #define NMC_COMMON_H
 
-#include <glib.h>
-
-#include <nm-ip4-config.h>
-#include <nm-ip6-config.h>
-#include <nm-dhcp4-config.h>
-#include <nm-dhcp6-config.h>
-#include <nm-device.h>
-
 #include "nmcli.h"
 
 gboolean print_ip4_config (NMIP4Config *cfg4, NmCli *nmc, const char *group_prefix, const char *one_field);
index 605de2e..0c6d0e3 100644 (file)
 #include <readline/readline.h>
 #include <readline/history.h>
 
-#include <nm-client.h>
-#include <nm-device-ethernet.h>
-#include <nm-device-adsl.h>
-#include <nm-device-wifi.h>
-#if WITH_WIMAX
-#include <nm-device-wimax.h>
-#endif
-#include <nm-device-modem.h>
-#include <nm-device-bt.h>
-#include <nm-device-olpc-mesh.h>
-#include <nm-device-infiniband.h>
-#include <nm-device-bond.h>
-#include <nm-device-team.h>
-#include <nm-device-bridge.h>
-#include <nm-device-vlan.h>
-#include <nm-remote-settings.h>
-#include <nm-vpn-connection.h>
-#include <nm-utils.h>
-
 #include "utils.h"
 #include "common.h"
 #include "settings.h"
index 9cf8203..65629a6 100644 (file)
 #include <glib.h>
 #include <glib/gi18n.h>
 
-#include <nm-client.h>
-#include <nm-device.h>
-#include <nm-device-ethernet.h>
-#include <nm-device-adsl.h>
-#include <nm-device-wifi.h>
-#include <nm-device-modem.h>
-#include <nm-device-bt.h>
-#include <nm-device-olpc-mesh.h>
-#if WITH_WIMAX
-#include <nm-device-wimax.h>
-#endif
-#include <nm-device-infiniband.h>
-#include <nm-device-bond.h>
-#include <nm-device-bridge.h>
-#include <nm-device-vlan.h>
-#include <nm-utils.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-ip6-config.h>
-#include <nm-vpn-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-adsl.h>
-#include <nm-setting-pppoe.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-gsm.h>
-#include <nm-setting-cdma.h>
-#include <nm-setting-bluetooth.h>
-#include <nm-setting-olpc-mesh.h>
-#if WITH_WIMAX
-#include <nm-setting-wimax.h>
-#endif
-#include <nm-setting-infiniband.h>
-
 #include "utils.h"
 #include "common.h"
 #include "devices.h"
index dc55100..cace832 100644 (file)
@@ -25,8 +25,6 @@
 
 #include <glib.h>
 #include <glib/gi18n.h>
-#include <nm-client.h>
-#include <nm-setting-connection.h>
 
 #include "utils.h"
 #include "network-manager.h"
index d5076a6..ab0455d 100644 (file)
@@ -33,9 +33,6 @@
 
 #include <glib.h>
 #include <glib/gi18n.h>
-#include <nm-client.h>
-#include <nm-setting-connection.h>
-#include <nm-remote-settings.h>
 
 #include "nmcli.h"
 #include "utils.h"
index 163832e..5582b1d 100644 (file)
 #ifndef NMC_NMCLI_H
 #define NMC_NMCLI_H
 
-#include <glib.h>
-
-#include <nm-client.h>
-#include <nm-remote-settings.h>
+#include <NetworkManager.h>
 
 /* nmcli exit codes */
 typedef enum {
index c952ecd..6d49545 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <glib.h>
 #include <glib/gi18n.h>
-#include <nm-utils.h>
 
 #include "utils.h"
 #include "common.h"
index 709c897..5960586 100644 (file)
 #ifndef NMC_SETTINGS_H
 #define NMC_SETTINGS_H
 
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-adsl.h>
-#include <nm-setting-8021x.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-ip6-config.h>
-#include <nm-setting-serial.h>
-#include <nm-setting-ppp.h>
-#include <nm-setting-pppoe.h>
-#include <nm-setting-gsm.h>
-#include <nm-setting-cdma.h>
-#include <nm-setting-bluetooth.h>
-#include <nm-setting-olpc-mesh.h>
-#include <nm-setting-vpn.h>
-#include <nm-setting-wimax.h>
-#include <nm-setting-infiniband.h>
-#include <nm-setting-bond.h>
-#include <nm-setting-bridge.h>
-#include <nm-setting-bridge-port.h>
-#include <nm-setting-vlan.h>
-#include <nm-setting-dcb.h>
-
 #include "nmcli.h"
 #include "utils.h"
 
index e92952f..ea59c4e 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef NMC_UTILS_H
 #define NMC_UTILS_H
 
-#include <glib.h>
-
 #include "nmcli.h"
 
 /* === Types === */
index 234eac9..af40022 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <glib/gi18n.h>
 
-#include "nm-client.h"
+#include <NetworkManager.h>
 
 #define PROGRESS_STEPS 15
 #define WAIT_STARTUP_TAG "wait-startup"
index a7a32dd..e1637f4 100644 (file)
 #ifndef NM_EDITOR_BINDINGS_H
 #define NM_EDITOR_BINDINGS_H
 
-#include <glib-object.h>
-#include <nm-connection.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-setting-vlan.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index 4ac0eb6..96f35cc 100644 (file)
 #include "config.h"
 
 #include <glib/gi18n.h>
-#include <nm-utils.h>
-
-#include <nm-device-bond.h>
-#include <nm-device-bridge.h>
-#include <nm-device-team.h>
-#include <nm-device-ethernet.h>
-#include <nm-device-infiniband.h>
-#include <nm-device-team.h>
-#include <nm-device-vlan.h>
-#include <nm-device-wifi.h>
+#include <NetworkManager.h>
 
 #include "nm-editor-utils.h"
 #if 0
index 4b9ad5e..8d61d75 100644 (file)
@@ -19,8 +19,7 @@
 #ifndef NM_EDITOR_UTILS_H
 #define NM_EDITOR_UTILS_H
 
-#include <glib-object.h>
-#include <nm-remote-settings.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index fffdc8e..aadd74b 100644 (file)
@@ -29,9 +29,7 @@
 #include <stdlib.h>
 #include <glib/gi18n-lib.h>
 
-#include <nm-access-point.h>
-#include <nm-device-wifi.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmtui.h"
 #include "nmt-connect-connection-list.h"
index de8b630..47435ea 100644 (file)
@@ -41,9 +41,7 @@
 #include <linux/if_arp.h>
 
 #include <glib/gi18n-lib.h>
-#include <nm-device.h>
-#include <nm-device-infiniband.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmtui.h"
 #include "nmt-device-entry.h"
index 2b959aa..d44126a 100644 (file)
@@ -21,8 +21,7 @@
 
 #include "nmt-page-grid.h"
 
-#include <nm-connection.h>
-#include <nm-device.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index 35157e9..a359170 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "nmt-newt.h"
 
-#include <nm-remote-connection.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index d9a9710..8addabe 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef NMT_EDITOR_PAGE_H
 #define NMT_EDITOR_PAGE_H
 
-#include <nm-connection.h>
+#include <NetworkManager.h>
 
 #include "nmt-page-grid.h"
 
index a991a76..db10b82 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef NMT_EDITOR_H
 #define NMT_EDITOR_H
 
-#include <nm-connection.h>
+#include <NetworkManager.h>
 
 #include "nmt-newt.h"
 
index 0dad123..b3ca809 100644 (file)
@@ -31,7 +31,7 @@
 #include <string.h>
 
 #include <dbus/dbus-glib.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmt-mac-entry.h"
 
index d22ec83..2e1510f 100644 (file)
@@ -30,8 +30,7 @@
 #include <glib.h>
 #include <glib/gi18n-lib.h>
 
-#include <nm-device.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmt-page-main.h"
 #include "nmt-device-entry.h"
index f6de671..c3bc707 100644 (file)
@@ -26,8 +26,6 @@
 #include <glib.h>
 #include <glib/gi18n-lib.h>
 
-#include <nm-device-ethernet.h>
-
 #include "nm-editor-bindings.h"
 
 #include "nmt-page-vlan.h"
index 153aee7..12b2f4e 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <glib.h>
 #include <glib/gi18n-lib.h>
-#include <nm-utils.h>
 
 #include "nmt-page-wifi.h"
 #include "nmt-mac-entry.h"
index e1040df..9882c71 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef NMT_ROUTE_EDITOR_H
 #define NMT_ROUTE_EDITOR_H
 
-#include <nm-connection.h>
+#include <NetworkManager.h>
 
 #include "nmt-newt.h"
 
index 70a9003..9b22f38 100644 (file)
@@ -33,8 +33,7 @@
 #include <stdlib.h>
 
 #include <glib/gi18n-lib.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-ip6-config.h>
+#include <NetworkManager.h>
 
 #include "nmt-route-entry.h"
 #include "nmt-ip-entry.h"
index c2edf2a..c5a7076 100644 (file)
@@ -32,7 +32,8 @@
 
 #include <glib/gi18n-lib.h>
 #include <dbus/dbus-glib.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
+#include <nm-utils-private.h>
 
 #include "nmt-route-table.h"
 #include "nmt-route-entry.h"
index 147e119..13a0927 100644 (file)
@@ -35,8 +35,6 @@
 #include <dbus/dbus-glib.h>
 #include <glib/gi18n-lib.h>
 
-#include <nm-utils.h>
-
 #include "nmt-secret-agent.h"
 #include "nmt-newt.h"
 
index 04b1581..e7f6ef8 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef NMT_SECRET_AGENT_H
 #define NMT_SECRET_AGENT_H
 
-#include <nm-secret-agent.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index d6b60be..459b944 100644 (file)
@@ -27,8 +27,7 @@
 #include "config.h"
 
 #include <glib/gi18n-lib.h>
-
-#include <nm-remote-connection.h>
+#include <NetworkManager.h>
 
 #include "nmt-slave-list.h"
 
index a86b8df..ca523eb 100644 (file)
@@ -32,7 +32,6 @@
 #include <stdlib.h>
 
 #include <glib/gi18n-lib.h>
-#include <nm-utils.h>
 
 #include "nmt-newt.h"
 
index 2e59204..a564ff3 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 
 #include <glib/gi18n-lib.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmtui.h"
 #include "nmtui-edit.h"
index 35f8ccb..795f663 100644 (file)
 #include <glib.h>
 #include <glib/gi18n-lib.h>
 
-#include <nm-client.h>
-#include <nm-connection.h>
-#include <nm-remote-settings.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #include "nmt-newt.h"
 #include "nm-editor-bindings.h"
index 3e462b1..10b9c06 100644 (file)
@@ -19,8 +19,7 @@
 #ifndef NMTUI_H
 #define NMTUI_H
 
-#include <nm-client.h>
-#include <nm-remote-settings.h>
+#include <NetworkManager.h>
 
 G_BEGIN_DECLS
 
index f5aba07..a50e8ba 100644 (file)
 #include <glib.h>
 #include <dbus/dbus-glib.h>
 
-#include <nm-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #define DBUS_TYPE_G_MAP_OF_VARIANT          (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
 #define DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT   (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, DBUS_TYPE_G_MAP_OF_VARIANT))
index 5bddf9f..59a51ba 100644 (file)
  */
 
 #include <glib.h>
-#include <nm-remote-settings.h>
-
-#include <nm-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 static void
 added_cb (NMRemoteSettings *settings,
index b89875c..65df85b 100644 (file)
 #include <glib.h>
 #include <dbus/dbus-glib.h>
 
-#include <nm-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 #define DBUS_TYPE_G_MAP_OF_VARIANT          (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
 #define DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT   (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, DBUS_TYPE_G_MAP_OF_VARIANT))
index bc572ee..aba22c6 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <nm-client.h>
-#include <nm-device.h>
-#include <nm-device-wifi.h>
-#include <nm-access-point.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
+#include <NetworkManager.h>
 
 /* Convert flags to string */
 static char *
index 4c13a53..608c666 100644 (file)
@@ -29,7 +29,7 @@
 #include <dbus/dbus-glib.h>
 #include <stdio.h>
 
-#include <nm-dbus-interface.h>
+#include <NetworkManager.h>
 
 #define DBUS_TYPE_G_ARRAY_OF_OBJECT_PATH    (dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH))
 
index 5338c6f..4dd178d 100644 (file)
 #include <stdlib.h>
 #include <signal.h>
 
-#include <nm-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
-#include <nm-remote-settings.h>
+#include <NetworkManager.h>
 
 
 /* Global variables */
index f4e18a0..53805e2 100644 (file)
@@ -5,6 +5,7 @@ SUBDIRS = . tests
 AM_CPPFLAGS = \
        -I${top_srcdir}/include \
        -DG_LOG_DOMAIN=\""libnm"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS)
index 3aa2bc9..2b52e7a 100644 (file)
@@ -58,7 +58,6 @@
 /**
  * SECTION:nm-connection
  * @short_description: Describes a connection to specific network or provider
- * @include: nm-connection.h
  *
  * An #NMConnection describes all the settings and configuration values that
  * are necessary to configure network devices for operation on a specific
index 6a17581..20027a9 100644 (file)
 #ifndef NM_CONNECTION_H
 #define NM_CONNECTION_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <nm-setting.h>
index dc964a1..3645157 100644 (file)
@@ -35,7 +35,6 @@
 /**
  * SECTION:nm-setting-8021x
  * @short_description: Describes 802.1x-authenticated connection properties
- * @include: nm-setting-8021x.h
  *
  * The #NMSetting8021x object is a #NMSetting subclass that describes
  * properties necessary for connection to 802.1x-authenticated networks, such as
index 9fd1342..9c36003 100644 (file)
 #ifndef NM_SETTING_8021X_H
 #define NM_SETTING_8021X_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 0a8eba7..65bece0 100644 (file)
@@ -30,7 +30,6 @@
 /**
  * SECTION:nm-setting-adsl
  * @short_description: Describes ADSL-based properties
- * @include: nm-setting-adsl.h
  *
  * The #NMSettingAdsl object is a #NMSetting subclass that describes
  * properties of ADSL connections.
index eb1f07d..146c6e1 100644 (file)
 #ifndef NM_SETTING_ADSL_H
 #define NM_SETTING_ADSL_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 506ecbd..57e4e65 100644 (file)
@@ -34,7 +34,6 @@
 /**
  * SECTION:nm-setting-bluetooth
  * @short_description: Describes Bluetooth connection properties
- * @include: nm-setting-bluetooth.h
  *
  * The #NMSettingBluetooth object is a #NMSetting subclass that describes
  * properties necessary for connection to devices that provide network
index d401fc4..2184c4a 100644 (file)
 #ifndef NM_SETTING_BLUETOOTH_H
 #define NM_SETTING_BLUETOOTH_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-setting.h"
 
 G_BEGIN_DECLS
index 3edb089..38e1c46 100644 (file)
@@ -37,7 +37,6 @@
 /**
  * SECTION:nm-setting-bond
  * @short_description: Describes connection properties for bonds
- * @include: nm-setting-bond.h
  *
  * The #NMSettingBond object is a #NMSetting subclass that describes properties
  * necessary for bond connections.
index 6aa94f2..093c9a3 100644 (file)
 #ifndef NM_SETTING_BOND_H
 #define NM_SETTING_BOND_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 08dbab9..243f466 100644 (file)
@@ -33,7 +33,6 @@
 /**
  * SECTION:nm-setting-bridge-port
  * @short_description: Describes connection properties for bridge ports
- * @include: nm-setting-bridge-port.h
  *
  * The #NMSettingBridgePort object is a #NMSetting subclass that describes
  * optional properties that apply to bridge ports.
index 0bf2c79..423fa31 100644 (file)
 #ifndef NM_SETTING_BRIDGE_PORT_H
 #define NM_SETTING_BRIDGE_PORT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 02457c1..0b9196c 100644 (file)
@@ -36,7 +36,6 @@
 /**
  * SECTION:nm-setting-bridge
  * @short_description: Describes connection properties for bridges
- * @include: nm-setting-bridge.h
  *
  * The #NMSettingBridge object is a #NMSetting subclass that describes properties
  * necessary for bridging connections.
index d06935c..e0d75cc 100644 (file)
 #ifndef NM_SETTING_BRIDGE_H
 #define NM_SETTING_BRIDGE_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 976a596..8adc815 100644 (file)
@@ -29,7 +29,6 @@
 /**
  * SECTION:nm-setting-cdma
  * @short_description: Describes CDMA-based mobile broadband properties
- * @include: nm-setting-cdma.h
  *
  * The #NMSettingCdma object is a #NMSetting subclass that describes
  * properties that allow connections to IS-95-based mobile broadband
index 938a110..7b2fb32 100644 (file)
 #ifndef NM_SETTING_CDMA_H
 #define NM_SETTING_CDMA_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 75615a0..2205bff 100644 (file)
@@ -32,7 +32,6 @@
 /**
  * SECTION:nm-setting-connection
  * @short_description: Describes general connection properties
- * @include: nm-setting-connection.h
  *
  * The #NMSettingConnection object is a #NMSetting subclass that describes
  * properties that apply to all #NMConnection objects, regardless of what type
index 6f219cc..ff7ab20 100644 (file)
 #ifndef NM_SETTING_CONNECTION_H
 #define NM_SETTING_CONNECTION_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-setting.h"
 
 G_BEGIN_DECLS
index 713b37e..9bac022 100644 (file)
@@ -33,7 +33,6 @@
 /**
  * SECTION:nm-setting-dcb
  * @short_description: Connection properties for Data Center Bridging
- * @include: nm-setting-dcb.h
  *
  * The #NMSettingDcb object is a #NMSetting subclass that describes properties
  * for enabling and using Data Center Bridging (DCB) on Ethernet networks.
index a1a200a..8448a6f 100644 (file)
 #ifndef NM_SETTING_DCB_H
 #define NM_SETTING_DCB_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 827324f..ea323ac 100644 (file)
@@ -27,7 +27,6 @@
 /**
  * SECTION:nm-setting-generic
  * @short_description: Describes connection properties for generic devices
- * @include: nm-setting-generic.h
  *
  * The #NMSettingGeneric object is a #NMSetting subclass that describes
  * optional properties that apply to "generic" devices (ie, devices that
index 605cb23..9d9d501 100644 (file)
 #ifndef NM_SETTING_GENERIC_H
 #define NM_SETTING_GENERIC_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 6442d98..57fca83 100644 (file)
@@ -30,7 +30,6 @@
 /**
  * SECTION:nm-setting-gsm
  * @short_description: Describes GSM/3GPP-based mobile broadband properties
- * @include: nm-setting-gsm.h
  *
  * The #NMSettingGsm object is a #NMSetting subclass that describes
  * properties that allow connections to 3GPP-based mobile broadband
index 8e20285..919af9e 100644 (file)
 #ifndef NM_SETTING_GSM_H
 #define NM_SETTING_GSM_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 4e470e5..42c1545 100644 (file)
@@ -34,7 +34,6 @@
 /**
  * SECTION:nm-setting-infiniband
  * @short_description: Describes connection properties for IP-over-InfiniBand networks
- * @include: nm-setting-infiniband.h
  *
  * The #NMSettingInfiniband object is a #NMSetting subclass that describes properties
  * necessary for connection to IP-over-InfiniBand networks.
index b58f33c..6fa4fe2 100644 (file)
 #ifndef NM_SETTING_INFINIBAND_H
 #define NM_SETTING_INFINIBAND_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index df0ad5b..f3de89e 100644 (file)
@@ -35,7 +35,6 @@
 /**
  * SECTION:nm-setting-ip4-config
  * @short_description: Describes IPv4 addressing, routing, and name service properties
- * @include: nm-setting-ip4-config.h
  *
  * The #NMSettingIP4Config object is a #NMSetting subclass that describes
  * properties related to IPv4 addressing, routing, and Domain Name Service
index 3572a1e..5c1ed21 100644 (file)
 #ifndef NM_SETTING_IP4_CONFIG_H
 #define NM_SETTING_IP4_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-setting.h"
 
 G_BEGIN_DECLS
index 11a7c29..0809bac 100644 (file)
@@ -33,7 +33,6 @@
 /**
  * SECTION:nm-setting-ip6-config
  * @short_description: Describes IPv6 addressing, routing, and name service properties
- * @include: nm-setting-ip6-config.h
  *
  * The #NMSettingIP6Config object is a #NMSetting subclass that describes
  * properties related to IPv6 addressing, routing, and Domain Name Service
index dae63bc..b7433c2 100644 (file)
 #ifndef NM_SETTING_IP6_CONFIG_H
 #define NM_SETTING_IP6_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <arpa/inet.h>
 
 #include "nm-setting.h"
index 44b9a85..268413f 100644 (file)
 #ifndef NM_SETTING_OLPC_MESH_H
 #define NM_SETTING_OLPC_MESH_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 331bf72..b6e45ce 100644 (file)
@@ -29,7 +29,6 @@
  * SECTION:nm-setting-ppp
  * @short_description: Describes connection properties for devices/networks
  * that require PPP to deliver IP capability
- * @include: nm-setting-ppp.h
  *
  * The #NMSettingPpp object is a #NMSetting subclass that describes properties
  * necessary for connection to networks that require PPP transport, like PPPoE
index a6bdfb3..c71526c 100644 (file)
 #ifndef NM_SETTING_PPP_H
 #define NM_SETTING_PPP_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index d12e077..1fefb15 100644 (file)
@@ -30,7 +30,6 @@
 /**
  * SECTION:nm-setting-pppoe
  * @short_description: Describes PPPoE connection properties
- * @include: nm-setting-pppoe.h
  *
  * The #NMSettingPppoe object is a #NMSetting subclass that describes
  * properties necessary for connection to networks that require PPPoE connections
index d1d4fe8..97bf469 100644 (file)
 #ifndef NM_SETTING_PPPOE_H
 #define NM_SETTING_PPPOE_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 4a7ee89..0b8710b 100644 (file)
@@ -30,7 +30,6 @@
  * SECTION:nm-setting-serial
  * @short_description: Describes connection properties for devices that use
  * serial communications
- * @include: nm-setting-serial.h
  *
  * The #NMSettingSerial object is a #NMSetting subclass that describes
  * properties necessary for connections that may use serial communications,
index 2a9377c..8181430 100644 (file)
 #ifndef NM_SETTING_SERIAL_H
 #define NM_SETTING_SERIAL_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 3280561..cb8d00c 100644 (file)
@@ -32,7 +32,6 @@
 /**
  * SECTION:nm-setting-team-port
  * @short_description: Describes connection properties for team ports
- * @include: nm-setting-team-port.h
  *
  * The #NMSettingTeamPort object is a #NMSetting subclass that describes
  * optional properties that apply to team ports.
index a9f3ff9..527ac4b 100644 (file)
 #ifndef NM_SETTING_TEAM_PORT_H
 #define NM_SETTING_TEAM_PORT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 0d8d4a1..75305b1 100644 (file)
@@ -33,7 +33,6 @@
 /**
  * SECTION:nm-setting-team
  * @short_description: Describes connection properties for teams
- * @include: nm-setting-team.h
  *
  * The #NMSettingTeam object is a #NMSetting subclass that describes properties
  * necessary for team connections.
index f33ec5b..4ef04c2 100644 (file)
 #ifndef NM_SETTING_TEAM_H
 #define NM_SETTING_TEAM_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index bfb08c3..0cb1374 100644 (file)
@@ -34,7 +34,6 @@
 /**
  * SECTION:nm-setting-vlan
  * @short_description: Describes connection properties for VLAN interfaces
- * @include: nm-setting-vlan.h
  *
  * The #NMSettingVlan object is a #NMSetting subclass that describes properties
  * necessary for connection to VLAN interfaces.
index 9c37da3..3d777f7 100644 (file)
 #ifndef NM_SETTING_VLAN_H
 #define NM_SETTING_VLAN_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-setting.h"
 #include <linux/if_vlan.h>
 
index 2366f17..154345a 100644 (file)
@@ -34,7 +34,6 @@
 /**
  * SECTION:nm-setting-vpn
  * @short_description: Describes connection properties for Virtual Private Networks
- * @include: nm-setting-vpn.h
  *
  * The #NMSettingVpn object is a #NMSetting subclass that describes properties
  * necessary for connection to Virtual Private Networks.  NetworkManager uses
index ba2f016..09fcb60 100644 (file)
 #ifndef NM_SETTING_VPN_H
 #define NM_SETTING_VPN_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 1a4a6ec..60ab79f 100644 (file)
@@ -32,7 +32,6 @@
 /**
  * SECTION:nm-setting-wimax
  * @short_description: Describes 802.16e Mobile WiMAX connection properties
- * @include: nm-setting-wimax.h
  *
  * The #NMSettingWimax object is a #NMSetting subclass that describes properties
  * necessary for connection to 802.16e Mobile WiMAX networks.
index 8e9df6a..f5b49fd 100644 (file)
 #ifndef NM_SETTING_WIMAX_H
 #define NM_SETTING_WIMAX_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index 2b90bfa..1147c7f 100644 (file)
@@ -36,7 +36,6 @@
 /**
  * SECTION:nm-setting-wired
  * @short_description: Describes connection properties for Ethernet-based networks
- * @include: nm-setting-wired.h
  *
  * The #NMSettingWired object is a #NMSetting subclass that describes properties
  * necessary for connection to Ethernet networks.
index 947c89f..f8d215e 100644 (file)
 #ifndef NM_SETTING_WIRED_H
 #define NM_SETTING_WIRED_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index a93577b..8d6d100 100644 (file)
@@ -37,7 +37,6 @@
  * SECTION:nm-setting-wireless-security
  * @short_description: Describes connection properties for Wi-Fi networks that
  * use WEP, LEAP, WPA or WPA2/RSN security
- * @include: nm-setting-wireless-security.h
  *
  * The #NMSettingWirelessSecurity object is a #NMSetting subclass that describes
  * properties necessary for connection to encrypted Wi-Fi networks.
index ff07a91..92685cc 100644 (file)
 #ifndef NM_SETTING_WIRELESS_SECURITY_H
 #define NM_SETTING_WIRELESS_SECURITY_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 
 G_BEGIN_DECLS
index f3473f4..ce788dc 100644 (file)
@@ -37,7 +37,6 @@
 /**
  * SECTION:nm-setting-wireless
  * @short_description: Describes connection properties for 802.11 Wi-Fi networks
- * @include: nm-setting-wireless.h
  *
  * The #NMSettingWireless object is a #NMSetting subclass that describes properties
  * necessary for connection to 802.11 Wi-Fi networks.
index 1efd55e..6ca9c87 100644 (file)
 #ifndef NM_SETTING_WIRELESS_H
 #define NM_SETTING_WIRELESS_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-setting.h>
 #include <nm-setting-wireless-security.h>
 #include <nm-dbus-interface.h>
index d21256c..a2842fa 100644 (file)
@@ -32,7 +32,6 @@
 /**
  * SECTION:nm-setting
  * @short_description: Describes related configuration information
- * @include: nm-setting.h
  *
  * Each #NMSetting contains properties that describe configuration that applies
  * to a specific network layer (like IPv4 or IPv6 configuration) or device type
index 62778ed..57a9216 100644 (file)
 #ifndef NM_SETTING_H
 #define NM_SETTING_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 
index 4de0b96..9be9077 100644 (file)
@@ -37,7 +37,6 @@
 /**
  * SECTION:nm-utils
  * @short_description: Utility functions
- * @include: nm-utils.h
  *
  * A collection of utility functions for working with SSIDs, IP addresses, Wi-Fi
  * access points and devices, among other things.
index 38c2447..4064b9c 100644 (file)
 #ifndef NM_UTILS_H
 #define NM_UTILS_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 #include "nm-connection.h"
index ab9cedd..294b2af 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I${top_srcdir}/include \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
index b0ea01a..1838d30 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm \
        -I$(top_builddir)/libnm \
        -DG_LOG_DOMAIN=\""libnm"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE
 
 include $(top_srcdir)/libnm-core/Makefile.libnm-core
@@ -26,6 +27,7 @@ libnm_la_CFLAGS = \
 libnmincludedir = $(includedir)/libnm
 
 libnminclude_HEADERS =                 \
+       NetworkManager.h                \
        nm-access-point.h               \
        nm-active-connection.h          \
        nm-client.h                     \
diff --git a/libnm/NetworkManager.h b/libnm/NetworkManager.h
new file mode 100644 (file)
index 0000000..da0a4e3
--- /dev/null
@@ -0,0 +1,91 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2014 Red Hat, Inc.
+ */
+
+#ifndef NETWORKMANAGER_H
+#define NETWORKMANAGER_H
+
+#define __NETWORKMANAGER_H_INSIDE__
+
+#include <nm-access-point.h>
+#include <nm-active-connection.h>
+#include <nm-client.h>
+#include <nm-connection.h>
+#include <nm-core-enum-types.h>
+#include <nm-dbus-interface.h>
+#include <nm-device-adsl.h>
+#include <nm-device-bond.h>
+#include <nm-device-bridge.h>
+#include <nm-device-bt.h>
+#include <nm-device-ethernet.h>
+#include <nm-device-generic.h>
+#include <nm-device-infiniband.h>
+#include <nm-device-modem.h>
+#include <nm-device-olpc-mesh.h>
+#include <nm-device-team.h>
+#include <nm-device-vlan.h>
+#include <nm-device-wifi.h>
+#include <nm-device-wimax.h>
+#include <nm-device.h>
+#include <nm-dhcp4-config.h>
+#include <nm-dhcp6-config.h>
+#include <nm-enum-types.h>
+#include <nm-ip4-config.h>
+#include <nm-ip6-config.h>
+#include <nm-object.h>
+#include <nm-remote-connection.h>
+#include <nm-remote-settings.h>
+#include <nm-secret-agent.h>
+#include <nm-setting-8021x.h>
+#include <nm-setting-adsl.h>
+#include <nm-setting-bluetooth.h>
+#include <nm-setting-bond.h>
+#include <nm-setting-bridge-port.h>
+#include <nm-setting-bridge.h>
+#include <nm-setting-cdma.h>
+#include <nm-setting-connection.h>
+#include <nm-setting-dcb.h>
+#include <nm-setting-generic.h>
+#include <nm-setting-gsm.h>
+#include <nm-setting-infiniband.h>
+#include <nm-setting-ip4-config.h>
+#include <nm-setting-ip6-config.h>
+#include <nm-setting-olpc-mesh.h>
+#include <nm-setting-ppp.h>
+#include <nm-setting-pppoe.h>
+#include <nm-setting-serial.h>
+#include <nm-setting-team-port.h>
+#include <nm-setting-team.h>
+#include <nm-setting-vlan.h>
+#include <nm-setting-vpn.h>
+#include <nm-setting-wimax.h>
+#include <nm-setting-wired.h>
+#include <nm-setting-wireless-security.h>
+#include <nm-setting-wireless.h>
+#include <nm-setting.h>
+#include <nm-types.h>
+#include <nm-utils.h>
+#include <nm-version.h>
+#include <nm-vpn-connection.h>
+#include <nm-vpn-dbus-interface.h>
+#include <nm-wimax-nsp.h>
+
+#undef __NETWORKMANAGER_H_INSIDE__
+
+#endif /* NETWORKMANAGER_H */
index 9717b43..e0ec118 100644 (file)
 #ifndef NM_ACCESS_POINT_H
 #define NM_ACCESS_POINT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <nm-dbus-interface.h>
index a66c30e..5c67b32 100644 (file)
 #ifndef NM_ACTIVE_CONNECTION_H
 #define NM_ACTIVE_CONNECTION_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include "nm-object.h"
index 830856d..8fc676b 100644 (file)
 #ifndef NM_CLIENT_H
 #define NM_CLIENT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <gio/gio.h>
index 34ec822..26af4a4 100644 (file)
 #ifndef NM_DEVICE_ADSL_H
 #define NM_DEVICE_ADSL_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 0655c31..53312de 100644 (file)
 #ifndef NM_DEVICE_BOND_H
 #define NM_DEVICE_BOND_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 73ae852..056729d 100644 (file)
 #ifndef NM_DEVICE_BRIDGE_H
 #define NM_DEVICE_BRIDGE_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index f43d4e1..03a24be 100644 (file)
 #ifndef NM_DEVICE_BT_H
 #define NM_DEVICE_BT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-dbus-interface.h"
 #include "nm-device.h"
 
index d1ce3ce..05cafce 100644 (file)
 #ifndef NM_DEVICE_ETHERNET_H
 #define NM_DEVICE_ETHERNET_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 96899ee..4b2ead7 100644 (file)
 #ifndef NM_DEVICE_GENERIC_H
 #define NM_DEVICE_GENERIC_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 22b9b7a..97d86c5 100644 (file)
 #ifndef NM_DEVICE_INFINIBAND_H
 #define NM_DEVICE_INFINIBAND_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 683685c..423a82e 100644 (file)
 #ifndef NM_DEVICE_MODEM_H
 #define NM_DEVICE_MODEM_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 1b12b46..5a22068 100644 (file)
 #ifndef NM_DEVICE_OLPC_MESH_H
 #define NM_DEVICE_OLPC_MESH_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 #include "nm-device-wifi.h"
 
index 2c63c87..c44adcc 100644 (file)
 #ifndef NM_DEVICE_TEAM_H
 #define NM_DEVICE_TEAM_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 628a6d5..6825abe 100644 (file)
 #ifndef NM_DEVICE_VLAN_H
 #define NM_DEVICE_VLAN_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 
 G_BEGIN_DECLS
index 651a43c..195c332 100644 (file)
 #ifndef NM_DEVICE_WIFI_H
 #define NM_DEVICE_WIFI_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 #include "nm-access-point.h"
 
index cf36823..5853add 100644 (file)
 #ifndef NM_DEVICE_WIMAX_H
 #define NM_DEVICE_WIMAX_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include "nm-device.h"
 #include "nm-wimax-nsp.h"
 
index 072d646..085e147 100644 (file)
 #ifndef NM_DEVICE_H
 #define NM_DEVICE_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index 1055e9e..9b0c810 100644 (file)
 #ifndef NM_DHCP4_CONFIG_H
 #define NM_DHCP4_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index bc08b0a..cef2a1a 100644 (file)
 #ifndef NM_DHCP6_CONFIG_H
 #define NM_DHCP6_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index 4ded985..5542486 100644 (file)
 #ifndef NM_IP4_CONFIG_H
 #define NM_IP4_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index 00b7742..a1793fd 100644 (file)
 #ifndef NM_IP6_CONFIG_H
 #define NM_IP6_CONFIG_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index 6fcd589..e3e0d73 100644 (file)
 #ifndef NM_OBJECT_H
 #define NM_OBJECT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index c5912e4..23964a5 100644 (file)
 #ifndef __NM_REMOTE_CONNECTION_H__
 #define __NM_REMOTE_CONNECTION_H__
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
 
index 9ce5e81..aebd2c0 100644 (file)
 #ifndef NM_REMOTE_SETTINGS_H
 #define NM_REMOTE_SETTINGS_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <gio/gio.h>
 #include <nm-connection.h>
 #include <nm-remote-connection.h>
index ad315d7..84ddaaa 100644 (file)
 #ifndef NM_SECRET_AGENT_H
 #define NM_SECRET_AGENT_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <nm-connection.h>
 
 G_BEGIN_DECLS
index 170e8a3..9fcef32 100644 (file)
 #ifndef NM_TYPES_H
 #define NM_TYPES_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 
index d38ebcc..a7abc8c 100644 (file)
 #ifndef NM_VPN_CONNECTION_H
 #define NM_VPN_CONNECTION_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index cc3c494..11f44b3 100644 (file)
 #ifndef NM_VPN_PLUGIN_UI_INTERFACE_H
 #define NM_VPN_PLUGIN_UI_INTERFACE_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <nm-connection.h>
index d87ef16..acab12f 100644 (file)
 #ifndef NM_VPN_PLUGIN_UTILS_H
 #define NM_VPN_PLUGIN_UTILS_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <nm-setting.h>
 
index 46e69e7..839cfb0 100644 (file)
 #ifndef NM_VPN_PLUGIN_H
 #define NM_VPN_PLUGIN_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <dbus/dbus-glib.h>
index 920bda6..48f89fa 100644 (file)
 #ifndef NM_WIMAX_NSP_H
 #define NM_WIMAX_NSP_H
 
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
 #include <glib.h>
 #include <glib-object.h>
 #include <nm-dbus-interface.h>
index cda638a..40763d0 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/libnm \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        -DTEST_NM_SERVICE=\"$(abs_top_srcdir)/tools/test-networkmanager-service.py\" \
        $(GLIB_CFLAGS) \
index 16e2620..f41d170 100644 (file)
@@ -41,6 +41,7 @@ AM_CPPFLAGS =                         \
        -I$(top_builddir)/libnm-core    \
        -I$(top_srcdir)/callouts        \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION    \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE
 
 # add each subdirectory that contains a libNM source file. $(sort) is being used
index 646069c..07a8f9e 100644 (file)
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-adsl"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS) \
        $(GUDEV_CFLAGS)
index f5cc542..07c8f01 100644 (file)
@@ -13,6 +13,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-bluetooth"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS)
 
index 57f3c19..6fea9b3 100644 (file)
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-team"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS)
 
index 73fb71e..230c00a 100644 (file)
@@ -15,6 +15,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-wifi"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS)
 
index 8db3938..09c6401 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/devices/wifi \
        -I$(top_builddir)/src \
        -DG_LOG_DOMAIN=\""NetworkManager-wifi"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS)
index f0fcb29..555b5ff 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-wimax"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS) \
        $(IWMX_SDK_CFLAGS)
index bdb4e49..7e5b190 100644 (file)
@@ -12,6 +12,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${top_srcdir}/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-wwan"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS) \
        $(MM_GLIB_CFLAGS)
index 150b001..9d6e7b9 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/platform \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        -DTESTDIR="\"$(abs_srcdir)\""
index 5884efc..c6ce1cd 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/platform \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        -DTESTDIR="\"$(abs_srcdir)\""
index 55766a6..b297e63 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${srcdir}/.. \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(GUDEV_CFLAGS) \
index 4e2b2f5..aef3f41 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
        -I${top_srcdir}/libnm-core \
        -I${top_builddir}/libnm-core \
        -DG_LOG_DOMAIN=\""nm-pppd-plugin"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS) \
        $(GLIB_CFLAGS)
index d53acc6..e6fe136 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I${top_builddir}/libnm-core \
        -I${srcdir}/.. \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(LIBNDP_CFLAGS)
index ac9b6c6..8fc4aa9 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-example"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
index c7f8c51..1006481 100644 (file)
@@ -31,6 +31,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
index 4cee2b5..f01dac4 100644 (file)
@@ -15,6 +15,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/settings \
        -I$(srcdir)/../ \
        -DG_LOG_DOMAIN=\""NetworkManager-ifcfg-rh"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        -DTEST_IFCFG_DIR=\"$(abs_srcdir)\" \
        -DTEST_SCRATCH_DIR=\"$(abs_builddir)/\" \
index 12e49ff..46204d7 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-ifcfg-suse"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        -DSYSCONFDIR=\"$(sysconfdir)\"
 
index 2c9d971..02b5207 100644 (file)
@@ -10,6 +10,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-ifnet"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        -DSYSCONFDIR=\"$(sysconfdir)\"
index 7f3960b..90d7243 100644 (file)
@@ -11,6 +11,7 @@ AM_CPPFLAGS= \
        -I$(top_srcdir)/src/settings \
        -I$(top_srcdir)/src/platform \
        -DG_LOG_DOMAIN=\""NetworkManager-ifnet"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(CHECK_CFLAGS) \
        $(GLIB_CFLAGS) \
index 87cac68..0ca543e 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-ifupdown"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(GUDEV_CFLAGS) \
index 25033c1..14a58f8 100644 (file)
@@ -8,6 +8,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/settings \
        -I$(srcdir)/../ \
        -DG_LOG_DOMAIN=\""NetworkManager-ifupdown"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        -DTEST_ENI_DIR=\"$(abs_srcdir)\"
index 7074994..bf89b06 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-core \
        -I$(top_builddir)/libnm-core \
        -DG_LOG_DOMAIN=\""NetworkManager-keyfile"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
index 668f433..1cd6ab9 100644 (file)
@@ -15,6 +15,7 @@ AM_CPPFLAGS = \
        $(DBUS_CFLAGS) \
        $(CODE_COVERAGE_CFLAGS) \
        -DG_LOG_DOMAIN=\""NetworkManager-keyfile"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        -DTEST_KEYFILES_DIR=\"$(abs_srcdir)/keyfiles\" \
        -DTEST_SCRATCH_DIR=\"$(abs_builddir)/keyfiles\" \
index cc53bcf..28accaa 100644 (file)
@@ -4,6 +4,7 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/libnm-core \
        -I$(top_srcdir)/src/settings \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS)
 
index 2d9410c..452ccdc 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/supplicant-manager \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS)
index d1654fb..aca9b3c 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_builddir)/src \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS)
index 33d0181..66009c8 100644 (file)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/devices \
        -I${top_srcdir}/src/platform \
        -DG_LOG_DOMAIN=\""NetworkManager"\" \
+       -DNETWORKMANAGER_COMPILATION \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \