18 #define KEY_NAME "name"
19 #define KEY_SPACESTACK "spacestack"
20 #define KEY_SPACES "spaces"
32 rz_list_foreach (
spaces->spacestack,
iter, spacename) {
56 char *old_name = (
char *)
spaces->name;
76 if (!stack_json_str) {
94 for (stack_element = stack_json->
children.first; stack_element; stack_element = stack_element->
next) {
108 free(stack_json_str);
RZ_API void Ht_() free(HtName_(Ht) *ht)
const char * spaces(int count)
RZ_API RZ_BORROW RzListIter * rz_list_append(RZ_NONNULL RzList *list, void *data)
Appends at the end of the list a new element.
RZ_API Sdb * sdb_ns(Sdb *s, const char *name, int create)
RZ_API RzJson * rz_json_parse(char *text)
RZ_API void rz_json_free(RzJson *js)
RZ_API PJ * pj_end(PJ *j)
RZ_API const char * pj_string(PJ *pj)
RZ_API void pj_free(PJ *j)
RZ_API PJ * pj_s(PJ *j, const char *k)
#define rz_rbtree_foreach(root, it, data, struc, rb)
#define RZ_SERIALIZE_ERR(res,...)
Push an error to the local RzSerializeResultInfo \res RzSerializeInfoResult *.
RZ_API RzSpace * rz_spaces_get(RzSpaces *sp, const char *name)
RZ_API RzSpace * rz_spaces_add(RzSpaces *sp, const char *name)
RZ_API bool rz_spaces_pop(RzSpaces *sp)
RZ_API void rz_spaces_purge(RzSpaces *sp)
RZ_API int sdb_set(Sdb *s, const char *key, const char *val, ut32 cas)
RZ_API char * sdb_get(Sdb *s, const char *key, ut32 *cas)
RZ_API bool sdb_foreach(Sdb *s, SdbForeachCallback cb, void *user)
static bool foreach_space_cb(void *user, const char *k, const char *v)
RZ_API bool rz_serialize_spaces_load(RZ_NONNULL Sdb *db, RZ_NONNULL RzSpaces *spaces, bool load_name, RZ_NULLABLE RzSerializeResultInfo *res)
RZ_API void rz_serialize_spaces_save(RZ_NONNULL Sdb *db, RZ_NONNULL RzSpaces *spaces)
struct rz_json_t::@304::@307 children