serial: update to use new object system

This commit is contained in:
2025-10-19 21:01:27 +01:00
parent 297ccdc9ce
commit 6e979579ea
5 changed files with 169 additions and 184 deletions

View File

@@ -1,6 +1,7 @@
#ifndef _SERIAL_SERIAL_H_
#define _SERIAL_SERIAL_H_
#include <blue/core/object.h>
#include <blue/serial.h>
#include <stdint.h>
@@ -10,10 +11,10 @@ struct b_serial_ctx {
struct b_serial_format_ops {
enum b_status (*fmt_serialise)(
struct b_serial_ctx *, struct b_dsref *, struct b_stream *,
struct b_serial_ctx *, b_object *, struct b_stream *,
enum b_serial_flags);
enum b_status (*fmt_deserialise)(
struct b_serial_ctx *, struct b_stream *, struct b_dsref **,
struct b_serial_ctx *, struct b_stream *, b_object **,
enum b_serial_flags);
};