Add boxed GType for GMatchInfo

This commit is contained in:
Christian Persch 2011-06-23 18:31:29 +02:00
parent 00afe3fed3
commit 316efa1b5d
4 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -96,6 +96,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:
*
@ -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;

View File

@ -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