Added GRegex boxed type. (#445065, Carlos Garnacho)

2007-06-15  Cody Russell  <bratsche@gnome.org>

	* docs/reference/gobject/tmpl/gboxed.sgml:
	* docs/reference/gobject/gobject-sections.txt:
	* glib/gregex.c:
	* gobject/gboxed.[ch]:
	* gobject/gobject.symbols: Added GRegex boxed type.
	(#445065, Carlos Garnacho)


svn path=/trunk/; revision=5566
This commit is contained in:
Cody Russell
2007-06-15 16:31:21 +00:00
committed by Cody Russell
parent e674f5fe77
commit 49f802b83e
7 changed files with 36 additions and 2 deletions

View File

@@ -241,6 +241,17 @@ g_hash_table_get_type (void)
return type_id;
}
GType
g_regex_get_type (void)
{
static GType type_id = 0;
if (!type_id)
type_id = g_boxed_type_register_static (g_intern_static_string ("GRegex"),
(GBoxedCopyFunc) g_regex_ref,
(GBoxedFreeFunc) g_regex_unref);
return type_id;
}
static void
boxed_proxy_value_init (GValue *value)
{

View File

@@ -64,6 +64,7 @@ GType g_boxed_type_register_static (const gchar *name,
#define G_TYPE_STRV (g_strv_get_type ())
#define G_TYPE_GSTRING (g_gstring_get_type ())
#define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
#define G_TYPE_REGEX (g_regex_get_type ())
void g_value_take_boxed (GValue *value,
@@ -79,6 +80,7 @@ GType g_date_get_type (void) G_GNUC_CONST;
GType g_strv_get_type (void) G_GNUC_CONST;
GType g_gstring_get_type (void) G_GNUC_CONST;
GType g_hash_table_get_type (void) G_GNUC_CONST;
GType g_regex_get_type (void) G_GNUC_CONST;
typedef gchar** GStrv;

View File

@@ -20,6 +20,7 @@ g_date_get_type G_GNUC_CONST
g_gstring_get_type G_GNUC_CONST
g_strv_get_type G_GNUC_CONST
g_hash_table_get_type G_GNUC_CONST
g_regex_get_type G_GNUC_CONST
g_closure_get_type G_GNUC_CONST
g_value_get_type G_GNUC_CONST
g_value_array_get_type G_GNUC_CONST