Lines Matching refs:rk_s32
71 rk_s32 buf_size;
73 rk_s32 depth;
77 rk_s32 name_len;
78 rk_s32 name_buf_len;
88 rk_s32 str_len;
93 rk_s32 array_size;
100 rk_s32 buf_size;
101 rk_s32 offset;
102 rk_s32 depth;
133 static char *dup_str(const char *str, rk_s32 len) in dup_str()
148 static rk_s32 get_full_name(MppCfgIoImpl *obj, char *buf, rk_s32 buf_size) in get_full_name()
153 rk_s32 depth = 0; in get_full_name()
154 rk_s32 len = 0; in get_full_name()
155 rk_s32 i = 0; in get_full_name()
207 rk_s32 mpp_cfg_get_object(MppCfgObj *obj, const char *name, MppCfgType type, MppCfgVal *val) in mpp_cfg_get_object()
210 rk_s32 name_buf_len = 0; in mpp_cfg_get_object()
211 rk_s32 name_len = 0; in mpp_cfg_get_object()
212 rk_s32 buf_size = 0; in mpp_cfg_get_object()
213 rk_s32 str_len = 0; in mpp_cfg_get_object()
275 rk_s32 mpp_cfg_get_array(MppCfgObj *obj, const char *name, rk_s32 count) in mpp_cfg_get_array()
278 rk_s32 name_buf_len = 0; in mpp_cfg_get_array()
279 rk_s32 name_len = 0; in mpp_cfg_get_array()
280 rk_s32 buf_size = 0; in mpp_cfg_get_array()
331 rk_s32 mpp_cfg_put(MppCfgObj obj) in mpp_cfg_put()
379 rk_s32 mpp_cfg_put_all(MppCfgObj obj) in mpp_cfg_put_all()
416 rk_s32 mpp_cfg_add(MppCfgObj root, MppCfgObj leaf) in mpp_cfg_add()
437 rk_s32 i; in mpp_cfg_add()
450 rk_s32 mpp_cfg_del(MppCfgObj obj) in mpp_cfg_del()
465 rk_s32 i; in mpp_cfg_del()
483 rk_s32 mpp_cfg_find(MppCfgObj *obj, MppCfgObj root, char *name, rk_s32 type) in mpp_cfg_find()
486 rk_s32 str_start = 0; in mpp_cfg_find()
487 rk_s32 str_len = 0; in mpp_cfg_find()
488 rk_s32 i; in mpp_cfg_find()
504 rk_s32 found = 0; in mpp_cfg_find()
547 rk_s32 mpp_cfg_set_info(MppCfgObj obj, MppCfgInfo *info) in mpp_cfg_set_info()
585 rk_s32 mpp_cfg_set_cond(MppCfgObj obj, MppCfgObjCond cond) in mpp_cfg_set_cond()
597 rk_s32 buf_size;
618 rk_s32 ret = rk_nok; in mpp_cfg_to_trie()
669 static char *test_byte(MppCfgStrBuf *str, rk_s32 len, const char *caller) in test_byte()
687 static char *show_byte(MppCfgStrBuf *str, rk_s32 pos, const char *caller) in show_byte()
705 static char *skip_byte(MppCfgStrBuf *str, rk_s32 len, const char *caller) in skip_byte()
726 rk_s32 old = str->offset; in skip_ws()
748 static rk_s32 write_byte(MppCfgStrBuf *str, void *buf, rk_s32 *size, const char *caller) in write_byte()
750 rk_s32 len = size[0]; in write_byte()
782 static rk_s32 write_indent(MppCfgStrBuf *str, const char *caller) in write_indent()
784 rk_s32 depth; in write_indent()
797 rk_s32 i; in write_indent()
800 rk_s32 indent_width = 4; in write_indent()
810 static rk_s32 revert_comma(MppCfgStrBuf *str, const char *caller) in revert_comma()
830 static rk_s32 mpp_cfg_to_log(MppCfgIoImpl *impl, MppCfgStrBuf *str) in mpp_cfg_to_log()
834 rk_s32 len = 0; in mpp_cfg_to_log()
835 rk_s32 total = sizeof(buf) - 1; in mpp_cfg_to_log()
836 rk_s32 ret = rk_ok; in mpp_cfg_to_log()
921 static rk_s32 mpp_cfg_to_json(MppCfgIoImpl *impl, MppCfgStrBuf *str) in mpp_cfg_to_json()
925 rk_s32 len = 0; in mpp_cfg_to_json()
926 rk_s32 total = sizeof(buf) - 1; in mpp_cfg_to_json()
927 rk_s32 ret = rk_ok; in mpp_cfg_to_json()
1018 static rk_s32 mpp_toml_parent_is_array_table(MppCfgIoImpl *impl, MppCfgStrBuf *str) in mpp_toml_parent_is_array_table()
1024 static rk_s32 mpp_toml_top(MppCfgIoImpl *impl, MppCfgStrBuf *str) in mpp_toml_top()
1027 rk_s32 len = 0; in mpp_toml_top()
1028 rk_s32 total = sizeof(buf) - 1; in mpp_toml_top()
1036 static rk_s32 mpp_toml_non_top(MppCfgIoImpl *impl, MppCfgStrBuf *str) in mpp_toml_non_top()
1039 rk_s32 len = 0; in mpp_toml_non_top()
1040 rk_s32 total = sizeof(buf) - 1; in mpp_toml_non_top()
1060 static rk_s32 mpp_cfg_to_toml(MppCfgIoImpl *impl, MppCfgStrBuf *str, rk_s32 first_time) in mpp_cfg_to_toml()
1064 rk_s32 len = 0; in mpp_cfg_to_toml()
1065 rk_s32 total = sizeof(buf) - 1; in mpp_cfg_to_toml()
1066 rk_s32 ret = rk_ok; in mpp_cfg_to_toml()
1162 static rk_s32 parse_number(MppCfgStrBuf *str, MppCfgType *type, MppCfgVal *val) in parse_number()
1232 static rk_s32 parse_log_string(MppCfgStrBuf *str, char **name, rk_s32 *len, rk_u32 type) in parse_log_string()
1236 rk_s32 name_len = 0; in parse_log_string()
1277 static rk_s32 parse_log_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str);
1279 static rk_s32 parse_log_array(MppCfgIoImpl *obj, MppCfgStrBuf *str) in parse_log_array()
1283 rk_s32 old = str->offset; in parse_log_array()
1284 rk_s32 ret = rk_nok; in parse_log_array()
1368 static rk_s32 parse_log_object(MppCfgIoImpl *obj, MppCfgStrBuf *str);
1370 static rk_s32 parse_log_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str) in parse_log_value()
1416 rk_s32 len = 0; in parse_log_value()
1436 rk_s32 ret; in parse_log_value()
1454 rk_s32 ret; in parse_log_value()
1470 rk_s32 ret; in parse_log_value()
1488 static rk_s32 parse_log_object(MppCfgIoImpl *obj, MppCfgStrBuf *str) in parse_log_object()
1492 rk_s32 old = str->offset; in parse_log_object()
1493 rk_s32 ret = rk_nok; in parse_log_object()
1532 rk_s32 name_len = 0; in parse_log_object()
1632 static rk_s32 mpp_cfg_from_log(MppCfgObj *obj, MppCfgStrBuf *str) in mpp_cfg_from_log()
1636 rk_s32 ret = rk_ok; in mpp_cfg_from_log()
1668 static rk_s32 parse_json_string(MppCfgStrBuf *str, char **name, rk_s32 *len) in parse_json_string()
1672 rk_s32 name_len = 0; in parse_json_string()
1707 static rk_s32 parse_json_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str);
1708 static rk_s32 parse_json_array(MppCfgIoImpl *obj, MppCfgStrBuf *str);
1710 static rk_s32 parse_json_object(MppCfgIoImpl *obj, MppCfgStrBuf *str) in parse_json_object()
1714 rk_s32 old = str->offset; in parse_json_object()
1715 rk_s32 ret = rk_nok; in parse_json_object()
1754 rk_s32 name_len = 0; in parse_json_object()
1866 static rk_s32 parse_json_array(MppCfgIoImpl *obj, MppCfgStrBuf *str) in parse_json_array()
1870 rk_s32 old = str->offset; in parse_json_array()
1871 rk_s32 ret = rk_nok; in parse_json_array()
1969 static rk_s32 parse_json_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str) in parse_json_value()
2015 rk_s32 len = 0; in parse_json_value()
2035 rk_s32 ret; in parse_json_value()
2053 rk_s32 ret; in parse_json_value()
2069 rk_s32 ret; in parse_json_value()
2087 static rk_s32 mpp_cfg_from_json(MppCfgObj *obj, MppCfgStrBuf *str) in mpp_cfg_from_json()
2091 rk_s32 ret = rk_ok; in mpp_cfg_from_json()
2128 static rk_s32 parse_toml_nested_table(MppCfgIoImpl *root, MppCfgObj *object, char *name, in parse_toml_nested_table()
2129 rk_s32 name_len) in parse_toml_nested_table()
2133 rk_s32 i = 0; in parse_toml_nested_table()
2137 rk_s32 ret = rk_ok; in parse_toml_nested_table()
2168 static rk_s32 parse_toml_nested_array_table(MppCfgIoImpl *root, MppCfgObj *object, char *name, in parse_toml_nested_array_table()
2169 rk_s32 name_len) in parse_toml_nested_array_table()
2173 rk_s32 i = 0; in parse_toml_nested_array_table()
2177 rk_s32 ret = rk_ok; in parse_toml_nested_array_table()
2235 static rk_s32 parse_toml_string(MppCfgStrBuf *str, char **name, rk_s32 *len, rk_u32 type) in parse_toml_string()
2239 rk_s32 name_len = 0; in parse_toml_string()
2290 static rk_s32 parse_toml_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str);
2291 static rk_s32 parse_toml_object(MppCfgIoImpl *parent, MppCfgStrBuf *str, rk_s32 is_brace);
2293 static rk_s32 parse_toml_array(MppCfgIoImpl *obj, MppCfgStrBuf *str) in parse_toml_array()
2297 rk_s32 old = str->offset; in parse_toml_array()
2298 rk_s32 ret = rk_nok; in parse_toml_array()
2394 static rk_s32 parse_toml_value(MppCfgIoImpl *parent, const char *name, MppCfgStrBuf *str) in parse_toml_value()
2440 rk_s32 len = 0; in parse_toml_value()
2467 rk_s32 len = 0; in parse_toml_value()
2487 rk_s32 ret; in parse_toml_value()
2505 rk_s32 ret; in parse_toml_value()
2521 rk_s32 ret; in parse_toml_value()
2539 static rk_s32 parse_toml_object(MppCfgIoImpl *parent, MppCfgStrBuf *str, rk_s32 is_brace) in parse_toml_object()
2542 rk_s32 ret = rk_nok; in parse_toml_object()
2543 rk_s32 old = str->offset; in parse_toml_object()
2588 rk_s32 name_len = 0; in parse_toml_object()
2697 static rk_s32 parse_toml_table(MppCfgIoImpl *parent, MppCfgStrBuf *str) in parse_toml_table()
2701 rk_s32 ret = rk_nok; in parse_toml_table()
2702 rk_s32 name_len = 0; in parse_toml_table()
2764 static rk_s32 parse_toml_array_table(MppCfgIoImpl *parent, MppCfgStrBuf *str) in parse_toml_array_table()
2768 rk_s32 ret = rk_nok; in parse_toml_array_table()
2769 rk_s32 name_len = 0; in parse_toml_array_table()
2841 static rk_s32 parse_toml_section(MppCfgIoImpl *parent, MppCfgStrBuf *str) in parse_toml_section()
2844 rk_s32 ret = rk_nok; in parse_toml_section()
2845 rk_s32 old = str->offset; in parse_toml_section()
2900 static rk_s32 mpp_cfg_from_toml(MppCfgObj *obj, MppCfgStrBuf *str) in mpp_cfg_from_toml()
2904 rk_s32 ret = rk_ok; in mpp_cfg_from_toml()
2939 rk_s32 ret; in mpp_cfg_dump()
2963 rk_s32 mpp_cfg_to_string(MppCfgObj obj, MppCfgStrFmt fmt, char **buf) in mpp_cfg_to_string()
2967 rk_s32 ret = rk_nok; in mpp_cfg_to_string()
3006 rk_s32 mpp_cfg_from_string(MppCfgObj *obj, MppCfgStrFmt fmt, const char *buf) in mpp_cfg_from_string()
3009 rk_s32 size; in mpp_cfg_from_string()
3010 rk_s32 ret = rk_nok; in mpp_cfg_from_string()
3107 rk_s32 mpp_cfg_to_struct(MppCfgObj obj, MppCfgObj type, void *st) in mpp_cfg_to_struct()
3211 rk_s32 mpp_cfg_from_struct(MppCfgObj *obj, MppCfgObj type, void *st) in mpp_cfg_from_struct()
3226 rk_s32 mpp_cfg_print_string(char *buf) in mpp_cfg_print_string()
3228 rk_s32 start = 0; in mpp_cfg_print_string()
3229 rk_s32 pos = 0; in mpp_cfg_print_string()
3230 rk_s32 len = strlen(buf); in mpp_cfg_print_string()