summaryrefslogtreecommitdiff
path: root/examples/C
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-01-26 14:14:37 -0600
committerDan Williams <dcbw@redhat.com>2011-01-26 14:14:37 -0600
commite68e27aa75b65a71145472f5bc3b843cc0a9d857 (patch)
tree38033cd814aee65d452ac6cd09b3b166ca5ac78f /examples/C
parent6fc469d74a5f9153934a2989bea72cbf2e5e4991 (diff)
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/C')
-rw-r--r--examples/C/add-connection-glib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/C/add-connection-glib.c b/examples/C/add-connection-glib.c
index d650dc2f..433c7124 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,