28 lines
441 B
C
28 lines
441 B
C
#include <blue/serial.h>
|
|
|
|
int main(void)
|
|
{
|
|
b_stream *src = b_stdin;
|
|
b_stream *dest = b_stdout;
|
|
|
|
#if 0
|
|
b_serial_ctx *ctx;
|
|
b_serial_ctx_create(&ctx);
|
|
|
|
b_object *data;
|
|
b_status status = b_serial_ctx_deserialise(
|
|
ctx, B_SERIAL_FORMAT_JSON, src, &data, 0);
|
|
if (!B_OK(status)) {
|
|
return -1;
|
|
}
|
|
|
|
b_to_string(B_OBJECT(data), dest);
|
|
b_stream_write_char(b_stdout, '\n');
|
|
|
|
b_release(data);
|
|
b_serial_ctx_destroy(ctx);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|