meta: rename to fx

This commit is contained in:
2026-03-16 10:35:43 +00:00
parent 84df46489a
commit e9d0e323f0
233 changed files with 12875 additions and 12869 deletions

View File

@@ -1,4 +1,4 @@
#include <blue/serial.h>
#include <fx/serial.h>
#include <stdlib.h>
#include <string.h>
@@ -8,50 +8,50 @@
/*** PUBLIC ALIAS FUNCTIONS ***************************************************/
/*** VIRTUAL FUNCTIONS ********************************************************/
static void serial_ctx_init(b_object *obj, void *priv)
static void serial_ctx_init(fx_object *obj, void *priv)
{
b_serial_ctx_data *data = b_object_get_protected(obj, B_TYPE_SERIAL_CTX);
fx_serial_ctx_data *data = fx_object_get_protected(obj, FX_TYPE_SERIAL_CTX);
data->ctx_streambuf = b_stream_buffer_create_dynamic(2048);
data->ctx_streambuf = fx_stream_buffer_create_dynamic(2048);
}
static void serial_ctx_fini(b_object *obj, void *priv)
static void serial_ctx_fini(fx_object *obj, void *priv)
{
b_serial_ctx_data *data = b_object_get_protected(obj, B_TYPE_SERIAL_CTX);
fx_serial_ctx_data *data = fx_object_get_protected(obj, FX_TYPE_SERIAL_CTX);
b_stream_buffer_unref(data->ctx_streambuf);
fx_stream_buffer_unref(data->ctx_streambuf);
}
/*** CLASS DEFINITION *********************************************************/
B_TYPE_CLASS_DEFINITION_BEGIN(b_serial_ctx)
B_TYPE_CLASS_INTERFACE_BEGIN(b_object, B_TYPE_OBJECT)
B_INTERFACE_ENTRY(to_string) = NULL;
B_TYPE_CLASS_INTERFACE_END(b_object, B_TYPE_OBJECT)
B_TYPE_CLASS_DEFINITION_END(b_serial_ctx)
FX_TYPE_CLASS_DEFINITION_BEGIN(fx_serial_ctx)
FX_TYPE_CLASS_INTERFACE_BEGIN(fx_object, FX_TYPE_OBJECT)
FX_INTERFACE_ENTRY(to_string) = NULL;
FX_TYPE_CLASS_INTERFACE_END(fx_object, FX_TYPE_OBJECT)
FX_TYPE_CLASS_DEFINITION_END(fx_serial_ctx)
B_TYPE_DEFINITION_BEGIN(b_serial_ctx)
B_TYPE_ID(0xc7c1039a, 0xf397, 0x4fda, 0xb473, 0x4d86fec85384);
B_TYPE_CLASS(b_serial_ctx_class);
B_TYPE_INSTANCE_PROTECTED(b_serial_ctx_data);
B_TYPE_INSTANCE_INIT(serial_ctx_init);
B_TYPE_INSTANCE_FINI(serial_ctx_fini);
B_TYPE_DEFINITION_END(b_serial_ctx)
FX_TYPE_DEFINITION_BEGIN(fx_serial_ctx)
FX_TYPE_ID(0xc7c1039a, 0xf397, 0x4fda, 0xb473, 0x4d86fec85384);
FX_TYPE_CLASS(fx_serial_ctx_class);
FX_TYPE_INSTANCE_PROTECTED(fx_serial_ctx_data);
FX_TYPE_INSTANCE_INIT(serial_ctx_init);
FX_TYPE_INSTANCE_FINI(serial_ctx_fini);
FX_TYPE_DEFINITION_END(fx_serial_ctx)
/*** ITERATOR FUNCTIONS *******************************************************/
enum b_status b_serial_ctx_serialise(
b_serial_ctx *ctx, b_object *src, b_stream *dest, enum b_serial_flags flags)
enum fx_status fx_serial_ctx_serialise(
fx_serial_ctx *ctx, fx_object *src, fx_stream *dest, enum fx_serial_flags flags)
{
B_CLASS_DISPATCH_VIRTUAL(
b_serial_ctx, B_TYPE_SERIAL_CTX, B_ERR_NOT_SUPPORTED,
FX_CLASS_DISPATCH_VIRTUAL(
fx_serial_ctx, FX_TYPE_SERIAL_CTX, FX_ERR_NOT_SUPPORTED,
s_serialise, ctx, src, dest, flags);
}
enum b_status b_serial_ctx_deserialise(
b_serial_ctx *ctx, b_stream *src, b_object **dest, enum b_serial_flags flags)
enum fx_status fx_serial_ctx_deserialise(
fx_serial_ctx *ctx, fx_stream *src, fx_object **dest, enum fx_serial_flags flags)
{
B_CLASS_DISPATCH_VIRTUAL(
b_serial_ctx, B_TYPE_SERIAL_CTX, B_ERR_NOT_SUPPORTED,
FX_CLASS_DISPATCH_VIRTUAL(
fx_serial_ctx, FX_TYPE_SERIAL_CTX, FX_ERR_NOT_SUPPORTED,
s_deserialise, ctx, src, dest, flags);
}