Rizin
unix-like reverse engineering framework and cli tools
set.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: pancake <pancake@nopcode.org>
2 // SPDX-License-Identifier: MIT
3 
4 #ifndef SDB_SET_H
5 #define SDB_SET_H
6 
7 #include "ht_pp.h"
8 #include "ht_up.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 typedef HtPP SetP;
15 
16 RZ_API SetP *set_p_new(void);
17 RZ_API void set_p_add(SetP *p, const void *u);
18 RZ_API bool set_p_contains(SetP *s, const void *u);
19 RZ_API void set_p_delete(SetP *s, const void *u);
20 RZ_API void set_p_free(SetP *p);
21 
22 typedef HtUP SetU;
23 
24 RZ_API SetU *set_u_new(void);
25 RZ_API void set_u_add(SetU *p, ut64 u);
26 RZ_API bool set_u_contains(SetU *s, ut64 u);
27 RZ_API void set_u_delete(SetU *s, ut64 u);
28 RZ_API void set_u_free(SetU *p);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif
#define RZ_API
void * p
Definition: libc.cpp:67
static RzSocket * s
Definition: rtr.c:28
RZ_API void set_p_free(SetP *p)
Definition: set.c:24
RZ_API void set_u_add(SetU *p, ut64 u)
Definition: set.c:34
RZ_API SetU * set_u_new(void)
Definition: set.c:30
RZ_API void set_p_delete(SetP *s, const void *u)
Definition: set.c:20
RZ_API bool set_p_contains(SetP *s, const void *u)
Definition: set.c:16
RZ_API SetP * set_p_new(void)
Definition: set.c:8
RZ_API void set_u_free(SetU *p)
Definition: set.c:46
RZ_API void set_u_delete(SetU *s, ut64 u)
Definition: set.c:42
HtPP SetP
Definition: set.h:14
RZ_API void set_p_add(SetP *p, const void *u)
Definition: set.c:12
HtUP SetU
Definition: set.h:22
RZ_API bool set_u_contains(SetU *s, ut64 u)
Definition: set.c:38
ut64(WINAPI *w32_GetEnabledXStateFeatures)()