[glib] Add boxed GType for GMatchInfo



commit 316efa1b5d88f91df9d3384bfb1b0dd37134405d
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 23 18:31:29 2011 +0200

    Add boxed GType for GMatchInfo

 docs/reference/gobject/gobject-sections.txt |    2 ++
 gobject/gboxed.c                            |    2 ++
 gobject/glib-types.h                        |   10 ++++++++++
 gobject/gobject.symbols                     |    1 +
 4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gobject/gobject-sections.txt b/docs/reference/gobject/gobject-sections.txt
index bd5e672..fefe1b7 100644
--- a/docs/reference/gobject/gobject-sections.txt
+++ b/docs/reference/gobject/gobject-sections.txt
@@ -345,6 +345,7 @@ G_TYPE_DATE
 G_TYPE_GSTRING
 G_TYPE_STRV
 G_TYPE_REGEX
+G_TYPE_MATCH_INFO
 G_TYPE_ARRAY
 G_TYPE_BYTE_ARRAY
 G_TYPE_PTR_ARRAY
@@ -362,6 +363,7 @@ g_strv_get_type
 g_date_get_type
 g_hash_table_get_type
 g_regex_get_type
+g_match_info_get_type
 g_array_get_type
 g_byte_array_get_type
 g_ptr_array_get_type
diff --git a/gobject/gboxed.c b/gobject/gboxed.c
index 6fa8f26..02da78a 100644
--- a/gobject/gboxed.c
+++ b/gobject/gboxed.c
@@ -130,8 +130,10 @@ G_DEFINE_BOXED_TYPE (GByteArray, g_byte_array, g_byte_array_ref, g_byte_array_un
 
 #ifdef ENABLE_REGEX
 G_DEFINE_BOXED_TYPE (GRegex, g_regex, g_regex_ref, g_regex_unref)
+G_DEFINE_BOXED_TYPE (GMatchInfo, g_match_info, g_match_info_ref, g_match_info_unref)
 #else
 GType g_regex_get_type (void) { return G_TYPE_INVALID; }
+GType g_match_info_get_type (void) { return G_TYPE_INVALID; }
 #endif /* ENABLE_REGEX */
 
 #define g_variant_type_get_type g_variant_type_get_gtype
diff --git a/gobject/glib-types.h b/gobject/glib-types.h
index f4c6980..1f3eb0f 100644
--- a/gobject/glib-types.h
+++ b/gobject/glib-types.h
@@ -97,6 +97,15 @@ typedef gsize GType;
 #define G_TYPE_REGEX (g_regex_get_type ())
 
 /**
+ * G_TYPE_MATCH_INFO:
+ *
+ * The #GType for a boxed type holding a #GMatchInfo reference.
+ *
+ * Since: 2.30
+ */
+#define G_TYPE_MATCH_INFO (g_match_info_get_type ())
+
+/**
  * G_TYPE_ARRAY:
  *
  * The #GType for a boxed type holding a #GArray reference.
@@ -182,6 +191,7 @@ GType   g_byte_array_get_type      (void) G_GNUC_CONST;
 GType   g_ptr_array_get_type       (void) G_GNUC_CONST;
 GType   g_variant_type_get_gtype   (void) G_GNUC_CONST;
 GType   g_regex_get_type           (void) G_GNUC_CONST;
+GType   g_mach_info_get_type       (void) G_GNUC_CONST;
 GType   g_error_get_type           (void) G_GNUC_CONST;
 GType   g_date_time_get_type       (void) G_GNUC_CONST;
 GType   g_io_channel_get_type      (void) G_GNUC_CONST;
diff --git a/gobject/gobject.symbols b/gobject/gobject.symbols
index de41053..55494ab 100644
--- a/gobject/gobject.symbols
+++ b/gobject/gobject.symbols
@@ -24,6 +24,7 @@ g_byte_array_get_type
 g_error_get_type
 g_ptr_array_get_type
 g_regex_get_type
+g_match_info_get_type
 g_variant_builder_get_type
 g_variant_type_get_gtype
 g_closure_get_type



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