mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 15:40:10 +01:00
ifcfg: add svSetValueBoolean_cond_true() helper
This commit is contained in:
parent
234cb5a923
commit
87af96a9d6
2 changed files with 7 additions and 0 deletions
|
|
@ -1337,6 +1337,12 @@ svSetValueBoolean (shvarFile *s, const char *key, gboolean value)
|
|||
return svSetValue (s, key, value ? "yes" : "no");
|
||||
}
|
||||
|
||||
gboolean
|
||||
svSetValueBoolean_cond_true (shvarFile *s, const char *key, gboolean value)
|
||||
{
|
||||
return svSetValue (s, key, value ? "yes" : NULL);
|
||||
}
|
||||
|
||||
gboolean
|
||||
svSetValueEnum (shvarFile *s, const char *key, GType gtype, int value)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ gboolean svGetValueEnum (shvarFile *s, const char *key,
|
|||
gboolean svSetValue (shvarFile *s, const char *key, const char *value);
|
||||
gboolean svSetValueStr (shvarFile *s, const char *key, const char *value);
|
||||
gboolean svSetValueBoolean (shvarFile *s, const char *key, gboolean value);
|
||||
gboolean svSetValueBoolean_cond_true (shvarFile *s, const char *key, gboolean value);
|
||||
gboolean svSetValueInt64 (shvarFile *s, const char *key, gint64 value);
|
||||
gboolean svSetValueInt64_cond (shvarFile *s, const char *key, gboolean do_set, gint64 value);
|
||||
gboolean svSetValueEnum (shvarFile *s, const char *key, GType gtype, int value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue