summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-07 17:51:41 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-07 17:52:23 +0200
commit1210bc667d2d133814a0eb3cbcfcfb7e721fba9f (patch)
treefa045d1b1646d38f207b3b5329c7f2e85e0f9712
parentb4b879648c378e7cfaef940489c3c1ccc21b27e0 (diff)
downloadsystemd-1210bc667d2d133814a0eb3cbcfcfb7e721fba9f.tar.gz
hashmap: document trivial_hash_func()
-rw-r--r--src/shared/hashmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/hashmap.h b/src/shared/hashmap.h
index 8f6e644b25..15b7e27585 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_;