summary refs log tree commit diff
path: root/libnm-core/nm-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-utils.h')
-rw-r--r--libnm-core/nm-utils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libnm-core/nm-utils.h b/libnm-core/nm-utils.h
index caf2e62e..77fe18a9 100644
--- a/libnm-core/nm-utils.h
+++ b/libnm-core/nm-utils.h
@@ -38,6 +38,8 @@
 
 G_BEGIN_DECLS
 
+typedef struct _NMVariantAttributeSpec NMVariantAttributeSpec;
+
 /* SSID helpers */
 gboolean    nm_utils_is_empty_ssid (const guint8 *ssid, gsize len);
 const char *nm_utils_escape_ssid   (const guint8 *ssid, gsize len);
@@ -215,6 +217,19 @@ const char **nm_utils_enum_get_values (GType type, gint from, gint to);
 NM_AVAILABLE_IN_1_6
 guint nm_utils_version (void);
 
+NM_AVAILABLE_IN_1_8
+GHashTable * nm_utils_parse_variant_attributes (const char *string,
+                                                char attr_separator,
+                                                char key_value_separator,
+                                                gboolean ignore_unknown,
+                                                const NMVariantAttributeSpec *const *spec,
+                                                GError **error);
+
+NM_AVAILABLE_IN_1_8
+char * nm_utils_format_variant_attributes (GHashTable *attributes,
+                                           char attr_separator,
+                                           char key_value_separator);
+
 G_END_DECLS
 
 #endif /* __NM_UTILS_H__ */