diff options
author | Thomas Haller <thaller@redhat.com> | 2016-01-27 17:02:03 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-27 17:20:09 +0100 |
commit | fc7c333d84fccdc9171ce7ad8df5e57ca36201b5 (patch) | |
tree | 775e4d11e764a82bcf6f39da5ff44dc5ec95f0c9 /libnm | |
parent | 1a3597529e6389f5b648fe11e95743d41c1fb4b1 (diff) | |
download | NetworkManager-fc7c333d84fccdc9171ce7ad8df5e57ca36201b5.tar.gz |
libnm: include "nm-vpn-service-plugin.h" in "NetworkManager.h"
"nm-vpn-service-plugin.h" includes "nm-connection.h", so there is already no
way to use "nm-vpn-service-plugin.h" without also pulling in all "NetworkManager.h".
On the other hand, we might not include "nm-vpn-service-plugin.h" in
"NetworkManager.h" to keep the overall headers small (by default).
But let's just include it too. We already opted for convenience
over small-include by having one top-level header file.
Diffstat (limited to 'libnm')
-rw-r--r-- | libnm/NetworkManager.h | 1 | ||||
-rw-r--r-- | libnm/nm-vpn-service-plugin.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libnm/NetworkManager.h b/libnm/NetworkManager.h index 35cd07aeca..b5dab8fd84 100644 --- a/libnm/NetworkManager.h +++ b/libnm/NetworkManager.h @@ -88,6 +88,7 @@ #include <nm-vpn-editor.h> #include <nm-vpn-editor-plugin.h> #include <nm-vpn-plugin-info.h> +#include <nm-vpn-service-plugin.h> #include <nm-wimax-nsp.h> #undef __NETWORKMANAGER_H_INSIDE__ diff --git a/libnm/nm-vpn-service-plugin.h b/libnm/nm-vpn-service-plugin.h index f8b4ff8761..29319189f9 100644 --- a/libnm/nm-vpn-service-plugin.h +++ b/libnm/nm-vpn-service-plugin.h @@ -22,6 +22,10 @@ #ifndef __NM_VPN_SERVICE_PLUGIN_H__ #define __NM_VPN_SERVICE_PLUGIN_H__ +#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION) +#error "Only <NetworkManager.h> can be included directly." +#endif + #include <gio/gio.h> #include <nm-vpn-dbus-interface.h> #include <nm-connection.h> |