[glib/gsettings] make g_variant_format_string_scan_type public API



commit 0ec7c96e9f67ef8f3721955da586daf6d6e2bf94
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Aug 27 19:11:58 2009 -0400

    make g_variant_format_string_scan_type public API

 glib/gvariant-valist.c |    2 +-
 glib/gvariant.h        |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant-valist.c b/glib/gvariant-valist.c
index 60fab67..12805d1 100644
--- a/glib/gvariant-valist.c
+++ b/glib/gvariant-valist.c
@@ -168,7 +168,7 @@ g_variant_format_string_scan (const gchar  *string,
  * This function is otherwise exactly like
  * g_variant_format_string_scan().
  **/
-static GVariantType *
+GVariantType *
 g_variant_format_string_scan_type (const gchar  *string,
                                    const gchar  *limit,
                                    const gchar **endptr)
diff --git a/glib/gvariant.h b/glib/gvariant.h
index e4129bb..51980e2 100644
--- a/glib/gvariant.h
+++ b/glib/gvariant.h
@@ -49,7 +49,10 @@ void                            g_variant_get                           (GVarian
                                                                          ...);
 
 gboolean                        g_variant_format_string_scan            (const gchar          *string,
-                                                                         const gchar          *end,
+                                                                         const gchar          *limit,
+                                                                         const gchar         **endptr);
+GVariantType *                  g_variant_format_string_scan_type       (const gchar          *string,
+                                                                         const gchar          *limit,
                                                                          const gchar         **endptr);
 GVariant                       *g_variant_new_va                        (gpointer              must_be_null,
                                                                          const gchar          *format_string,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]