summaryrefslogtreecommitdiff
path: root/gobject/gboxed.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-01-09 22:39:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-01-09 22:39:55 +0000
commitb4f769efafc9fa1ad3862e2516ee534c7d159455 (patch)
treea4fd419a9fd513325405ca405df1d4da7db548d9 /gobject/gboxed.c
parentba482c66c3afc35f7fb3676eced9ab93d8cb1c01 (diff)
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)
Diffstat (limited to 'gobject/gboxed.c')
-rw-r--r--gobject/gboxed.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/gboxed.c b/gobject/gboxed.c
index f62647f2d..54a1b4901 100644
--- a/gobject/gboxed.c
+++ b/gobject/gboxed.c
@@ -171,6 +171,18 @@ g_value_array_get_type (void)
}
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)
{
static GType type_id = 0;