diff options
author | Dan Winship <danw@gnome.org> | 2012-11-08 13:15:41 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-02-15 13:40:38 -0500 |
commit | 5266e25e2badd61048e403c93a39091d8382f7f1 (patch) | |
tree | 3feb6f1d296c9f95174b5af8ba9a179ee0f9e555 /libnm-util/nm-setting-wired.h | |
parent | fe307dbd3e22203b10cf1f1fcaffb14b52a0a347 (diff) | |
download | NetworkManager-5266e25e2badd61048e403c93a39091d8382f7f1.tar.gz |
libnm-utils: add :carrier-detect properties
For settings corresponding to devices that have a :carrier property
(ie bond, bridge, infiniband, vlan, and wired), add a :carrier-detect
property specifying how that affects the connection:
yes: The connection can only be activated when the device
has carrier, and will be deactivated if the device loses
carrier (for more than 4 seconds).
no: The connection ignores carrier on the device; it can be
activated when there is no carrier, and stays activated
when carrier is lost.
on-activate: The connection can only be activated when the
device has carrier, but it will not be deactivated if the
device loses carrier.
https://bugzilla.gnome.org/show_bug.cgi?id=688284
Diffstat (limited to 'libnm-util/nm-setting-wired.h')
-rw-r--r-- | libnm-util/nm-setting-wired.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-util/nm-setting-wired.h b/libnm-util/nm-setting-wired.h index e235d23cc4..473e22b5a9 100644 --- a/libnm-util/nm-setting-wired.h +++ b/libnm-util/nm-setting-wired.h @@ -66,6 +66,7 @@ GQuark nm_setting_wired_error_quark (void); #define NM_SETTING_WIRED_S390_SUBCHANNELS "s390-subchannels" #define NM_SETTING_WIRED_S390_NETTYPE "s390-nettype" #define NM_SETTING_WIRED_S390_OPTIONS "s390-options" +#define NM_SETTING_WIRED_CARRIER_DETECT "carrier-detect" typedef struct { NMSetting parent; @@ -109,6 +110,8 @@ gboolean nm_setting_wired_add_s390_option (NMSettingWired *setting gboolean nm_setting_wired_remove_s390_option (NMSettingWired *setting, const char *key); +const char * nm_setting_wired_get_carrier_detect (NMSettingWired *setting); + G_END_DECLS #endif /* NM_SETTING_WIRED_H */ |