mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 09:40:29 +01:00
connection setting must have at least name and type
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2748 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
ad0f89c69f
commit
fdbfbc1d6e
1 changed files with 5 additions and 0 deletions
|
|
@ -241,9 +241,14 @@ setting_connection_hash (NMSetting *setting)
|
|||
NMSettingConnection *self = (NMSettingConnection *) setting;
|
||||
GHashTable *hash;
|
||||
|
||||
g_return_val_if_fail (self->name != NULL, NULL);
|
||||
g_return_val_if_fail (self->devtype != NULL, NULL);
|
||||
|
||||
hash = setting_hash_new ();
|
||||
g_hash_table_insert (hash, "name", string_to_gvalue (self->name));
|
||||
g_hash_table_insert (hash, "devtype", string_to_gvalue (self->devtype));
|
||||
// FIXME: autoconnect is optional, need to differentiate between TRUE/FALSE
|
||||
// and "not present"
|
||||
g_hash_table_insert (hash, "autoconnect", boolean_to_gvalue (self->autoconnect));
|
||||
|
||||
return hash;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue