mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 05:20:32 +01:00
shared: add nm_strcmp0_p_with_data() helper
This commit is contained in:
parent
a78ba1c33a
commit
29a7bffecf
2 changed files with 10 additions and 0 deletions
|
|
@ -831,6 +831,15 @@ nm_strcmp_p_with_data (gconstpointer a, gconstpointer b, gpointer user_data)
|
|||
return strcmp (s1, s2);
|
||||
}
|
||||
|
||||
int
|
||||
nm_strcmp0_p_with_data (gconstpointer a, gconstpointer b, gpointer user_data)
|
||||
{
|
||||
const char *s1 = *((const char **) a);
|
||||
const char *s2 = *((const char **) b);
|
||||
|
||||
return nm_strcmp0 (s1, s2);
|
||||
}
|
||||
|
||||
int
|
||||
nm_cmp_uint32_p_with_data (gconstpointer p_a, gconstpointer p_b, gpointer user_data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -920,6 +920,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_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