2008-10-11 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h introspection/nm-device.xml include/NetworkManagerVPN.h - Add a few more state reasons for the device deactivated state * src/nm-device-interface.c src/nm-device-interface.h - (nm_device_interface_deactivate): add a 'reason' argument * src/nm-device.c src/nm-device.h - (nm_device_deactivate, nm_device_take_down): add a 'reason' argument - (nm_device_state_changed): pass the state change reason to nm_device_take_down() - (nm_device_set_managed): take a 'reason' argument, and pass it along to the state change function * src/nm-manager.c src/nm-manager.h - (remove_one_device, handle_unmanaged_devices, sync_devices, impl_manager_sleep): pass a reason code to nm_device_set_managed() - (nm_manager_deactivate_connection): add a 'reason' argument and pass something reasonable along to VPN deactivation * src/vpn-manager/nm-vpn-manager.c src/vpn-manager/nm-vpn-manager.h - (nm_vpn_manager_deactivate_connection): add a 'reason' argument and pass that along to nm_vpn_connection_disconnect() git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4174 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||
|
||||
#ifndef NM_DEVICE_INTERFACE_H
|
||||
#define NM_DEVICE_INTERFACE_H
|
||||
@@ -62,7 +63,7 @@ struct _NMDeviceInterface {
|
||||
NMActRequest *req,
|
||||
GError **error);
|
||||
|
||||
void (*deactivate) (NMDeviceInterface *device);
|
||||
void (*deactivate) (NMDeviceInterface *device, NMDeviceStateReason reason);
|
||||
|
||||
/* Signals */
|
||||
void (*state_changed) (NMDeviceInterface *device,
|
||||
@@ -84,7 +85,7 @@ gboolean nm_device_interface_activate (NMDeviceInterface *device,
|
||||
NMActRequest *req,
|
||||
GError **error);
|
||||
|
||||
void nm_device_interface_deactivate (NMDeviceInterface *device);
|
||||
void nm_device_interface_deactivate (NMDeviceInterface *device, NMDeviceStateReason reason);
|
||||
|
||||
NMDeviceState nm_device_interface_get_state (NMDeviceInterface *device);
|
||||
|
||||
|
Reference in New Issue
Block a user