mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 05:00:15 +01:00
glib-aux: add nm_strvarray_contains() helper
This commit is contained in:
parent
9f9a89d778
commit
7ab9a2b69f
1 changed files with 2 additions and 0 deletions
|
|
@ -3112,6 +3112,8 @@ nm_strvarray_find_first(GArray *strv, const char *needle)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#define nm_strvarray_contains(strv, needle) (nm_strvarray_find_first((strv), (needle)) >= 0)
|
||||
|
||||
static inline gboolean
|
||||
nm_strvarray_remove_first(GArray *strv, const char *needle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue