summaryrefslogtreecommitdiff
path: root/glib/gvariant.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-08-18 14:12:55 -0400
committerRyan Lortie <desrt@desrt.ca>2012-08-20 16:26:25 -0400
commit34653169e5653b95d61c461f088e6016f042d08a (patch)
treef6ec25208a5062ff8f8eadb97315d2c4573ae296 /glib/gvariant.h
parent6a6b64ef4d9f2985eaf1cb727398019359b4b4f4 (diff)
downloadglib-34653169e5653b95d61c461f088e6016f042d08a.tar.gz
GVariant: add g_variant_check_format_string()
For some time now people have been asking for a way to check for type compatibility between GVariant instances and format strings. There are several APIs inside of GLib itself that would benefit from this. This patch introduces a way to do that.
Diffstat (limited to 'glib/gvariant.h')
-rw-r--r--glib/gvariant.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/glib/gvariant.h b/glib/gvariant.h
index d0cd85794..3c92d21a0 100644
--- a/glib/gvariant.h
+++ b/glib/gvariant.h
@@ -265,7 +265,9 @@ void g_variant_get_va (GVarian
const gchar *format_string,
const gchar **endptr,
va_list *app);
-
+gboolean g_variant_check_format_string (GVariant *value,
+ const gchar *format_string,
+ gboolean copy_only);
GVariant * g_variant_parse (const GVariantType *type,
const gchar *text,