#ifndef SDB_SET_H #define SDB_SET_H #include "ht_pp.h" #include "ht_up.h" #ifdef __cplusplus extern "C" { #endif typedef HtPP SetP; typedef bool (*set_p_foreach_cb)(void *userdata, const void *p); typedef bool (*set_u_foreach_cb)(void *userdata, const ut64 u); SDB_API SetP *set_p_new(void); SDB_API void set_p_add(SetP *p, void *u); SDB_API bool set_p_contains(SetP *s, void *u); SDB_API void set_p_delete(SetP *s, void *u); SDB_API void set_p_free(SetP *p); SDB_API void set_p_foreach(SetP *p, set_p_foreach_cb cb, void *u); typedef HtUP SetU; SDB_API SetU *set_u_new(void); SDB_API void set_u_add(SetU *p, ut64 u); SDB_API bool set_u_contains(SetU *s, ut64 u); SDB_API void set_u_delete(SetU *s, ut64 u); SDB_API void set_u_free(SetU *p); SDB_API void set_u_foreach(SetU *s, set_u_foreach_cb cb, void *u); #ifdef __cplusplus } #endif #endif