From: Lennart Poettering Date: Tue, 7 May 2013 15:51:41 +0000 (+0200) Subject: hashmap: document trivial_hash_func() X-Git-Tag: v204~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1210bc667d2d133814a0eb3cbcfcfb7e721fba9f;ds=sidebyside hashmap: document trivial_hash_func() --- diff --git a/src/shared/hashmap.h b/src/shared/hashmap.h index 8f6e644b2..15b7e2758 100644 --- a/src/shared/hashmap.h +++ b/src/shared/hashmap.h @@ -43,6 +43,9 @@ typedef int (*compare_func_t)(const void *a, const void *b); unsigned string_hash_func(const void *p) _pure_; int string_compare_func(const void *a, const void *b) _pure_; +/* This will compare the passed pointers directly, and will not + * dereference them. This is hence not useful for strings or + * suchlike. */ unsigned trivial_hash_func(const void *p) _const_; int trivial_compare_func(const void *a, const void *b) _const_;