Lines Matching full:callbacks
10 * callbacks can be used in conjunction with the streaming parser to translate
30 static struct cbor_callbacks callbacks = {
44 /* Target for callbacks */
49 cbor_load_callback(source, &callbacks, &context);
55 const struct cbor_callbacks *callbacks,
59 callbacks->boolean(context, false);
63 callbacks->boolean(context, true);
67 callbacks->null(context);
73 callbacks->float4(context, source->valuedouble);
77 callbacks->uint64(context, source->valueint);
79 callbacks->negint64(context, source->valueint + 1);
86 callbacks->string(context, (unsigned char *)source->valuestring,
91 callbacks->array_start(context, cJSON_GetArraySize(source));
94 cjson_cbor_stream_decode(item, callbacks, context);
100 callbacks->map_start(context, cJSON_GetArraySize(source));
103 callbacks->string(context, (unsigned char *)item->string,
105 cjson_cbor_stream_decode(item, callbacks, context);