Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2017-03-06 11:22:36 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2017-03-06 11:22:36 +0300
commitf7de617a96aa79d0aa4b979301f9daad828418f2 (patch)
treedb7994189b1e56b63875b00fab684b5795cdece3 /include/zbxalgo.h
parent14ea66607dbbb25b0360b1b8654d01a3edcfd936 (diff)
.......PS. [ZBXNEXT-3659] refactored macro caching to allow creating temporary macro cache/index
Diffstat (limited to 'include/zbxalgo.h')
-rw-r--r--include/zbxalgo.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/zbxalgo.h b/include/zbxalgo.h
index 8ceb4edd49e..05cf1e1f868 100644
--- a/include/zbxalgo.h
+++ b/include/zbxalgo.h
@@ -42,12 +42,14 @@ typedef zbx_hash_t (*zbx_hash_func_t)(const void *data);
zbx_hash_t zbx_default_ptr_hash_func(const void *data);
zbx_hash_t zbx_default_uint64_hash_func(const void *data);
zbx_hash_t zbx_default_string_hash_func(const void *data);
+zbx_hash_t zbx_default_uint64_pair_hash_func(const void *data);
#define ZBX_DEFAULT_HASH_SEED 0
-#define ZBX_DEFAULT_PTR_HASH_FUNC zbx_default_ptr_hash_func
-#define ZBX_DEFAULT_UINT64_HASH_FUNC zbx_default_uint64_hash_func
-#define ZBX_DEFAULT_STRING_HASH_FUNC zbx_default_string_hash_func
+#define ZBX_DEFAULT_PTR_HASH_FUNC zbx_default_ptr_hash_func
+#define ZBX_DEFAULT_UINT64_HASH_FUNC zbx_default_uint64_hash_func
+#define ZBX_DEFAULT_STRING_HASH_FUNC zbx_default_string_hash_func
+#define ZBX_DEFAULT_UINT64_PAIR_HASH_FUNC zbx_default_uint64_pair_hash_func
typedef int (*zbx_compare_func_t)(const void *d1, const void *d2);
@@ -56,12 +58,14 @@ int zbx_default_uint64_compare_func(const void *d1, const void *d2);
int zbx_default_uint64_ptr_compare_func(const void *d1, const void *d2);
int zbx_default_str_compare_func(const void *d1, const void *d2);
int zbx_default_ptr_compare_func(const void *d1, const void *d2);
+int zbx_default_uint64_pair_compare_func(const void *d1, const void *d2);
#define ZBX_DEFAULT_INT_COMPARE_FUNC zbx_default_int_compare_func
#define ZBX_DEFAULT_UINT64_COMPARE_FUNC zbx_default_uint64_compare_func
#define ZBX_DEFAULT_UINT64_PTR_COMPARE_FUNC zbx_default_uint64_ptr_compare_func
#define ZBX_DEFAULT_STR_COMPARE_FUNC zbx_default_str_compare_func
#define ZBX_DEFAULT_PTR_COMPARE_FUNC zbx_default_ptr_compare_func
+#define ZBX_DEFAULT_UINT64_PAIR_COMPARE_FUNC zbx_default_uint64_pair_compare_func
typedef void *(*zbx_mem_malloc_func_t)(void *old, size_t size);
typedef void *(*zbx_mem_realloc_func_t)(void *old, size_t size);