meta: rename to fx
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
#include <blue/serial.h>
|
||||
#include <fx/serial.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
b_stream *src = b_stdin;
|
||||
b_stream *dest = b_stdout;
|
||||
fx_stream *src = fx_stdin;
|
||||
fx_stream *dest = fx_stdout;
|
||||
|
||||
#if 0
|
||||
b_serial_ctx *ctx;
|
||||
b_serial_ctx_create(&ctx);
|
||||
fx_serial_ctx *ctx;
|
||||
fx_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)) {
|
||||
fx_object *data;
|
||||
fx_status status = fx_serial_ctx_deserialise(
|
||||
ctx, FX_SERIAL_FORMAT_JSON, src, &data, 0);
|
||||
if (!FX_OK(status)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
b_to_string(B_OBJECT(data), dest);
|
||||
b_stream_write_char(b_stdout, '\n');
|
||||
fx_to_string(FX_OBJECT(data), dest);
|
||||
fx_stream_write_char(fx_stdout, '\n');
|
||||
|
||||
b_release(data);
|
||||
b_serial_ctx_destroy(ctx);
|
||||
fx_release(data);
|
||||
fx_serial_ctx_destroy(ctx);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user