gstrvbuilder: Add a new object to make NULL-terminated string arrays.

GLib uses NULL-terminated string arrays (GStrv) in a number of places, however
these are quite hard to construct in C when the number of elements is not known
in advance. GStrvBuilder wraps GPtrArray to make these easy to create with
type safety and does the memory management for you.
This commit is contained in:
Robert Ancell
2020-10-14 11:01:24 +00:00
committed by Philip Withnall
parent 06587fbfd7
commit b2cc8d1740
8 changed files with 283 additions and 0 deletions

View File

@@ -1806,9 +1806,15 @@ g_strjoinv
<SUBSECTION>
GStrv
GStrvBuilder
g_strv_length
g_strv_contains
g_strv_equal
g_strv_builder_new
g_strv_builder_ref
g_strv_builder_unref
g_strv_builder_add
g_strv_builder_end
<SUBSECTION>
g_strerror