shared: add nm_g_ptr_array_len() helper

This commit is contained in:
Thomas Haller 2020-05-06 12:46:14 +02:00
parent ef16dcaee4
commit 46bee5298b
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_ptr_array_len (const GPtrArray *arr)
{
return arr ? arr->len : 0u;
}
/*****************************************************************************/
static inline guint
nm_g_hash_table_size (GHashTable *hash)
{