mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
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:
parent
1a3597529e
commit
fc7c333d84
|
@ -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__
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue