serial: update b_stream usage

This commit is contained in:
2025-10-24 12:45:43 +01:00
parent f941c470b6
commit 749bc8bc5b
2 changed files with 11 additions and 11 deletions

View File

@@ -2,19 +2,19 @@
#define _SERIAL_SERIAL_H_
#include <blue/core/object.h>
#include <blue/core/stream.h>
#include <blue/serial.h>
#include <stdint.h>
struct b_serial_ctx {
struct b_stream_pipeline *ctx_pipeline;
b_stream_buffer *ctx_streambuf;
};
struct b_serial_format_ops {
enum b_status (*fmt_serialise)(
struct b_serial_ctx *, b_object *, struct b_stream *,
enum b_serial_flags);
struct b_serial_ctx *, b_object *, b_stream *, enum b_serial_flags);
enum b_status (*fmt_deserialise)(
struct b_serial_ctx *, struct b_stream *, b_object **,
struct b_serial_ctx *, b_stream *, b_object **,
enum b_serial_flags);
};