mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 14:20:36 +01:00
shared: add nm_strcmp_ascii_case_with_data() helper
This commit is contained in:
parent
a46940d0d7
commit
00c6823ecc
2 changed files with 10 additions and 0 deletions
|
|
@ -1381,6 +1381,15 @@ nm_strcmp0_p_with_data (gconstpointer a, gconstpointer b, gpointer user_data)
|
|||
return nm_strcmp0 (s1, s2);
|
||||
}
|
||||
|
||||
int
|
||||
nm_strcmp_ascii_case_with_data (gconstpointer a, gconstpointer b, gpointer user_data)
|
||||
{
|
||||
const char *s1 = a;
|
||||
const char *s2 = b;
|
||||
|
||||
return g_ascii_strcasecmp (s1, s2);
|
||||
}
|
||||
|
||||
int
|
||||
nm_cmp_uint32_p_with_data (gconstpointer p_a, gconstpointer p_b, gpointer user_data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1427,6 +1427,7 @@ nm_utf8_collate0 (const char *a, const char *b)
|
|||
int nm_strcmp_with_data (gconstpointer a, gconstpointer b, gpointer user_data);
|
||||
int nm_strcmp_p_with_data (gconstpointer a, gconstpointer b, gpointer user_data);
|
||||
int nm_strcmp0_p_with_data (gconstpointer a, gconstpointer b, gpointer user_data);
|
||||
int nm_strcmp_ascii_case_with_data (gconstpointer a, gconstpointer b, gpointer user_data);
|
||||
int nm_cmp_uint32_p_with_data (gconstpointer p_a, gconstpointer p_b, gpointer user_data);
|
||||
int nm_cmp_int2ptr_p_with_data (gconstpointer p_a, gconstpointer p_b, gpointer user_data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue