diff options
author | Dan Williams <dcbw@redhat.com> | 2011-01-26 14:14:37 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-01-26 14:14:37 -0600 |
commit | e68e27aa75b65a71145472f5bc3b843cc0a9d857 (patch) | |
tree | 38033cd814aee65d452ac6cd09b3b166ca5ac78f /examples | |
parent | 6fc469d74a5f9153934a2989bea72cbf2e5e4991 (diff) | |
download | NetworkManager-e68e27aa75b65a71145472f5bc3b843cc0a9d857.tar.gz |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/C/add-connection-glib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/C/add-connection-glib.c b/examples/C/add-connection-glib.c index d650dc2f42..433c7124aa 100644 --- a/examples/C/add-connection-glib.c +++ b/examples/C/add-connection-glib.c @@ -74,7 +74,7 @@ add_connection (DBusGProxy *proxy, const char *con_name) NULL); nm_connection_add_setting (connection, NM_SETTING (s_ip4)); - hash = nm_connection_to_hash (connection); + hash = nm_connection_to_hash (connection, NM_SETTING_HASH_FLAG_ALL); /* Call AddConnection with the hash as argument */ dbus_g_proxy_call (proxy, "AddConnection", &error, |