From e68e27aa75b65a71145472f5bc3b843cc0a9d857 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 26 Jan 2011 14:14:37 -0600 Subject: 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. --- examples/C/add-connection-glib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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, -- cgit v1.2.1