BadVPN – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #define CHASH_PARAM_NAME NCDModuleIndex__MHash
2 #define CHASH_PARAM_ENTRY struct NCDModuleIndex_module
3 #define CHASH_PARAM_LINK NCDModuleIndex__mhash_link
4 #define CHASH_PARAM_KEY NCDModuleIndex__mhash_key
5 #define CHASH_PARAM_ARG int
6 #define CHASH_PARAM_NULL ((NCDModuleIndex__mhash_link)NULL)
7 #define CHASH_PARAM_DEREF(arg, link) (link)
8 #define CHASH_PARAM_ENTRYHASH(arg, entry) (badvpn_djb2_hash((const uint8_t *)(entry).ptr->imodule.module.type))
9 #define CHASH_PARAM_KEYHASH(arg, key) (badvpn_djb2_hash((const uint8_t *)(key)))
10 #define CHASH_PARAM_COMPARE_ENTRIES(arg, entry1, entry2) (!strcmp((entry1).ptr->imodule.module.type, (entry2).ptr->imodule.module.type))
11 #define CHASH_PARAM_COMPARE_KEY_ENTRY(arg, key1, entry2) (!strcmp((key1), (entry2).ptr->imodule.module.type))
12 #define CHASH_PARAM_ENTRY_NEXT hash_next