summaryrefslogtreecommitdiff
path: root/libnm-core
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-14 17:06:36 +0200
committerThomas Haller <thaller@redhat.com>2018-09-14 17:19:40 +0200
commite645aeb12ccefb1fbe18bb33d046ee649de86da0 (patch)
treecfec1b2a6abf797228bdf2e52195f3881153b330 /libnm-core
parenta525b12c5a17dba46ae4323d112284e1c6cf4ddc (diff)
libnm: document nm_utils_parse_variant_attributes() returning floating references
See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1594887
Diffstat (limited to 'libnm-core')
-rw-r--r--libnm-core/nm-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 9151a0109..ab2902a63 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -6035,7 +6035,9 @@ attribute_unescape (const char *start, const char *end)
* Parse attributes from a string.
*
* Returns: (transfer full) (element-type utf8 GVariant): a #GHashTable mapping
- * attribute names to #GVariant values.
+ * attribute names to #GVariant values. Warning: the variant are still floating
+ * references, owned by the hash table. If you take a reference, ensure to sink
+ * the one of the hash table first.
*
* Since: 1.8
*/