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:
Thomas Haller 2020-08-05 12:57:10 +02:00
parent 9f4ab95c01
commit 2222af9a91
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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,