mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 07:40:31 +01:00
shared: add nm_puint32_hash/nm_puint32_equals helpers
They are in practice idential to nm_pint_hash/nm_pint_equals. So, just #define them.
This commit is contained in:
parent
9f4ab95c01
commit
2222af9a91
1 changed files with 4 additions and 0 deletions
|
|
@ -296,6 +296,10 @@ gboolean nm_pstr_equal (gconstpointer a, gconstpointer b);
|
|||
guint nm_pint_hash (gconstpointer p);
|
||||
gboolean nm_pint_equals (gconstpointer a, gconstpointer b);
|
||||
|
||||
G_STATIC_ASSERT (sizeof (int) == sizeof (guint32));
|
||||
#define nm_puint32_hash nm_pint_hash
|
||||
#define nm_puint32_equals nm_pint_equals
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* this hashes/compares the pointer value that we point to. Basically,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue