23 #define AFW_IMPLEMENTATION_ID "afw_ubjson"
24 #define AFW_IMPLEMENTATION_VERSION AFW_UBJSON_VERSION_STRING
50 afw_ubjson_internal_content_type =
52 &impl_afw_content_type_inf,
60 extern void afw_ubjson_internal_write_value(
77 impl_afw_extension_initialize(
95 return &impl_extension;
103 impl_afw_extension_release(
115 impl_afw_content_type_raw_to_value(
131 impl_afw_content_type_raw_to_object (
143 adaptor_id, object_type_id, object_id, cede_p, p, xctx);
152 impl_afw_content_type_write_value(
161 afw_ubjson_internal_write_value(value, options, context, callback,
171 impl_afw_content_type_create_object_list_writer(
178 return afw_content_type_impl_create_object_list_writer(
179 instance, options, context, callback,
180 &impl_raw_begin_object_list,
183 &impl_raw_end_object_list,
Adaptive Framework Core API.
Helpers for afw_content_type* implementation development.
Interface afw_interface implementation declares.
Interface afw_interface implementation declares.
Header file for Adaptive Framework UBJSON.
void afw_ubjson_generated_register(afw_xctx_t *xctx)
Generated register for afw_ubjson.
Adaptive Framework register generated (afw_ubjson) header.
Adaptive Framework Version (afw_ubjson_) header.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
unsigned char afw_byte_t
A byte of memory (unsigned).
afw_size_t(* afw_write_cb_t)(void *context, const void *buffer, afw_size_t size, const afw_pool_t *p, afw_xctx_t *xctx)
Typedef for write callback function.
#define AFW_ENVIRONMENT_DEFINE_EXTENSION_IMPL()
Macro to put in each afw_extension implementation.
const afw_object_t * afw_ubjson_to_object(const afw_memory_t *ubjson, const afw_utf8_t *source_location, const afw_utf8_t *adaptor_id, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, afw_boolean_t cede_p, const afw_pool_t *p, afw_xctx_t *xctx)
Convert from UBJSON to adaptive object.
const afw_value_t * afw_ubjson_to_value(const afw_memory_t *ubjson, const afw_utf8_t *path, const afw_pool_t *pool, afw_xctx_t *xctx)
Convert UBJSON to an adaptive value.
Interface afw_content_type_object_list_writer public struct.
Interface afw_content_type public struct.
Interface afw_extension public struct.
Struct for memory pointer and size.
Struct for object processing options.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Interface afw_value public struct.
Interface afw_xctx public struct.