core: base infrastructure for connection assumption
Figure out what connections can be assumed when a device is added, and on shutdown don't blow away connections that can be assumed on NM restart.
This commit is contained in:
@@ -88,6 +88,8 @@ struct _NMDeviceInterface {
|
||||
|
||||
gboolean (*spec_match_list) (NMDeviceInterface *device, const GSList *specs);
|
||||
|
||||
NMConnection * (*connection_match_config) (NMDeviceInterface *device, const GSList *specs);
|
||||
|
||||
/* Signals */
|
||||
void (*state_changed) (NMDeviceInterface *device,
|
||||
NMDeviceState new_state,
|
||||
@@ -115,4 +117,9 @@ NMDeviceState nm_device_interface_get_state (NMDeviceInterface *device);
|
||||
gboolean nm_device_interface_spec_match_list (NMDeviceInterface *device,
|
||||
const GSList *specs);
|
||||
|
||||
NMConnection * nm_device_interface_connection_match_config (NMDeviceInterface *device,
|
||||
const GSList *connections);
|
||||
|
||||
gboolean nm_device_interface_can_assume_connection (NMDeviceInterface *device);
|
||||
|
||||
#endif /* NM_DEVICE_INTERFACE_H */
|
||||
|
Reference in New Issue
Block a user