Rizin
unix-like reverse engineering framework and cli tools
ht_up.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2016-2018 crowell
2 // SPDX-FileCopyrightText: 2016-2018 pancake <pancake@nopcode.org>
3 // SPDX-FileCopyrightText: 2016-2018 ret2libc <sirmy15@gmail.com>
4 // SPDX-License-Identifier: BSD-3-Clause
5 
6 #ifndef SDB_HT_UP_H
7 #define SDB_HT_UP_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*
14  * This header provides an hashtable HtUP that has ut64 as key and void* as
15  * value. The API functions starts with "ht_up_" and the types starts with "HtUP".
16  */
17 #define HT_TYPE 2
18 #include "ht_inc.h"
19 
20 RZ_API HtName_(Ht) * Ht_(new0)(void);
21 RZ_API HtName_(Ht) * Ht_(new)(HT_(DupValue) valdup, HT_(KvFreeFunc) pair_free, HT_(CalcSizeV) valueSize);
22 RZ_API HtName_(Ht) * Ht_(new_size)(ut32 initial_size, HT_(DupValue) valdup, HT_(KvFreeFunc) pair_free, HT_(CalcSizeV) valueSize);
23 #undef HT_TYPE
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif
#define RZ_API
uint32_t ut32
#define Ht_(name)
Definition: ht_inc.h:44
RZ_API HtName_(Ht) *Ht_(new0)(void)
Definition: ht_pp.c:26
RZ_API HT_(KvFreeFunc) pair_free