
The fact that NMRemoteConnection has to be an NMConnection and therefore can't be an NMObject means that it needs to reimplement bits of NMObject functionality (and likewise NMObject needs some special magic to deal with it). Likewise, we will need a daemon-side equivalent of NMObject as part of the gdbus port, and we would want NMSettingsConnection to be able to inherit from this as well. Solve this problem by making NMConnection into an interface, and having NMRemoteConnection and NMSettingsConnection implement it. (We use some hacks to keep the GHashTable of NMSettings objects inside nm-connection.c rather than having to be implemented by the implementations.) Since NMConnection is no longer an instantiable type, this adds NMSimpleConnection to replace the various non-D-Bus-based uses of NMConnection throughout the code. nm_connection_new() becomes nm_simple_connection_new(), nm_connection_new_from_hash() becomes nm_simple_connection_new_from_hash(), and nm_connection_duplicate() becomes nm_simple_connection_new_clone().
93 lines
2.8 KiB
C
93 lines
2.8 KiB
C
/* -*- 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-simple-connection.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__ */
|