From 9fd459f326b31417318446f6c3eeaf08009f01e8 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 20 Nov 2008 12:33:08 +0000 Subject: [PATCH] more documentation git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4310 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- libnm-util/nm-setting.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libnm-util/nm-setting.c b/libnm-util/nm-setting.c index 1d9477c6ce..c319a5d301 100644 --- a/libnm-util/nm-setting.c +++ b/libnm-util/nm-setting.c @@ -53,6 +53,16 @@ destroy_gvalue (gpointer data) g_slice_free (GValue, value); } +/** + * nm_setting_to_hash: + * @setting: the #NMSetting + * + * Converts the #NMSetting into a #GHashTable mapping each setting property + * name to a GValue describing that property, suitable for marshalling over + * D-Bus or serializing. The mapping is string:GValue. + * + * Returns: a new #GHashTable describing the setting's properties + **/ GHashTable * nm_setting_to_hash (NMSetting *setting) {