summaryrefslogtreecommitdiff
path: root/libnm/nm-vpn-service-plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* libnm: include "nm-vpn-service-plugin.h" in "NetworkManager.h"Thomas Haller2016-01-271-0/+4
| | | | | | | | | | "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.
* libnm/vpn-service-plugin: leave the state property in placeLubomir Rintel2015-10-141-0/+1
| | | | | | It's part of the DBus API; the skeleton has it and we can't remove it. This partially reverts commit fd61b217064c1b62b505d6a71211bf4340e4b3ac.
* libnm/vpn-service-plugin: remove nm_vpn_service_plugin_{get,set}_state()Lubomir Rintel2015-10-131-6/+0
| | | | | | | | | The plugins set state only on failures and often forget to do that. Do the correct status transition to STOPPED in nm_vpn_service_plugin_failure() instead. The get_state() is only used to find out whether to fail or orderly disconnect depending on whether we're STARTING or already STARTED. Handle that in nm_vpn_service_plugin_disconnect() in a generic manner instead.
* libnm/vpn-service-plugin: add watch-peer propertyLubomir Rintel2015-10-131-0/+1
| | | | | | | | | | | | | Make it possible to construct the plugin instance in a way that disconnects the connection if the DBus client that activated it drops off the bus. This makes the plugins conveniently clean up when NetworkManager crashes. We need this, as with multiple VPN support we can loose track of the client bus names when the daemon crashes leaving to nice way to clean up on respawn. However, this behavior is not desired for debugging or hypotetical VPN plugin users other than NetworkManager (say; "gdbus call -m o.fd.NM.VPN.Plugin.Connect"). Let the plugin decide when to use it.
* libnm/vpn: add annotations for new NMVpnServicePlugin APIThomas Haller2015-07-291-2/+30
|
* libnm/vpn: add new NMVpnServicePlugin classThomas Haller2015-07-291-52/+52
| | | | | | | | | | | | | | After copying "nm-vpn-plugin-old.*" to "nm-vpn-service-plugin.*", rename the class and add it to the Makefile. This will become the new VPN Service API for libnm 1.2. No changes done yet except renaming of the classes and functions. Rename the previous classes NMVpnPlugin(Old) to NMVpnServicePlugin to have a distinct name from NMVpnEditorPlugin. Buth are plugins, but with a different use. https://bugzilla.gnome.org/show_bug.cgi?id=749951
* libnm/vpn: copy 'nm-vpn-plugin-old' files to 'nm-vpn-service-plugin'Thomas Haller2015-07-291-0/+136
Files are yet unchanged, only copy them to get a nicer history. /bin/cp libnm/nm-vpn-plugin-old.c libnm/nm-vpn-service-plugin.c /bin/cp libnm/nm-vpn-plugin-old.h libnm/nm-vpn-service-plugin.h