glib-aux: add NM_HASH_OBFUSCATE_PTR_STR_BUF_SIZE define

This commit is contained in:
Thomas Haller 2021-05-19 17:28:59 +02:00
parent dc89f466ff
commit a9776e7ed9
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -416,6 +416,9 @@ nm_hash_obfuscate_ptr(guint static_seed, gconstpointer val)
* values in a global context. */
#define NM_HASH_OBFUSCATE_PTR(ptr) (nm_hash_obfuscate_ptr(1678382159u, ptr))
/* NM_HASH_OBFUSCATE_PTR_STR needs a buffer of at least this many bytes. */
#define NM_HASH_OBFUSCATE_PTR_STR_BUF_SIZE 19
#define NM_HASH_OBFUSCATE_PTR_STR(ptr, buf) \
({ \
gconstpointer _ptr = (ptr); \