Add a boxed type for nul-terminated string arrays. (#110528)

Fri Jan  9 23:41:00 2004  Matthias Clasen  <maclas@gmx.de>

	* gboxed.h:
	* gboxed.c (g_strv_get_type): Add a boxed type for nul-terminated
	string arrays.  (#110528)
This commit is contained in:
Matthias Clasen
2004-01-09 22:39:55 +00:00
committed by Matthias Clasen
parent ba482c66c3
commit b4f769efaf
6 changed files with 67 additions and 1 deletions

View File

@@ -170,6 +170,18 @@ g_value_array_get_type (void)
return type_id;
}
GType
g_strv_get_type (void)
{
static GType type_id = 0;
if (!type_id)
type_id = g_boxed_type_register_static ("GStrv",
(GBoxedCopyFunc) g_strdupv,
(GBoxedFreeFunc) g_strfreev);
return type_id;
}
GType
g_gstring_get_type (void)
{