garray: Add g_ptr_array_new_from_null_terminated_array()

It allows to create a GPtrArray from a null-terminated C array computing its
size and in case performing copies of the its values using the provided
GCopyFunc.
This commit is contained in:
Marco Trevisan (Treviño)
2022-12-13 20:58:47 +01:00
parent c5aedc88fc
commit 670c1f4173
4 changed files with 272 additions and 14 deletions

View File

@@ -2718,6 +2718,7 @@ g_ptr_array_new_null_terminated
g_ptr_array_new_take
g_ptr_array_new_take_null_terminated
g_ptr_array_new_from_array
g_ptr_array_new_from_null_terminated_array
g_ptr_array_set_free_func
g_ptr_array_is_null_terminated
g_ptr_array_ref