diff options
author | Dan Winship <danw@gnome.org> | 2014-09-24 09:12:46 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-09-30 10:11:15 -0400 |
commit | e4a828c97cbad5efa4aea8f61d1c2b7a52a6bb2f (patch) | |
tree | 647676affa5ab778099107d49a5f0c5a118338db /libnm-util | |
parent | 0853faae4390e4068d7355aacf346544e7668df9 (diff) | |
download | NetworkManager-danw/libnm-enum.tar.gz |
libnm-core: make NMSettingSerial:parity an enumdanw/libnm-enum
NMSettingSerial:parity was defined as a char-typed property that could
have the (case-sensitive!) values 'n', 'E', or 'o'. This is zany. Add
an NMSettingSerialParity enum, and use that instead.
Diffstat (limited to 'libnm-util')
-rw-r--r-- | libnm-util/nm-setting-serial.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libnm-util/nm-setting-serial.c b/libnm-util/nm-setting-serial.c index 4a7ee89e65..0f03e29ffe 100644 --- a/libnm-util/nm-setting-serial.c +++ b/libnm-util/nm-setting-serial.c @@ -283,6 +283,16 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class) * Parity setting of the serial port. Either 'E' for even parity, 'o' for * odd parity, or 'n' for no parity. **/ + /* plugins docs + * ---keyfile--- + * property: parity + * format: 'e', 'o', or 'n' + * description: The connection parity; even, odd, or none. Note that older + * versions of NetworkManager stored this as an integer: 69 ('E') for even, + * 111 ('o') for odd, or 110 ('n') for none. + * example: parity=n + * ---end--- + */ g_object_class_install_property (object_class, PROP_PARITY, g_param_spec_char (NM_SETTING_SERIAL_PARITY, "", "", |