2026-03-16 10:35:43 +00:00
|
|
|
#include <fx/serial/bitcode.h>
|
|
|
|
|
#include <fx/serial/ctx.h>
|
2025-06-27 21:53:40 +01:00
|
|
|
|
2025-10-28 15:20:57 +00:00
|
|
|
/*** VIRTUAL FUNCTIONS ********************************************************/
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
static enum fx_status bitcode_serialise(
|
|
|
|
|
fx_serial_ctx *serial, fx_object *src, fx_stream *dest,
|
|
|
|
|
enum fx_serial_flags flags)
|
2025-10-28 15:20:57 +00:00
|
|
|
{
|
2026-03-16 10:35:43 +00:00
|
|
|
return FX_ERR_NOT_SUPPORTED;
|
2025-10-28 15:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
static enum fx_status bitcode_deserialise(
|
|
|
|
|
fx_serial_ctx *serial, fx_stream *src, fx_object **dest,
|
|
|
|
|
enum fx_serial_flags flags)
|
2025-10-28 15:20:57 +00:00
|
|
|
{
|
2026-03-16 10:35:43 +00:00
|
|
|
return FX_ERR_NOT_SUPPORTED;
|
2025-10-28 15:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
static void bitcode_serial_ctx_init(fx_object *obj, void *priv)
|
2025-10-28 15:20:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
static void bitcode_serial_ctx_fini(fx_object *obj, void *priv)
|
2025-10-28 15:20:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*** CLASS DEFINITION *********************************************************/
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
FX_TYPE_CLASS_DEFINITION_BEGIN(fx_bitcode_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_INTERFACE_BEGIN(fx_serial_ctx, FX_TYPE_SERIAL_CTX)
|
|
|
|
|
FX_INTERFACE_ENTRY(s_serialise) = bitcode_serialise;
|
|
|
|
|
FX_INTERFACE_ENTRY(s_deserialise) = bitcode_deserialise;
|
|
|
|
|
FX_TYPE_CLASS_INTERFACE_END(fx_serial_ctx, FX_TYPE_SERIAL_CTX)
|
|
|
|
|
FX_TYPE_CLASS_DEFINITION_END(fx_bitcode_serial_ctx)
|
|
|
|
|
|
|
|
|
|
FX_TYPE_DEFINITION_BEGIN(fx_bitcode_serial_ctx)
|
|
|
|
|
FX_TYPE_ID(0xcdc8c462, 0xf2b3, 0x4193, 0x8cae, 0xc1e5ad9afcb8);
|
|
|
|
|
FX_TYPE_CLASS(fx_bitcode_serial_ctx_class);
|
|
|
|
|
FX_TYPE_INSTANCE_INIT(bitcode_serial_ctx_init);
|
|
|
|
|
FX_TYPE_INSTANCE_FINI(bitcode_serial_ctx_fini);
|
|
|
|
|
FX_TYPE_DEFINITION_END(fx_bitcode_serial_ctx)
|