diff options
| author | Michael Biebl <biebl@debian.org> | 2017-05-11 14:55:55 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-05-11 14:55:55 +0200 |
| commit | c333f062ddcba9b35330647bf6cbd0a07f2d786e (patch) | |
| tree | 257c3a0c74c09f4ad2328eab5b932806405f0c1c /libnm-core/nm-utils.h | |
| parent | a222e56e103f949b148a6942e385ccca2c26d9f3 (diff) | |
New upstream version 1.8.0 upstream/1.8.0
Diffstat (limited to 'libnm-core/nm-utils.h')
| -rw-r--r-- | libnm-core/nm-utils.h | 15 |
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__ */ |