diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-01-09 22:39:55 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-01-09 22:39:55 +0000 |
commit | b4f769efafc9fa1ad3862e2516ee534c7d159455 (patch) | |
tree | a4fd419a9fd513325405ca405df1d4da7db548d9 /gobject/gboxed.c | |
parent | ba482c66c3afc35f7fb3676eced9ab93d8cb1c01 (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.c | 12 |
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; |