shared: add nm_g_array_len() helper

This commit is contained in:
Thomas Haller 2020-05-06 13:22:53 +02:00
parent 46bee5298b
commit 070535c6f6
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1435,6 +1435,14 @@ char *nm_utils_g_slist_strlist_join (const GSList *a, const char *separator);
/*****************************************************************************/
static inline guint
nm_g_array_len (const GArray *arr)
{
return arr ? arr->len : 0u;
}
/*****************************************************************************/
static inline guint
nm_g_ptr_array_len (const GPtrArray *arr)
{