Home
last modified time | relevance | path

Searched refs:ucl_object_t (Results 1 – 16 of 16) sorted by relevance

/trueos/contrib/libucl/include/
HDucl.h204 } ucl_object_t; typedef
219 UCL_EXTERN char* ucl_copy_key_trash (const ucl_object_t *obj);
226 UCL_EXTERN char* ucl_copy_value_trash (const ucl_object_t *obj);
232 UCL_EXTERN ucl_object_t* ucl_object_new (void) UCL_WARN_UNUSED_RESULT;
239 UCL_EXTERN ucl_object_t* ucl_object_typed_new (ucl_type_t type) UCL_WARN_UNUSED_RESULT;
245 UCL_EXTERN ucl_type_t ucl_object_type (const ucl_object_t *obj);
254 UCL_EXTERN ucl_object_t * ucl_object_fromstring_common (const char *str, size_t len,
262 UCL_EXTERN ucl_object_t *ucl_object_fromstring (const char *str) UCL_WARN_UNUSED_RESULT;
270 UCL_EXTERN ucl_object_t *ucl_object_fromlstring (const char *str,
278 UCL_EXTERN ucl_object_t* ucl_object_fromint (int64_t iv) UCL_WARN_UNUSED_RESULT;
[all …]
/trueos/contrib/libucl/src/
HDucl_util.c137 typedef void (*ucl_object_dtor) (ucl_object_t *obj);
138 static void ucl_object_free_internal (ucl_object_t *obj, bool allow_rec,
140 static void ucl_object_dtor_unref (ucl_object_t *obj);
143 ucl_object_dtor_free (ucl_object_t *obj) in ucl_object_dtor_free()
151 UCL_FREE (sizeof (ucl_object_t), obj); in ucl_object_dtor_free()
160 ucl_object_dtor_unref_single (ucl_object_t *obj)
175 ucl_object_dtor_unref (ucl_object_t *obj)
187 ucl_object_free_internal (ucl_object_t *obj, bool allow_rec, ucl_object_dtor dtor)
189 ucl_object_t *sub, *tmp;
216 ucl_object_free (ucl_object_t *obj)
[all …]
HDucl_schema.c43 static bool ucl_schema_validate (const ucl_object_t *schema,
44 const ucl_object_t *obj, bool try_array,
46 const ucl_object_t *root);
118 enum ucl_schema_error_code code, const ucl_object_t *obj, in ucl_schema_create_error()
135 static const ucl_object_t *
136 ucl_schema_test_pattern (const ucl_object_t *obj, const char *pattern) in ucl_schema_test_pattern()
138 const ucl_object_t *res = NULL; in ucl_schema_test_pattern()
141 const ucl_object_t *elt; in ucl_schema_test_pattern()
161 ucl_schema_validate_dependencies (const ucl_object_t *deps, in ucl_schema_validate_dependencies()
162 const ucl_object_t *obj, struct ucl_schema_error *err, in ucl_schema_validate_dependencies()
[all …]
HDucl_emitter.c44 static void ucl_obj_write_json (const ucl_object_t *obj,
49 static void ucl_elt_write_json (const ucl_object_t *obj,
54 static void ucl_elt_write_config (const ucl_object_t *obj,
60 static void ucl_elt_write_yaml (const ucl_object_t *obj,
66 static void ucl_elt_array_write_yaml (const ucl_object_t *obj,
147 ucl_elt_obj_write_json (const ucl_object_t *obj, struct ucl_emitter_functions *func, in ucl_elt_obj_write_json()
150 const ucl_object_t *cur; in ucl_elt_obj_write_json()
199 ucl_elt_array_write_json (const ucl_object_t *obj, struct ucl_emitter_functions *func, in ucl_elt_array_write_json()
202 const ucl_object_t *cur = obj; in ucl_elt_array_write_json()
238 ucl_elt_write_json (const ucl_object_t *obj, struct ucl_emitter_functions *func, in ucl_elt_write_json()
[all …]
HDucl_internal.h154 ucl_object_t *obj;
193 ucl_object_t *top_obj;
194 ucl_object_t *cur_obj;
265 ucl_maybe_parse_boolean (ucl_object_t *obj, const unsigned char *start, size_t len) in ucl_maybe_parse_boolean()
320 int ucl_maybe_parse_number (ucl_object_t *obj,
325 static inline const ucl_object_t *
326 ucl_hash_search_obj (ucl_hash_t* hashlin, ucl_object_t *obj) in ucl_hash_search_obj()
328 return (const ucl_object_t *)ucl_hash_search (hashlin, obj->key, obj->keylen); in ucl_hash_search_obj()
332 ucl_hash_insert_object (ucl_hash_t *hashlin, const ucl_object_t *obj) UCL_WARN_UNUSED_RESULT;
335 ucl_hash_insert_object (ucl_hash_t *hashlin, const ucl_object_t *obj) in ucl_hash_insert_object()
[all …]
HDucl_hash.h34 const ucl_object_t *data;
65 void ucl_hash_insert (ucl_hash_t* hashlin, const ucl_object_t *obj, const char *key,
71 void ucl_hash_delete (ucl_hash_t* hashlin, const ucl_object_t *obj);
76 const ucl_object_t* ucl_hash_search (ucl_hash_t* hashlin, const char *key,
HDucl_hash.c43 const ucl_object_t *cur, *otmp; in ucl_hash_destroy()
50 func (__DECONST (ucl_object_t *, cur)); in ucl_hash_destroy()
59 ucl_hash_insert (ucl_hash_t* hashlin, const ucl_object_t *obj, in ucl_hash_insert()
100 const ucl_object_t*
117 ucl_hash_delete (ucl_hash_t* hashlin, const ucl_object_t *obj) in ucl_hash_delete()
HDucl_parser.c528 static inline ucl_object_t *
529 ucl_add_parser_stack (ucl_object_t *obj, struct ucl_parser *parser, bool is_array, int level) in ucl_add_parser_stack()
567 ucl_maybe_parse_number (ucl_object_t *obj, in ucl_maybe_parse_number()
816 struct ucl_chunk *chunk, ucl_object_t *obj) in ucl_lex_number()
924 ucl_object_t *nobj, *tobj; in ucl_parse_key()
1108 tobj = __DECONST (ucl_object_t *, ucl_hash_search_obj (container, nobj)); in ucl_parse_key()
1252 static ucl_object_t*
1255 ucl_object_t *t, *obj = NULL; in ucl_get_value_object()
1284 ucl_object_t *obj = NULL; in ucl_parse_value()
1618 ucl_object_t *obj; in ucl_state_machine()
/trueos/contrib/libucl/tests/
HDtest_schema.c61 perform_test (const ucl_object_t *schema, const ucl_object_t *obj, in perform_test()
64 const const ucl_object_t *valid, *data, *description; in perform_test()
89 perform_tests (const ucl_object_t *obj) in perform_tests()
93 const ucl_object_t *schema, *tests, *description, *test; in perform_tests()
127 ucl_object_t *obj = NULL; in main()
128 const ucl_object_t *elt; in main()
HDtest_generate.c32 ucl_object_t *obj, *cur, *ar, *ref; in main()
33 const ucl_object_t *found; in main()
HDtest_speed.c64 ucl_object_t *obj; in main()
HDtest_basic.c32 ucl_object_t *obj; in main()
/trueos/contrib/libucl/utils/
HDobjdump.c31 ucl_obj_dump (const ucl_object_t *obj, unsigned int shift) in ucl_obj_dump()
35 const ucl_object_t *cur, *tmp; in ucl_obj_dump()
101 ucl_object_t *obj = NULL; in main()
102 const ucl_object_t *par; in main()
/trueos/contrib/libucl/doc/
HDapi.md60 Help to convert `ucl` objects to C types. These functions are used to convert `ucl_object_t` to C p…
156 ucl_object_t* ucl_parser_get_object (struct ucl_parser *parser);
216 ucl_object_t *obj = NULL;
285 unsigned char *ucl_object_emit (const ucl_object_t *obj, enum ucl_emitter emit_type);
293 bool ucl_object_emit_full (const ucl_object_t *obj, enum ucl_emitter emit_type,
325 ucl_object_t * ucl_object_new (void)
332 ucl_object_t * ucl_object_typed_new (unsigned int type)
360 ucl_object_t * ucl_object_fromstring_common (const char *str,
384 const ucl_object_t* ucl_iterate_object (const ucl_object_t *obj,
392 const ucl_object_t *cur, *tmp;
[all …]
/trueos/usr.sbin/pkg/
HDconfig.c201 config_parse(const ucl_object_t *obj, pkg_conf_file_t conftype) in config_parse()
204 const ucl_object_t *cur, *seq; in config_parse()
319 parse_repo_file(ucl_object_t *obj) in parse_repo_file()
322 const ucl_object_t *cur; in parse_repo_file()
343 ucl_object_t *obj = NULL; in read_conf_file()
HDpkg.c269 parse_fingerprint(ucl_object_t *obj) in parse_fingerprint()
271 const ucl_object_t *cur; in parse_fingerprint()
326 ucl_object_t *obj = NULL; in load_fingerprint()