mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
shared: add nm_g_ptr_array_len() helper
This commit is contained in:
parent
ef16dcaee4
commit
46bee5298b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue