mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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:
committed by
Matthias Clasen
parent
ba482c66c3
commit
b4f769efaf
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user