diff options
author | Dan Winship <danw@gnome.org> | 2014-07-06 16:53:02 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-08-01 14:34:40 -0400 |
commit | d0b05b34d5f1ad8f52a15fed48cc2c02d2251145 (patch) | |
tree | 66943c391845d6c8fb2b4a26524c6d46c17a8e15 /libnm/nm-remote-settings.h | |
parent | 3ddce74803c15db7a970c737e8d4c33fccccb558 (diff) | |
download | NetworkManager-d0b05b34d5f1ad8f52a15fed48cc2c02d2251145.tar.gz |
libnm: add NetworkManager.h, disallow including individual headers
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.)
Diffstat (limited to 'libnm/nm-remote-settings.h')
-rw-r--r-- | libnm/nm-remote-settings.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm/nm-remote-settings.h b/libnm/nm-remote-settings.h index 9ce5e81ab6..aebd2c0c83 100644 --- a/libnm/nm-remote-settings.h +++ b/libnm/nm-remote-settings.h @@ -22,6 +22,10 @@ #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> |