17 #define RZ_FLAG_NAME_SIZE 512
94 #define rz_flag_bind_init(x) memset(&x, 0, sizeof(x))
143 static inline const char *rz_flag_space_cur_name(
RzFlag *
f) {
151 static inline bool rz_flag_space_unset(
RzFlag *
f,
const char *
name) {
155 static inline bool rz_flag_space_rename(
RzFlag *
f,
const char *oname,
const char *nname) {
159 static inline bool rz_flag_space_push(
RzFlag *
f,
const char *
name) {
163 static inline bool rz_flag_space_pop(
RzFlag *
f) {
167 static inline int rz_flag_space_count(
RzFlag *
f,
const char *
name) {
171 static inline bool rz_flag_space_is_empty(
RzFlag *
f) {
175 #define rz_flag_space_foreach(f, it, s) rz_spaces_foreach(&(f)->spaces, (it), (s))
RZ_API int rz_flag_rename(RzFlag *f, RzFlagItem *item, const char *name)
RZ_API RzFlagItem * rz_flag_get_i(RzFlag *f, ut64 off)
RZ_API void rz_flag_foreach_space_glob(RzFlag *f, const char *glob, const RzSpace *space, RzFlagItemCb cb, void *user)
RZ_API RzFlagItem * rz_flag_item_clone(RzFlagItem *item)
RZ_API RzFlag * rz_flag_free(RzFlag *f)
RZ_API int rz_flag_count(RzFlag *f, const char *glob)
RZ_API void rz_flag_item_free(RzFlagItem *item)
RZ_API void rz_flag_foreach_range(RZ_NONNULL RzFlag *f, ut64 from, ut64 to, RzFlagItemCb cb, void *user)
RZ_API const char * rz_flag_item_set_color(RzFlagItem *item, const char *color)
RZ_API void rz_flag_unset_all_in_space(RzFlag *f, const char *space_name)
Unset all flag items in the space with the given name.
RZ_API void rz_flag_item_set_comment(RzFlagItem *item, const char *comment)
RZ_API RzFlagItem * rz_flag_set_next(RzFlag *f, const char *name, ut64 off, ut32 size)
RZ_API const RzList * rz_flag_get_list(RzFlag *f, ut64 off)
RZ_API void rz_flag_foreach_prefix(RzFlag *f, const char *pfx, int pfx_len, RzFlagItemCb cb, void *user)
RZ_API bool rz_flag_unset_all_off(RzFlag *f, ut64 off)
RZ_API RzList * rz_flag_all_list(RzFlag *f, bool by_space)
RZ_API void rz_flag_item_set_alias(RzFlagItem *item, const char *alias)
RZ_API RzFlagItem * rz_flag_get_at(RzFlag *f, ut64 off, bool closest)
RZ_API char * rz_flag_get_liststr(RzFlag *f, ut64 off)
RZ_API RzFlagItem * rz_flag_get(RzFlag *f, const char *name)
RZ_API RzFlagItem * rz_flag_set(RzFlag *f, const char *name, ut64 off, ut32 size)
RZ_API bool rz_flag_exist_at(RzFlag *f, const char *flag_prefix, ut16 fp_size, ut64 off)
RZ_API void rz_flag_unset_all(RzFlag *f)
RZ_API bool rz_flag_unset(RzFlag *f, RzFlagItem *item)
RZ_API bool rz_flag_unset_name(RzFlag *f, const char *name)
RZ_API bool rz_flag_move(RzFlag *f, ut64 at, ut64 to)
RZ_API RzFlagItem * rz_flag_get_by_spaces(RzFlag *f, ut64 off,...)
RZ_API int rz_flag_unset_glob(RzFlag *f, const char *glob)
RZ_API void rz_flag_foreach_space(RzFlag *f, const RzSpace *space, RzFlagItemCb cb, void *user)
RZ_API int rz_flag_relocate(RzFlag *f, ut64 off, ut64 off_mask, ut64 to)
RZ_API void rz_flag_item_set_realname(RzFlagItem *item, const char *realname)
RZ_API RzFlag * rz_flag_new(void)
RZ_API void rz_flag_foreach_glob(RzFlag *f, const char *glob, RzFlagItemCb cb, void *user)
RZ_API bool rz_flag_unset_off(RzFlag *f, ut64 off)
RZ_API void rz_flag_foreach(RzFlag *f, RzFlagItemCb cb, void *user)
RzFlagItem *(* RzFlagGetAtBySpaces)(RzFlag *f, ut64 off,...)
RzFlagItem *(* RzFlagSet)(RzFlag *f, const char *name, ut64 addr, ut32 size)
RZ_LIB_VERSION_HEADER(rz_flag)
const RzList *(* RzFlagGetList)(RzFlag *f, ut64 addr)
bool(* RzFlagItemCb)(RzFlagItem *fi, void *user)
int(* RzFlagRename)(RzFlag *f, RzFlagItem *item, const char *name)
bool(* RzFlagPushSpace)(RzFlag *f, const char *name)
struct rz_flag_zone_item_t RzFlagZoneItem
bool(* RzFlagUnset)(RzFlag *f, RzFlagItem *item)
RzFlagItem *(* RzFlagGet)(RzFlag *f, const char *name)
bool(* RzFlagUnsetName)(RzFlag *f, const char *name)
RZ_API void rz_flag_bind(RzFlag *io, RzFlagBind *bnd)
struct rz_flag_item_t RzFlagItem
RzFlagItem *(* RzFlagGetAt)(RzFlag *f, ut64 addr, bool closest)
bool(* RzFlagUnsetOff)(RzFlag *f, ut64 addr)
bool(* RzFlagPopSpace)(RzFlag *f)
RzSpace *(* RzFlagSetSpace)(RzFlag *f, const char *name)
struct rz_flag_bind_t RzFlagBind
bool(* RzFlagExistAt)(RzFlag *f, const char *flag_prefix, ut16 fp_size, ut64 off)
struct rz_flags_at_offset_t RzFlagsAtOffset
RZ_API RzSpace * rz_spaces_get(RzSpaces *sp, const char *name)
RZ_API bool rz_spaces_push(RzSpaces *sp, const char *name)
RZ_API RzSpace * rz_spaces_set(RzSpaces *sp, const char *name)
static const char * rz_spaces_current_name(RzSpaces *sp)
RZ_API int rz_spaces_count(RzSpaces *sp, const char *name)
RZ_API bool rz_spaces_pop(RzSpaces *sp)
static bool rz_spaces_is_empty(RzSpaces *sp)
static RzSpace * rz_spaces_current(RzSpaces *sp)
RZ_API bool rz_spaces_rename(RzSpaces *sp, const char *oname, const char *nname)
RZ_API bool rz_spaces_unset(RzSpaces *sp, const char *name)
RZ_API bool rz_serialize_flag_zones_load(RZ_NONNULL Sdb *db, RZ_NONNULL RzList *zones, RZ_NULLABLE RzSerializeResultInfo *res)
RZ_API void rz_serialize_flag_save(RZ_NONNULL Sdb *db, RZ_NONNULL RzFlag *flag)
RZ_API bool rz_serialize_flag_load(RZ_NONNULL Sdb *db, RZ_NONNULL RzFlag *flag, RZ_NULLABLE RzSerializeResultInfo *res)
RZ_API void rz_serialize_flag_zones_save(RZ_NONNULL Sdb *db, RZ_NONNULL RzList *zones)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
RzFlagGetAtBySpaces get_at_by_spaces
RzFlagUnsetName unset_name
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
RZ_API bool rz_flag_zone_reset(RzFlag *f)
RZ_API bool rz_flag_zone_around(RzFlag *f, ut64 addr, const char **prev, const char **next)
RZ_API RzList * rz_flag_zone_barlist(RzFlag *f, ut64 from, ut64 bsize, int rows)
RZ_API bool rz_flag_zone_del(RzFlag *f, const char *name)
RZ_API bool rz_flag_zone_add(RzFlag *f, const char *name, ut64 addr)
RZ_API void rz_flag_zone_item_free(void *a)