serial: implement returning fx_result values from (de)serialisers
This commit is contained in:
+10
-6
@@ -3,18 +3,22 @@
|
||||
|
||||
/*** VIRTUAL FUNCTIONS ********************************************************/
|
||||
|
||||
static enum fx_status bitcode_serialise(
|
||||
fx_serial_ctx *serial, fx_object *src, fx_stream *dest,
|
||||
static struct fx_error *bitcode_serialise(
|
||||
fx_serial_ctx *serial,
|
||||
fx_object *src,
|
||||
fx_stream *dest,
|
||||
enum fx_serial_flags flags)
|
||||
{
|
||||
return FX_ERR_NOT_SUPPORTED;
|
||||
return FX_RESULT_ERR(NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
static enum fx_status bitcode_deserialise(
|
||||
fx_serial_ctx *serial, fx_stream *src, fx_object **dest,
|
||||
static struct fx_error *bitcode_deserialise(
|
||||
fx_serial_ctx *serial,
|
||||
fx_stream *src,
|
||||
fx_object **dest,
|
||||
enum fx_serial_flags flags)
|
||||
{
|
||||
return FX_ERR_NOT_SUPPORTED;
|
||||
return FX_RESULT_ERR(NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
static void bitcode_serial_ctx_init(fx_object *obj, void *priv)
|
||||
|
||||
Reference in New Issue
Block a user