mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 07:40:08 +01:00
glib-aux: add NM_HASH_OBFUSCATE_PTR_STR_BUF_SIZE define
This commit is contained in:
parent
dc89f466ff
commit
a9776e7ed9
1 changed files with 3 additions and 0 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue