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.
This commit is contained in:
Thomas Haller 2016-01-27 17:02:03 +01:00
parent 1a3597529e
commit fc7c333d84
2 changed files with 5 additions and 0 deletions

View file

@ -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__

View file

@ -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>