diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-05-24 13:43:32 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-07-11 16:16:22 +0200 |
commit | d6483592b8a69b8f5e78e455f40b75b912037f34 (patch) | |
tree | 7f9ee2502edc9ca01231a781804db3ad33632881 /libnm-core/nm-dbus-interface.h | |
parent | 507d078635f580a3cb9b33311fd93ba7408c080c (diff) | |
download | NetworkManager-d6483592b8a69b8f5e78e455f40b75b912037f34.tar.gz |
libnm: introduce NMTernary enum
Add a new enum that can be used where we need a boolean value that can
be overridden globally.
Diffstat (limited to 'libnm-core/nm-dbus-interface.h')
-rw-r--r-- | libnm-core/nm-dbus-interface.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libnm-core/nm-dbus-interface.h b/libnm-core/nm-dbus-interface.h index 94b4c28d75..0b451d8446 100644 --- a/libnm-core/nm-dbus-interface.h +++ b/libnm-core/nm-dbus-interface.h @@ -991,4 +991,20 @@ typedef enum { /*< flags >*/ NM_SETTINGS_UPDATE2_FLAG_BLOCK_AUTOCONNECT = (1LL << 5), } NMSettingsUpdate2Flags; +/** + * NMTernary: + * @NM_TERNARY_DEFAULT: use the globally-configured default value. + * @NM_TERNARY_FALSE: the option is disabled. + * @NM_TERNARY_TRUE: the option is enabled. + * + * An boolean value that can be overridden by a default. + * + * Since: 1.14 + **/ +typedef enum { + NM_TERNARY_DEFAULT = -1, + NM_TERNARY_FALSE = 0, + NM_TERNARY_TRUE = 1, +} NMTernary; + #endif /* __NM_DBUS_INTERFACE_H__ */ |