garray: Add g_ptr_array_new_from_array() to copy a C array

It makes it easier (and more optimized) to create a GPtrArray from a C-style
array of pointers, in case using a GCopyFunc to duplicate the elements.
This commit is contained in:
Marco Trevisan (Treviño)
2022-12-13 18:33:52 +01:00
parent d5efa78a12
commit c5aedc88fc
4 changed files with 214 additions and 1 deletions

View File

@@ -2717,6 +2717,7 @@ g_ptr_array_new_full
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_set_free_func
g_ptr_array_is_null_terminated
g_ptr_array_ref