libnm-util: add 'flags' argument to nm_connection_to_hash() and nm_setting_to_hash()

Simplifies code internally, and makes it easier for clients as well in
some cases where they want to control what ends up in the resulting
hash and what does not.
This commit is contained in:
Dan Williams
2011-01-26 14:14:37 -06:00
parent 6fc469d74a
commit e68e27aa75
13 changed files with 194 additions and 75 deletions

View File

@@ -405,7 +405,7 @@ nm_utils_call_dispatcher (const char *action,
}
if (connection) {
connection_hash = nm_connection_to_hash (connection);
connection_hash = nm_connection_to_hash (connection, NM_SETTING_HASH_FLAG_NO_SECRETS);
connection_props = value_hash_create ();