mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 03:30:09 +01:00
shared: add nm_g_array_len() helper
This commit is contained in:
parent
46bee5298b
commit
070535c6f6
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue