ucl_internal.h (6cec9cad762b6476313fb1f8e931a1647822db6b) | ucl_internal.h (3dcf5eb70598c88befd62f61f81e283e568ec519) |
---|---|
1/* Copyright (c) 2013, Vsevolod Stakhov 2 * All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * * Redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer. 8 * * Redistributions in binary form must reproduce the above copyright --- 329 unchanged lines hidden (view full) --- 338 hashlin = ucl_hash_create (); 339 } 340 ucl_hash_insert (hashlin, obj, obj->key, obj->keylen); 341 342 return hashlin; 343} 344 345/** | 1/* Copyright (c) 2013, Vsevolod Stakhov 2 * All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * * Redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer. 8 * * Redistributions in binary form must reproduce the above copyright --- 329 unchanged lines hidden (view full) --- 338 hashlin = ucl_hash_create (); 339 } 340 ucl_hash_insert (hashlin, obj, obj->key, obj->keylen); 341 342 return hashlin; 343} 344 345/** |
346 * Get standard emitter context for a specified emit_type 347 * @param emit_type type of emitter 348 * @return context or NULL if input is invalid 349 */ 350const struct ucl_emitter_context * 351ucl_emit_get_standard_context (enum ucl_emitter emit_type); 352 353/** 354 * Serialise string 355 * @param str string to emit 356 * @param buf target buffer 357 */ 358void ucl_elt_string_write_json (const char *str, size_t size, 359 struct ucl_emitter_context *ctx); 360 361/** |
|
346 * Emit a single object to string 347 * @param obj 348 * @return 349 */ 350unsigned char * ucl_object_emit_single_json (const ucl_object_t *obj); 351 352#endif /* UCL_INTERNAL_H_ */ | 362 * Emit a single object to string 363 * @param obj 364 * @return 365 */ 366unsigned char * ucl_object_emit_single_json (const ucl_object_t *obj); 367 368#endif /* UCL_INTERNAL_H_ */ |